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. |
It looks like you don't have gcc installed or configured properly. What distro is this?
|
Centos 5
|
Is there any reason why you're not using the yum package management system then?
Code:
yum install gcc glibc |
yum does not have the up to date versions!
|
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.
|
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/ . |
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.
|
All times are GMT -5. The time now is 01:11 AM. |