Библиотека сайта или "Мой Linux Documentation Project"
Linux Compilers and AssemblersSEP 19, 2003 By Christopher Paul, Rafeeq Rehman. Article is provided courtesy of Prentice Hall.
3.9 Standard Libraries
In addition to the compiler, assembler, linker and other tools, you also need standard library files. All Linux distributions
come with the GNU C library which is installed as
After downloading the library, you have to untar it. For the sake of this book, I untarred the library file in
tar zxvf glibc-2.2.5.tar.gz
Now you have to extract any other components or add-ons of the library. I have added one component, Linux threads. File
cd glibc-2.2.5 tar zxvf ../ glibc-linuxthreads-2.2.5.tar.gz
In old versions of
Now you have to configure the library after creating a build directory. Basically this is the same process that you have done while installing GCC and binutils. This is done using the following set of commands:
[root@conformix glibc-2.2.5]# mkdir build [root@conformix glibc-2.2.5]# cd build [root@conformix build]# ../configure --enable-add-ons=linuxthreads --prefix=/opt/gcc-3.0.4
The actual compilation and testing is done using the following two commands:
make make check
The final install command is the following:
This command will install components of GNU C library under
© 2003 Pearson Education, Inc. InformIT Division. All rights reserved.
800 East 96th Street Indianapolis, Indiana 46240
Только зарегистрированные пользователи могут оценивать и комментировать статьи.