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! |
| 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. |
|
 |
05-22-2006, 08:19 PM
|
#1
|
|
Member
Registered: Mar 2006
Location: Arkansas
Distribution: Sidux. Others on occasion.
Posts: 312
Rep:
|
How do I configure glibc in a separate build folder ?
This is what I got when I tried to configure. So, Wghat steps do I need to take in order to make this work? I guess I'm just not understanding how to do this.
GNU libc cannot be compiled in the source directory. You must build it
in a separate build directory. For example, if you have unpacked the
glibc sources in `/src/gnu/glibc-2.4', create a directory
`/src/gnu/glibc-build' to put the object files in. This allows
removing the whole build directory in case an error occurs, which is
the safest way to get a fresh start and should always be done.
From your object directory, run the shell script `configure' located
at the top level of the source tree. In the scenario above, you'd type
$ ../glibc-2.4/configure ARGS...
What do they mean by shell directory?
How do I proceed?
|
|
|
|
05-22-2006, 08:30 PM
|
#2
|
|
Member
Registered: Jan 2005
Location: The grassy knoll
Distribution: Slackware,Debian
Posts: 192
Rep:
|
Take it one step at a time:
tar -zxvf glibsource.tar.gz
mkdir glibc-build -- This creates the directory where the compiled files end up.
cd glibc-build -- This is where you run your commands
../glibsource-dir/configure -- This puts all the make files, etc. in the glibc-build directory
Type make while you are still in the glibc-build directory
Last edited by vls; 05-22-2006 at 08:31 PM.
|
|
|
|
05-22-2006, 08:36 PM
|
#3
|
|
Member
Registered: Mar 2006
Location: Arkansas
Distribution: Sidux. Others on occasion.
Posts: 312
Original Poster
Rep:
|
Thank you for your help. I try to figure most all out by myself but this simple one had me stumped!
|
|
|
|
05-23-2006, 12:42 AM
|
#4
|
|
Member
Registered: Mar 2006
Location: Arkansas
Distribution: Sidux. Others on occasion.
Posts: 312
Original Poster
Rep:
|
The command: ../glibsource-dir/configure that you gave me is not working. I've tried a few variations of this but it won't work. What am I doing wrong?
|
|
|
|
05-23-2006, 04:24 PM
|
#5
|
|
Member
Registered: Jan 2005
Location: The grassy knoll
Distribution: Slackware,Debian
Posts: 192
Rep:
|
Did you by chance use '../glibsource-dir/configure' literally? glibsource-dir was just my generic reference to the glibc source directory you untarred previously.
The config command needs to be '../glibc-2.4'/configure' or whatever the directory of source code files is called. Sometimes I need to be more specific.  Hope this is the solution. Let me know.
|
|
|
|
05-23-2006, 08:42 PM
|
#6
|
|
Member
Registered: Mar 2006
Location: Arkansas
Distribution: Sidux. Others on occasion.
Posts: 312
Original Poster
Rep:
|
alls good now. I got it to work and then crashed my system on reboot. (not the first time).
|
|
|
|
05-08-2009, 08:06 AM
|
#7
|
|
LQ Newbie
Registered: May 2009
Posts: 1
Rep:
|
Hi, I borrow your thread a little. When I have made the glibc-build folder, doesn't I need to copy the configure file from the previous folder into it before I run the command? I get the message "-bash: ./configure: No such file or directory".
|
|
|
|
06-07-2009, 08:13 AM
|
#8
|
|
Member
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230
Rep:
|
Quote:
Originally Posted by er_linder
When I have made the glibc-build folder, doesn't I need to copy the configure file from the previous folder into it before I run the command?
|
No, you don't. Let's say "/home/machine/Desktop/glibc-xxx" is source directory. You have to make another directory:
mkdir /home/machine/Desktop/glibc-build
then change it to current directory:
cd /home/machine/Desktop/glibc-build
and after that execute configure from the source directory:
/home/machine/Desktop/glib-xxx/./configure --prefix=/usr
That was all. Then write
make
and
make install
to finish the installation.
|
|
|
|
06-26-2012, 01:25 PM
|
#9
|
|
LQ Newbie
Registered: Jun 2012
Posts: 1
Rep: 
|
best place for build
Hi vls,
What is the best place to put the glibc-build directory? Sorry if this is silly but I'd just like to keep my system as tidy as possible.
Thanks in advance!
|
|
|
|
06-26-2012, 06:38 PM
|
#10
|
|
Guru
Registered: Aug 2005
Posts: 9,696
|
glib IS YOUR operating system
unless there is a VERY ( and i DO mean a VERY good reason ) you really do not want to build a second glib
you can BUT one normal everyday typo and you WILL kill your install .
you have been warned
it is not advisable
but if you must and have to ask - you probably should not
--prefix=/opt/glib.?.?.?
the .?.?.? replaced with the version number
|
|
|
|
| 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 05:59 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
|
|