我的错误笔记

回复 收藏
我的错误笔记
1. no acceptable C compiler found in $PATH
这个很典型的问题,在编译时经常会遇到,是因为系统还没有装gcc的编译组建,只要用yum或者rpm安装这些包即可。
2.Mysql 启动不了 查看日志文件 /var/lib/mysql/….err
3. 运行./scripts/mysql_install_db --user mysql  出错,原因可能是my.cnf的问题,因为如果在以前装过mysql会有这个配置文件,初始化时会出现冲突,只要把my.cnf删除即可。
4. nfs的一个报错:mount.nfs: Input/output error
mount.nfs: Input/output error
解决:在客户端也需启动portmap
5./usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1
解决办法:安装包 yum install libtool-ltdl.x86_64 libtool-ltdl-devel.x86_64
6. 当使用共享存储挂载nfs时,可能会有权限问题导致mysql启动不了的情况,解决办法就是,需要在发布nfs共享时,加上no_root_squash选项。
7. 执行ffmpeg命令时,提示cannot restore segment prot after reloc: Permission denied
原因是打开了selinux,只要关闭selinux就可以了
需要vim /etc/selinux/config  置为:disable
如果不想重启系统,则只需这样: setenforce 0
8.编译mplayer时出现错误:
nellymoserenc.c:217: error: for each function it appears in.)
make[1]: *** [nellymoserenc.o] Error 1
make[1]: Leaving directory `/usr/local/src/mplayer-export-2009-04-01/libavcodec'
make: *** [libavcodec/libavcodec.a] Error 2

安装freetype库就OK了
yum install -y freetype.i386 freetype-devel.i386 freetype-demos.i386

9. 编译php (fpm方式)报错
undefined reference to libiconv_open
解决办法:编辑Makefile 大约77 行左右的地方:
EXTRA_LIBS = ..... -lcrypt
在最后加上 -liconv,例如:
EXTRA_LIBS = ..... -lcrypt -liconv
然后重新再次 make 即可。

10. 编译php时
ext/xmlreader/php_xmlreader.o: In function `zim_xmlreader_XML':
/usr/local/src/php-5.2.8/ext/xmlreader/php_xmlreader.c:1109: undefined reference to `xmlTextReaderSetup'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1
解决办法:折腾了半天,最后先make clean 一下,然后把所有libxml2相关的包都装上重新编译就ok了。
11、为php编译xcache模块的时候,需要运行phpize
得到了一个错误
#/usr/local/php/bin/phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
environment variable is set correctly and then rerun this script.

通过安装 autoconf 可以解决
centos下执行 yum install autoconf 即可
ubuntu下执行 apt-get install autoconf 即可

12、有时编译php的时候报错找不多libjpeg库时,我们检测已经安装,此时可能需要把所有的rpm包括i386,x86_64的包全装上才可以通过。

13、make install php的时候经常会
error while loading shared libraries: /usr/local/mysql/lib/libmysqlclient.so.15: cannot restore segment prot after reloc: Permission denied
这是selinux打开的原因,需要关闭selinux  
可以 vim /etc/selinux/config  设置成 disabled 然后重启,或者直接(不需要重启)
# setenforce 0  
有时会没有这个命令可以安装libselinux-1.22-3tr
2009-10-21 13:46 举报
已邀请:
0

糊涂虫

赞同来自:

本帖最后由 糊涂虫 于 2009-12-21 19:27 编辑

这些都是关于5D6D的吗?看不明白的说:$
0

阿铭老师 管理员

赞同来自:

当然不是啦。
0

阿铭 管理员

赞同来自:

/usr/bin/ld: cannot find –lelf
collect2: ld returned 1 exit status
make[1]: *** [snmpd] Error 1 make[1]: Leaving directory `/local/akazam/cacti/bak/net-snmp-5.4.2/agent'
make: *** [subdirs] Error 1
ke[1]: Leaving directory `/local/akazam/cacti/bak/net-snmp-5.4.2/agent
make: *** [subdirs] Error 1
解决方法
执行命令: ln -s /usr/lib/libelf.so.1  /usr/lib/libelf.so
0

阿铭 管理员

赞同来自:

/bin/sed: can't read /usr/lib/libbeecrypt.la: No such file or directory
libtool: link: `/usr/lib/libbeecrypt.la' is not a valid libtool archive
make[1]: *** [libnetsnmpmibs.la] Error 1
make[1]:Leavingdirectory /email/share/ceno_soft/net-snmp-5.4.1/agent'
make: *** [subdirs] Error 1
解决方法
说明缺少libbeecrypt.la ,libbeecrypt.so等共享库
如果确认系统中有libbeecrypt.la,也许他安装在/usr/local下面,可尝试:
ln -s /usr/local/lib/libbeecrypt.la /usr/lib/libbeecrypt.la
0

阿铭 管理员

赞同来自:

Cannot find pam headers. Please check if your system is ready for pam module development.

解决办法 :
yum install -y pam-devel
0

2422606568

赞同来自:

恩不错
0

wangdi244

赞同来自:

非常好
0

taime

赞同来自:

顶~~~~~~~~~~~~~~

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: