在新装的系统环境中编译软件经常遇到一些问题 这里记录一下
Make常见问题
提示
configure: error: no acceptable C compiler found in $PATH安装
gcc提示
configure: error: C compiler cannot create executables退出重新登陆
提示
configure.ac:129: error: possibly undefined macro: AC_PROG_LIBTOOL安装
libtool
Configure常见问题
提示
autogen.sh: 15: autogen.sh: aclocal: not found安装
automake安装完
automake之后提示WARNING: 'xxxxxx-x.xx' is missing on your system.- 类似一个命令 后面跟随版本号 找不到之类的 例如 :
WARNING: 'aclocal-1.15' is missing on your system.WARNING: 'automake-1.15' is missing on your system.
- 先看下系统有没有不带版本号的命令 如果有 就添加软连接
ln -s /usr/bin/aclocal /usr/bin/aclocal-1.15ln -s /usr/bin/automake /usr/bin/automake-1.15
- 类似一个命令 后面跟随版本号 找不到之类的 例如 :
提示
autoreconf: autopoint is needed because this package uses Gettext编译安装
gettext- 下载源码
http://ftp.gnu.org/gnu/gettext/gettext-latest.tar.gz - 解压
tar-xvzf gettext-latest.tar.gz - 进入目录
cd gettext-* - 配置编译安装
./configure && make && make install
- 下载源码
运行相关问题
- 提示
xxxxx: error while loading shared libraries: xxxxx.so.0: cannot open shared object file: No such file or directory- 这是类库的问题
- 运行
ldconfig /usr/local/lib
Build Dependency常见问题
- 提示
Build dependency: Please install a static zlib. (Missing libz.a or zlib.h)安装
zlib-static