Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-12-2004, 11:04 AM   #1
Registered: May 2003
Distribution: Redhat 9
Posts: 49

Rep: Reputation: 15
general installation question

This is something that has always bothered me about linux, and just today caused me more aggravation. I was reading up on how I needed to use an older library of something to get this program to compile. The guy suggested that you just install the old library to a temporary directory and then use a flag when compiling the program. What I can never figure out is how do you know where stuff gets installed in linux? and where can you set that? i looked in the ./configure file, but i wasn't sure if the installation paths were set there. Anyway, is there some variable that generally sets that information? maybe it's in configure or make, but either way, I'm confused. Thanks for any help

Old 02-12-2004, 11:11 AM   #2
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Every configuration script should allow you to set these things up. Typing ./configure --help should put out a list something like this:

By default, `make install' will install all the files in
`/usr/kde/3.2/bin', `/usr/kde/3.2/lib' etc.  You can specify
an installation prefix other than `/usr/kde/3.2' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR           user executables [EPREFIX/bin]
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
  --libexecdir=DIR       program executables [EPREFIX/libexec]
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  --libdir=DIR           object code libraries [EPREFIX/lib]
  --includedir=DIR       C header files [PREFIX/include]
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  --infodir=DIR          info documentation [PREFIX/info]
  --mandir=DIR           man documentation [PREFIX/man]

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
If you change the prefix it is basically a global way to say all this stuff goes in this directory. You can also chaned each individual file types location as needed if a global prefix changed does do it for ya.

So if I were installing a library for temp purposes I would pass the --prefix=$HOME/libtmp or something like that to install it into my home directory.

Last edited by jtshaw; 02-12-2004 at 11:13 AM.
Old 02-13-2004, 07:49 AM   #3
Registered: May 2003
Distribution: Redhat 9
Posts: 49

Original Poster
Rep: Reputation: 15
Thanks man. Always been curious about that



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installation failure, general 88guy Debian 1 12-30-2004 10:48 PM
General application installation help needed mojo Linux - Newbie 10 11-05-2004 11:30 AM
Very General Software Installation Question Rawr101 Linux - Software 2 10-13-2004 10:37 PM
general installation help bandofmercy Linux - Newbie 1 12-14-2002 12:37 PM
General questions on Mandrake 8.1 installation Annapanna Linux - Newbie 3 01-07-2002 05:42 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:37 AM.

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