LinuxQuestions.org
Review your favorite Linux distribution.
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 04-13-2012, 01:17 PM   #1
kareempj
LQ Newbie
 
Registered: Mar 2012
Posts: 18

Rep: Reputation: Disabled
installing glibc


Hey everyone,I am trying to install glibc and/or newlib but for some reason they both give the same error when configuring them.

Here is the command i am using to configure them:

glibc:
CC=${TARGET}-gcc ../sources/glibc-2.9/configure --target=$TARGET --prefix=$PREFIX --with-headers=${TARGET_PREFIX}/include
newlib:
CC=${TARGET}-gcc ../sources/newlib-1.20.0/configure --host=$TARGET --prefix=$PREFIX


Here is the config log that shows the error:

# ----------- ##
## Core tests. ##
## ----------- ##

configure:2182: checking build system type
configure:2200: result: x86_64-unknown-linux-gnu
configure:2222: checking host system type
configure:2237: result: x86_64-unknown-linux-gnu
configure:2417: running configure fragment for add-on nptl
configure:2554: checking sysdep dirs
configure:2790: result: sysdeps/generic/elf sysdeps/generic
configure:2868: checking for a BSD-compatible install
configure:2924: result: /usr/bin/install -c
configure:2939: checking whether ln -s works
configure:2943: result: yes
configure:2999: checking for gcc
configure:3026: result: -gcc
configure:3264: checking for C compiler version
configure:3271: -gcc --version >&5
../sources/glibc-2.9/configure: line 3272: -gcc: command not found
configure:3274: $? = 127
configure:3281: -gcc -v >&5
../sources/glibc-2.9/configure: line 3282: -gcc: command not found
configure:3284: $? = 127
configure:3291: -gcc -V >&5
../sources/glibc-2.9/configure: line 3292: -gcc: command not found
configure:3294: $? = 127
configure:3298: checking for suffix of object files
configure:3324: -gcc -c conftest.c >&5
../sources/glibc-2.9/configure: line 3325: -gcc: command not found
configure:3327: $? = 127
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3342: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
 
Old 04-13-2012, 01:20 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
It looks like you don't have gcc installed or configured properly. What distro is this?
 
Old 04-13-2012, 01:21 PM   #3
kareempj
LQ Newbie
 
Registered: Mar 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
Centos 5
 
Old 04-13-2012, 01:23 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Is there any reason why you're not using the yum package management system then?

Code:
yum install gcc glibc
It can handle standard installations like this without a problem.
 
Old 04-13-2012, 01:29 PM   #5
kareempj
LQ Newbie
 
Registered: Mar 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
yum does not have the up to date versions!
 
Old 04-13-2012, 01:35 PM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
If you need cutting-edge, CentOS is probably not the distro for you. It lags WAY behind the curve so that everything is debugged and proven stable before being incorporated into the standard repo. Either way, you're going to need a basic gcc installation before you can use gcc to build anything else from source. Use yum to install the standard gcc/glibc, and then you can use that to build the new release.
 
Old 04-14-2012, 02:54 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Glibc is your OS : Glibc is always installed.

And : You cannot change the installed version.

An extra glibc can be installed to a hideaway location,
like /usr/local/glibc/(lib).

No applications / libraries can be compiled without gcc.
Requirements :
gcc gcc-c++ glibc-common glibc-devel glibc-headers kernel-headers
Packages : http://mirror.centos.org/centos/5.8/os/
Updates : http://mirror.centos.org/centos/5.8/updates/

.
 
Old 04-14-2012, 04:12 AM   #8
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Just a warning, if you try to install a new glibc over your existing one, you will probably break your system to the point where a reinstall is required. As knudfl indicates, glibc comprises the core libraries of your system, against which most if not all other programs are linked. If you replace it, many basic system utilities (ls, pwd, bash, etc.) wll stop working in funny ways. As mentioned, you can install a new glibc in an alternate location, but it might help us to know why you need a newer glibc than is provided.
 
1 members found this post helpful.
  


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
installing Glibc linuxfreak3 Linux - Software 9 07-08-2010 09:47 AM
help installing glibc 2.4 KFC123 SUSE / openSUSE 3 05-15-2009 09:23 PM
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 03:22 PM
Help with installing GLIBC mikalsaltveit Linux - Newbie 4 11-25-2007 03:54 PM
Q's installing GLIBC 2.3.3 piggysmile Red Hat 0 02-24-2005 07:12 AM

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

All times are GMT -5. The time now is 11:22 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