LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-09-2018, 04:18 PM   #16
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,224

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320

Quote:
Originally Posted by jakedp View Post
Also, a good idea to follow this standard for where files go: https://refspecs.linuxfoundation.org...fhs/index.html
Typically, the only changes you need to make to the default folder structure are moving /usr/share/doc to /usr/doc and /usr/share/man to /usr/man.
 
1 members found this post helpful.
Old 11-09-2018, 05:02 PM   #17
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by igadoter View Post
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 View Post
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.
 
1 members found this post helpful.
Old 11-09-2018, 05:05 PM   #18
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,224

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by bassmadrigal View Post
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.

Last edited by dugan; 11-09-2018 at 05:09 PM.
 
Old 11-10-2018, 05:26 AM   #19
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717

Original Poster
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
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.
 
  


Reply

Tags
slackware package how-to



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SlackBuild to repackage any Debian or Ubuntu icon theme dugan Slackware 7 03-03-2018 12:44 PM
yum repackage bic Red Hat 1 03-13-2014 08:06 AM
rpm repackage option not working rhel6 MANOHARNLINUX Linux - Enterprise 3 11-01-2011 03:02 PM
The perfect package format: No package, but instead revision control Kenny_Strawn Linux - Distributions 2 09-26-2010 11:33 AM
New package format for slackware 13? janhe Slackware 112 05-22-2009 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration