Chinaunix首页 | 论坛 | 博客
  • 博客访问: 41029
  • 博文数量: 2
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 35
  • 用 户 组: 普通用户
  • 注册时间: 2016-11-09 18:02
文章分类

全部博文(2)

文章存档

2018年(2)

我的朋友

分类: LINUX

2018-03-18 16:18:28

glibc官网链接:


获取源码(以下描述来自官网)

Download sources

Releases are available by source branch checkout and tarball .

Checkout the latest glibc 2.27 stable release:

git clone git://sourceware.org/git/glibc.git
cd glibc
git checkout --track -b local_glibc-2.27 origin/release/2.27/master

Release tarballs are available via anonymous ftp at and its mirrors.


编译及注意事项:

./glibc/configure --prefix=/usr
make


注意事项:

编译时需要到到源码上一级目录执行./glibc/configure --prefix=xxx ...
configure完成后会在当前目录产生Makefile文件和相关config文件,直接在当前目录执行make进行编译即可,不需要回到源码目录,否则无法编译。


编译错误:

如果在源码目录执行./configure 会提示以下错误:
configure: error: you must configure in a separate build directory

如果指定的--prefix=后面没有指定绝对路径,会提示以下错误
configure: error: expected an absolute directory name for --prefix: ../build

阅读(6476) | 评论(0) | 转发(0) |
0

上一篇:网卡statistics数据内核过程分析

下一篇:没有了

给主人留下些什么吧!~~