LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error installing glibc (https://www.linuxquestions.org/questions/linux-newbie-8/error-installing-glibc-700562/)

gaur.ankit2007@gmail.com 01-28-2009 12:27 PM

error installing glibc
 
i am installing glibc on RHEL4

i am writing this command

[root@localhost glibc-2.5]# ./configure
]configure: error: you must configure in a separate build directory

and

[root@localhost glibc-2.5]# ./configure --prefix=/usr/local
configure: error: you must configure in a separate build directory

Plz help ......

weibullguy 01-28-2009 12:49 PM

Quote:

Originally Posted by gaur.ankit2007@gmail.com (Post 3424254)
error: you must configure in a separate build directory

Just like it says you need to build glibc in a separate directory. Assuming you're starting in the glibc-2.5 directory, this is one way you might build glibc.
Code:

mkdir -v ../glibc-build &&
cd ../glibc-build &&
CFLAGS="-march=$(cut -d- -f1 <<< $MACHTYPE) \
../glibc-2.5/configure --disable-profile --enable-add-ons --enable-kernel=2.6.0 &&
make &&
make -k check >glibc-check.log 2>&1 &&
grep Error glibc-check.log

If all goes well you can make install.

alexander_bosakov 01-28-2009 12:58 PM

Hi, see these:
http://www.gnu.org/software/libtool/...compiling.html
http://www.linuxfromscratch.org/pipe...il/023167.html
and especially this:
http://www.codingforums.com/archive/.../t-120564.html

gaur.ankit2007@gmail.com 01-29-2009 12:18 AM

HI
thanks 4 ur reply i have now successfully compiled but i am now getting this during "make install"

i am now getting this after make install.....

rm: relocation error: /lib/tls/libc.so.6: symbol _dl_out_of_memory, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference
make[1]: *** [install-symbolic-link] Error 127
make[1]: Leaving directory `/root/glibc-2.5'
make: *** [install] Error 2


1)is the installation complete?
2)what does the error mean?
3)what am i supposed to do now ?


All times are GMT -5. The time now is 06:14 PM.