LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 09:19 PM   #1
sleekmason
Member
 
Registered: Mar 2006
Location: Arkansas
Distribution: Sidux. Others on occasion.
Posts: 312

Rep: Reputation: 31
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, 09: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 09:31 PM.
 
Old 05-22-2006, 09:36 PM   #3
sleekmason
Member
 
Registered: Mar 2006
Location: Arkansas
Distribution: Sidux. Others on occasion.
Posts: 312

Original Poster
Rep: Reputation: 31
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, 01:42 AM   #4
sleekmason
Member
 
Registered: Mar 2006
Location: Arkansas
Distribution: Sidux. Others on occasion.
Posts: 312

Original Poster
Rep: Reputation: 31
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, 05: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, 09:42 PM   #6
sleekmason
Member
 
Registered: Mar 2006
Location: Arkansas
Distribution: Sidux. Others on occasion.
Posts: 312

Original Poster
Rep: Reputation: 31
alls good now. I got it to work and then crashed my system on reboot. (not the first time).
 
Old 05-08-2009, 09: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, 09:13 AM   #8
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Rep: Reputation: 33
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.
 
Old 06-26-2012, 02: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, 07:38 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,990

Rep: Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448
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
 
  


Reply


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


All times are GMT -5. The time now is 08:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration