LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 05-22-2006, 08:19 PM   #1
sleekmason
Member
 
Registered: Mar 2006
Distribution: Lilidog!
Posts: 337

Rep: Reputation: 33
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?
 
Old 05-22-2006, 08:30 PM   #2
vls
Member
 
Registered: Jan 2005
Location: The grassy knoll
Distribution: Slackware,Debian
Posts: 192

Rep: Reputation: 31
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.
 
Old 05-22-2006, 08:36 PM   #3
sleekmason
Member
 
Registered: Mar 2006
Distribution: Lilidog!
Posts: 337

Original Poster
Rep: Reputation: 33
Thank you for your help. I try to figure most all out by myself but this simple one had me stumped!
 
Old 05-23-2006, 12:42 AM   #4
sleekmason
Member
 
Registered: Mar 2006
Distribution: Lilidog!
Posts: 337

Original Poster
Rep: Reputation: 33
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?
 
Old 05-23-2006, 04:24 PM   #5
vls
Member
 
Registered: Jan 2005
Location: The grassy knoll
Distribution: Slackware,Debian
Posts: 192

Rep: Reputation: 31
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.
 
Old 05-23-2006, 08:42 PM   #6
sleekmason
Member
 
Registered: Mar 2006
Distribution: Lilidog!
Posts: 337

Original Poster
Rep: Reputation: 33
alls good now. I got it to work and then crashed my system on reboot. (not the first time).
 
Old 05-08-2009, 08:06 AM   #7
er_linder
LQ Newbie
 
Registered: May 2009
Posts: 1

Rep: Reputation: 0
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".
 
Old 06-07-2009, 08:13 AM   #8
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Rep: Reputation: 34
Quote:
Originally Posted by er_linder View Post
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.
 
1 members found this post helpful.
Old 06-26-2012, 01:25 PM   #9
borealisUM
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
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!
 
Old 06-26-2012, 06:38 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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
 
Old 10-19-2021, 08:03 AM   #11
glib
LQ Newbie
 
Registered: Oct 2021
Posts: 20

Rep: Reputation: Disabled
the error

These critical programs are missing or too old: as ld compiler

Check the INSTALL file for required versions.
 
Old 12-22-2021, 08:27 AM   #12
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
do not respond, necro thread
 
  


Reply



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
Unzip multiple zip files, each to separate folder smart_sagittari Linux - Newbie 3 03-21-2012 08:41 AM
Configuring glibc-build Brennan Linux From Scratch 1 09-26-2005 02:44 PM
Puzzling glibc-build question... sundialsvcs Linux From Scratch 2 09-18-2005 09:30 AM
debug build of glibc flok Slackware 2 07-13-2004 11:17 AM
Build Fedora/RH glibc from SRPMS ugenn Linux - Software 0 03-05-2004 09:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration