LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Always -prefix=/usr? (http://www.linuxquestions.org/questions/linux-from-scratch-13/always-prefix%3D-usr-208258/)

oneandoneis2 07-22-2004 07:55 AM

Always -prefix=/usr?
 
I can't help noticing that most software tells you to use the simple:
Code:

./configure
make
make install

Whereas BLFS, of course, goes with:
Code:

./configure --prefix=/usr
make
make install

I'm about to venture into the unknown by installing a few bits & pieces that aren't in the BLFS book, such as FVWM. So, are there any particular instances where I shouldn't prefix the config step when it's a standard 3-step install? Or can I happily prefix everything I'm ever likely to install?

Frustin 07-22-2004 07:59 AM

there are lots of instances where you might need to use other prefix. when you want to run the ./configure append --help to it. this will give you all the options that you might want to change.

a good example of this is mplayer, it doesnt install the gui by default you have to append --with-glx (or something).

320mb 07-22-2004 08:44 AM

well, both books LFS/BLFS say it's "your distro, your rules"
BLFS just gives you a wide varitey of options to choose from.
putting everything in --prefix=/usr just helps to keep things organized
and keep the main "system" files clean..........
you can always use --prefix=/opt/usr if you want further organize
your own programs.......

Andrew Benton 07-22-2004 10:20 AM

It keeps things simple if you install everything in /usr. If you install stuff elsewhere you then have to add that to /etc/ld.so.conf and extend your $PATH and $PKG_CONFIG_PATH to include the new files. It all gets too confusing for my little brain. Keep it simple, works for me.

oneandoneis2 07-22-2004 10:51 AM

Quote:

when you want to run the ./configure append --help to it
Ah! Excellent. I didn't know about that one. Much obliged!

Quote:

putting everything in --prefix=/usr just helps to keep things organized
Absolutely. The post was because I want everything in /usr, just wasn't sure if it would always be possible. By the looks of it, the --help screen should alert me if I can't, so that's all I need to know - I can happily chuck everything in /usr.

Thanks for all the feedback!

slyman 07-28-2004 12:11 AM

From the horses mouth (or Beek?... sorry):

http://www.linuxfromscratch.org/blfs.../position.html

EDIT: FWIW I use /usr in general, /opt for anything precompiled - Firefox, Open Office, Acrobat Reader and Java (lazy I know) - and /usr/local for testing before I put it into /usr.


All times are GMT -5. The time now is 01:25 PM.