Linux安装错误集及解决办法

分享到:
1、启动mysql错误提示
error while loading shared libraries: libstdc++.so.5: cannot open shared object 
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
解决办法:
yum install compat-libstdc++-33

2、make: 警告:检测到时钟错误。您的创建可能是不完整的。

由于内核时间与cmos时间不一致

hwclock –hctosys

3、gd_png.c:16:53: error: png.h: No such file or directory

  vi gd_png.c
  将16行的png.h修改成 /usr/local/modules/libpng/include/png.h

当发现没有找到.h文件时,一般是由于没有在/usr/include中存在,建一个软链接即可

4、ob_start(): Ensure unerasable buffer cannot be flushed by ob_flush()

http://aspn.activestate.com/ASPN/Mail/Message/php-dev/3803631
这儿有眉目了,看来是php的一个bug,libpng-1.4.0源码中的libpng-1.4.0.txt有说明,已经取消了png_check_sig这个函数,改用png_sig_cmp代
替.自从libpng-0.90就已经反对使用png_check_sig函数了.这个帖子中采用修改php源码的方法,编辑ext/gd/libgd/gd_png.c,将
if (!png_check_sig (sig, 8)) { /* bad signature */
换成
if (png_sig_cmp (sig, 0, 8)) { /* bad signature */

评论关闭。