LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   general installation question (https://www.linuxquestions.org/questions/linux-newbie-8/general-installation-question-145244/)

darthczyz 02-12-2004 10:04 AM

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

skiz

jtshaw 02-12-2004 10:11 AM

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

Code:

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.

darthczyz 02-13-2004 06:49 AM

Thanks man. Always been curious about that

Skiz


All times are GMT -5. The time now is 06:41 AM.