glibc安装

来源:互联网 发布:发那科机器人示教编程 编辑:程序博客网 时间:2024/06/05 11:45

下载
http://ftp.gnu.org/gnu/glibc/

../glibc-2.23/configure –prefix=/usr –disable-profile –enable-add-ons –with-headers=/usr/include –with-binutils=/usr/bin –disable-sanity-checks

http://download.chinaunix.net/download/0004000/3872.shtml
http://download.chinaunix.net/download/0008000/7015.shtml

安装编译过程中需要注意三点:
1、要将glibc-linuxthreads解压到glibc目录下。
2、不能在glibc当前目录下运行configure。
3、否则如果出现错误:error “glibc cannot be compiled without optimization”,
4、需要加上优化开关:[root@localhost test]# export CFLAGS=”-g -O2 -march=i486”

需要libffi 3.0
yum install libffi-devel
https://sourceware.org/libffi/

./configure && make && make install

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

0 0
原创粉丝点击