-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install klayout without sudo #1326
Comments
There is no easy way on linux afaik. .deb packages (and similar) aren't meant to be installed by users. Afaik you have 2.5 options:
Podman is completely in iserspace, so no need for sudo at all afaik. Docker needs sudo to be installed |
I personally use Docker for quick test installs. The advantage is to have a clean system. It's somewhat tricky to configure Docker to forward X11 - I have not figured out yet how to do this without disabling X11 authentication ( Another thing that comes to mind is snap. I have no experience however how to package for snap. Matthias |
Instead of snap I would highly recommend flatpak instead. Snap has a bad history in regards to being open, whereas for flatpak both client side and server side is open and you are less bound to ubuntu flavors ;). (see https://itsfoss.com/flatpak-vs-snap/ , disclaimer: this is just the first article that explains it better than my memory, therefore not necessarily complete or any strong opinion, just personal taste) But both options would need setup and unless the article is wrong, snap still needs root privileges to install whereas flat doesn't |
What about the conda packages at https://anaconda.org/litex-hub/klayout? |
Is that functional? https://beta.flathub.org/apps/de.klayout.KLayout Anaconda was tried a number of times, but so far (AFAIK) no general solution for packaging has evolved. I assume mainly because for Linux there are better alternatives. Matthias |
The flatpak works for me, yes. |
Download this makefile anywhere: And just run: make install_klayout-v0.28.5 And it will install make install_klayout-v0.28.6 So on so forth. |
@joamatab Please make sure to install required packages for building klayout: For Ubuntu 22.04 for example:
|
Can I close this ticket? |
Specifically for a RHEL7 system, this seems to work (done only one time, so YMMV): Download the Centos7 binary rpm archive from: Transfer to the RHEL7 system. rpm2cpio klayout-0.28.7-0.x86_64.rpm |cpio -diun Move the files from this directory into e.g. the ~/.local/(bin, lib, share) tree. Then start klayout with this script. #! /bin/bash export root=~/.local cd $root export LD_LIBRARY_PATH=${root}/lib/klayout ${root}/bin/klayout Note that all dependent libraries have to be installed already with rpm's in the RHEL7 system. Also for RHEL7 the rpm from klayout.de is based on Qt4 so it does not include the 2.5d view feature. |
What's the best way to install klayout without sudo?
I've been looking at https://github.com/flaport/condalayout but seems to have some issues
flaport/condalayout#3
@sebastian-goeldi
@HelgeGehring
@proppy
The text was updated successfully, but these errors were encountered: