Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 07-22-2004, 07:55 AM   #1
Senior Member
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 47
Always -prefix=/usr?

I can't help noticing that most software tells you to use the simple:
make install
Whereas BLFS, of course, goes with:
./configure --prefix=/usr
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?
Old 07-22-2004, 07:59 AM   #2
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
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).
Old 07-22-2004, 08:44 AM   #3
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
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.......
Old 07-22-2004, 10:20 AM   #4
Andrew Benton
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
It keeps things simple if you install everything in /usr. If you install stuff elsewhere you then have to add that to /etc/ 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.
Old 07-22-2004, 10:51 AM   #5
Senior Member
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

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

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!
Old 07-28-2004, 12:11 AM   #6
Registered: Jun 2004
Location: Sydney, Australia
Distribution: FC3, Linux From Scratch, Knoppix
Posts: 99

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

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.

Last edited by slyman; 07-28-2004 at 12:20 AM.


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
Relocat /usr/lib and /usr/lib64 to a different path schokshi Fedora 3 08-30-2005 09:14 PM
Sendmail prefix mikeyt_333 Linux - Software 0 07-17-2004 02:13 PM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 09:21 AM
MySQL setup stops at command "./configure --prefix=/usr/local/mysql" k41184 Linux - Software 1 05-20-2004 02:44 PM
xcdroast installation problems despite use of --with-cdrtools-prefix=/usr/bin ??? Raptor Ramjet Slackware 4 01-27-2004 06:55 AM

All times are GMT -5. The time now is 08:09 PM.

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