SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need go because it is dependency for docker - and in fact I am interested in running docker.
Are you aware that docker and all of its dependencies are available on SBo? This way you won't need to duplicate the effort (although, if you want it as a learning experience, you certainly still could do it on your own).
Quote:
Originally Posted by igadoter
As I posted tarball essentially contains all needed directory structure. By default installation is under /usr/locale/. I think that tarball is just shot of generic installation. Essentially SlackBuild script should extract archive but with different leading directory path usr/ instead of usr/local. And probably /go sub directory is not needed - it is just for encapsulation. I want to see on my own eyes capabilities of docker.
It is not always as easy as just moving files from /usr/local/ to /usr/. Many times the programs are compiled with those locations hardcoded (based on the options when ./configure or equivalent is run). If you move things around, it may expect to find certain libraries in /usr/local/lib/, but they've been moved to /usr/lib/ and now the program can't find them.
Many times the programs are compiled with those locations hardcoded (based on the options when ./configure or equivalent is run). If you move things around, it may expect to find certain libraries in /usr/local/lib/, but they've been moved to /usr/lib/ and now the program can't find them.
That is true. Moving files around works best if the executable looks for its resources relative to where the executable is., e.g. ../lib and ../share.
No matters whether go is installed under /opt or /usr/local I can build but I got the same errors. It seems that go installation is more convenient per user than system wide. Some commands can't be executed by common user due to lack of permission, say https://golang.org/doc/
Code:
$ go get golang.org/x/tour
at the end of the execution it requires writing permission in $GOROOT, whether /opt/go or /usr/local/go. So maybe just better put all this under $HOME/, till I figure out how to configure go system wide. SlackBuild script installs under /usr/lib(64)/go$VERSION/go. I can't see why it is better place to install.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.