LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-01-2004, 03:19 AM   #1
SBing
Member
 
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
When compiling, where do you install *stuff*?


Slackware packages tend to install stuff in a certain place, how do I know where I should install stuff for maximum compatability, e.g.

I installed OpenSSL with
--prefix=/usr/local/openssl

In the end, half the programs I was running refused to accept it was there, so I installed a slack package, everything installed/ran fine...

So does slackware packages use default prefixs? (I.E. should I have simply not have used a prefix) or do they use a certain structure?

Steve

Edit: Slackware packages installed openssl to
/usr/include/openssl wheras the "default" is /usr/local/ssl

How would I have known to instal to /usr/include/openssl ?

Last edited by SBing; 06-01-2004 at 03:24 AM.
 
Old 06-01-2004, 03:26 AM   #2
spuzzzzzzz
Member
 
Registered: Sep 2003
Location: Australia
Distribution: Gentoo
Posts: 465

Rep: Reputation: 30
if you don't use a prefix, most packages default to /usr/local, which should be fine. Most distros install packages in /usr, so --prefix=/usr should be fine too. Don't use --prefix=/usr/local/xxx because then, the binaries will be installed in /usr/local/xxx/bin which is probably not in your $PATH.
 
Old 06-01-2004, 10:48 AM   #3
ludeKing
Member
 
Registered: Jul 2003
Location: NSW. Australia
Distribution: Ubuntu, Fedora, Slackware
Posts: 181

Rep: Reputation: 30
I install most packages and sources to their default path. So I let it choose...
However, if I have a pre-compiled binary, or zip or something... like Firefox, or quake, or tux racer or ut2003, etc, I install them to /home/stevo/programs/xxxxx so I can keep them all together!
 
Old 06-01-2004, 03:00 PM   #4
SBing
Member
 
Registered: Mar 2004
Posts: 519

Original Poster
Rep: Reputation: 35
Okay cheers guys, but I'm still unsure why slackware installs openssl to

/usr/include/openssl

while the default is

/usr/local/ssl

historical reasons?

Steve
 
Old 06-01-2004, 05:07 PM   #5
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
The Slackware convention has always been --prefix=/usr, however it is your system and can do as you like but you may have to alter some of the config during other installs if they look for everythign to be installed /usr rather than /usr/local. Installing to /usr/include is going to be decided by the app you are installing. /usr/include is part of the /usr hierarchy installing to include is necessary for some items. WHen you install a file from source typically you can get files installed in several different places. /usr/bin /usr/include /usr/lib ......
 
Old 06-02-2004, 01:48 AM   #6
SBing
Member
 
Registered: Mar 2004
Posts: 519

Original Poster
Rep: Reputation: 35
Alright, cheers :)

Steve
 
Old 06-02-2004, 07:12 AM   #7
adamjaskie
Member
 
Registered: Feb 2004
Posts: 32

Rep: Reputation: 15
From what I have seen, the convention is:
/usr for stuff compiled to install on multiple systems (packages you download and stuff)
/usr/local for stuff compiled specifically for that computer
 
Old 06-02-2004, 09:40 AM   #8
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
It doesnt install the program to /usr/include/openssl
it installs the header files for writing openssl programs there
 
Old 06-02-2004, 03:11 PM   #9
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 34
If the prefix you used is "/usr/local/openssl", then you will need to add "/usr/local/openssl/bin" to your path statement and add "/usr/local/openssl/lib" to /etc/ld.so.conf and then run 'ldconfig' (as root) to let the OS find the openssl libs...........

BTW, the official Slackware pkg uses the prefix "/usr" for openssl................
 
Old 06-03-2004, 02:03 AM   #10
SBing
Member
 
Registered: Mar 2004
Posts: 519

Original Poster
Rep: Reputation: 35
Quote:
Originally posted by thegeekster
...you will need to add "/usr/local/openssl/bin" to your path statement and add "/usr/local/openssl/lib" to /etc/ld.so.conf and then run 'ldconfig' (as root)...
Ah! So that's how to get it to work, I was mucking around with symlinks and swearing far too much!

and also I forgot to run ldconfig...!

Thank you very much geekster :)

Steve

Last edited by SBing; 06-03-2004 at 02:04 AM.
 
Old 06-03-2004, 07:51 AM   #11
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
and remember if you continue to specify a prefix that includes the app name you may have to do this rather nasty little hack every time you install.
 
  


Reply



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
how get rid of stuff marked for install after install? lugoteehalt Debian 6 10-12-2005 10:33 AM
how to install stuff noir911 Slackware 5 09-27-2004 12:05 PM
Compiling packages and stuff rajvirnijjar Linux - Software 5 08-26-2004 07:18 AM
Problems compiling stuff ragmavx Linux - Software 1 10-22-2003 06:04 PM
Trying to install stuff ikw38 Linux - Newbie 3 11-28-2002 11:59 PM

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

All times are GMT -5. The time now is 09:21 AM.

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