LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-14-2009, 08:43 PM   #1
meo_beo
Member
 
Registered: Mar 2008
Posts: 33

Rep: Reputation: 15
Need help with glibc installation


Hi, I'm trying to install glibc-2.7 on my RedHat EL 4 machine. After I unzip the tarball, I ran the command ./configure and there is an error message like this:
configure: error: you must configure in a separate build directory

I find it so strange because according to the book I read, you should run the ./configure file right inside the tarball you unzipped, not from another directory.
Anyway, I created another directory called "glibc-build" and ran the ./configure command from there. It created a file named "config.log" inside the "glibc-build" directory. From here, I don't know what to do next. Normally, I would run make && make install next, but when I run that command from the tarball, there is an error message like this:

Makeconfig:84: sysdeps/../config.make: No such file or directory
Makerules:808: no file name for `include'
configure.in > configure.new
/bin/sh: configure.in: command not found
make: *** [configure] Error 127


Can anyone tell me what the problem is and how to solve it? Thanks a lot.
 
Old 01-15-2009, 10:26 AM   #2
gregvs
LQ Newbie
 
Registered: Mar 2008
Location: Melbourne, Australia
Distribution: LFS 6.3
Posts: 6

Rep: Reputation: 0
From within the package tar ball...

mkdir -v ../glibc-build
cd ../glibc-build

Next, run the configure script...

../glibc-2.7/configure --prefix=/usr (or /usr/share)

This should produce the required makefile. Check to ensure it exists!

Compile the package...

make

make install

There are several Linux packages that need to be built outside of the package tarball. They
are binutils, gcc and glibc. Nearly all others are built within the packages. Also be aware that the source code is damaged or altered during this process, so if somthing goes wrong you will need to untar the package again. You cannot rely on a make clean to start again.

Hope this helps
gregvs

Last edited by gregvs; 01-15-2009 at 10:29 AM. Reason: typo
 
Old 01-15-2009, 08:06 PM   #3
meo_beo
Member
 
Registered: Mar 2008
Posts: 33

Original Poster
Rep: Reputation: 15
Thanks, I tried and it did work. Anyway, can you explain a bit more about the "--prefix.." in the command ../glibc-2.7/configure --prefix=/usr (or /usr/share)?

Last edited by meo_beo; 01-15-2009 at 08:31 PM.
 
Old 01-16-2009, 01:44 AM   #4
gregvs
LQ Newbie
 
Registered: Mar 2008
Location: Melbourne, Australia
Distribution: LFS 6.3
Posts: 6

Rep: Reputation: 0
Before running the configure script, try .configure --help.

This will display a list of options which can be used change the standard build.

For example --prefix=/usr is usualy the destination default, but not always.
--with-package and --without-package can include/exclude dependency support from other packages.
There are many other options.

Most distros use the standard default values and the INSTALL file only describes the basic configure/make/make install process.

When you run the configure script take a very close look at the output. It will give you some idea as to additional options that may be considered. glibc has no real dependancies and as such should build with the basic c/m/mi.

I'm not sure what your host is but i build/use Linux from Scratch. Have a look at http://www.linuxfromscratch.org/lfs/view/stable/ to get an idea of what these option look like and the reasons are explained as well.

gregvs
 
  


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
Glibc 2.4 installation in Slackware 11 irfanhab Slackware 4 11-11-2006 10:50 PM
Installation stops at Glibc?!?! Pingu's Tuxedo Linux - Newbie 2 05-19-2006 04:19 PM
Installation problems for glibc ravi Linux - Newbie 2 01-12-2006 07:47 PM
LFS v6-installation of glibc; need help kartheekpn Linux From Scratch 31 04-26-2005 04:13 PM
glibc 2.3 installation pneumatix Linux - Newbie 2 04-20-2004 04:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:10 AM.

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