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. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-22-2004, 07:55 AM
|
#1
|
|
Senior Member
Registered: Nov 2003
Location: West Sussex, England
Distribution: Gentoo
Posts: 1,457
Rep:
|
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?
|
|
|
|
07-22-2004, 07:59 AM
|
#2
|
|
Member
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 511
Rep:
|
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).
|
|
|
|
07-22-2004, 08:44 AM
|
#3
|
|
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577
Rep:
|
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.......
|
|
|
|
07-22-2004, 10:20 AM
|
#4
|
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073
Rep:
|
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.
|
|
|
|
07-22-2004, 10:51 AM
|
#5
|
|
Senior Member
Registered: Nov 2003
Location: West Sussex, England
Distribution: Gentoo
Posts: 1,457
Original Poster
Rep:
|
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!
|
|
|
|
07-28-2004, 12:11 AM
|
#6
|
|
Member
Registered: Jun 2004
Location: Sydney, Australia
Distribution: FC3, Linux From Scratch, Knoppix
Posts: 99
Rep:
|
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.
Last edited by slyman; 07-28-2004 at 12:20 AM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:26 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|