php5.3.*编译出现make: *** [ext/gd/libgd/gd_compat.lo] Error 1 解决方法 [转]

In file included from /root/php-5.3.6/ext/gd/libgd/gd_compat.c:8:

/usr/local/jpeg/include/jpeglib.h:938: error: expected declaration specifiers or ‘...’ before ‘FILE’

/usr/local/jpeg/include/jpeglib.h:939: error: expected declaration specifiers or ‘...’ before ‘FILE’

make: *** [ext/gd/libgd/gd_compat.lo] Error 1

百度谷歌了好久,网上给的方案是修改 php-5.3.6/ext/gd/libgd/gd_compat.c 的代码。把文件里面的png.h和jpeglib.h路径改成自己环境下的绝对路径,比如:/usr/local/libpng/include/png.h  和 /usr/local/jpeg/include/jpeglib.h 重新configure, make 结果还是不行,提示同样错误。后来看到国外的一个论坛上找到了解决方法:

修改 php-5.3.6/ext/gd/libgd/gd_compat.c 把 png.h 改成绝对路径(这个在编译gd库的时候应该就碰到了,同样的路径即可)

并在 # include 前面增加一行 #include

时间: 2024-08-08 09:38:24

php5.3.*编译出现make: *** [ext/gd/libgd/gd_compat.lo] Error 1 解决方法 [转]的相关文章

php编译安装执行make时报错: make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1

php编译安装执行make时报错,报错如下: /bin/sh /root/php-5.6.31/libtool --silent --preserve-dup-deps --mode=compile cc -I/root/php-5.6.31/ext/fileinfo/libmagic -Iext/fileinfo/ -I/root/php-5.6.31/ext/fileinfo/ -DPHP_ATOM_INC -I/root/php-5.6.31/include -I/root/php-5.6

linux下安装php make: *** [sapi/cli/php] 错误 1 和 [ext/fileinfo/libmagic/apprentice.lo] Error 1的解决方法

p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Arial; color: #333333; background-color: #ffffff } p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Arial; color: #333333; background-color: #ffffff; min-height: 16.0px } span.s1 { } make: ***

MySQL编译安装错误:No curses/termcap library found的解决方法

CentOS编译安装MySQL,./coonfigure时出现错误: checking for termcap functions library... configure: error: No curses/termcap library found 解决方法:安装 1.下载网址:ftp://invisible-island.net/ncurses/ # tar -zvxf ncurses-5.7.tar.gz # ./configure # make # make install 2.安装了

redhat编译安装postfix-3.1.1出现的一些错误及解决方法

今天尝试在rhel5.8下编译安装postfix,在编译安装postfix-3.1.1时出现了些小问题,在此记录下,以备不时之需,同时希望可以帮助到遇到相同问题的朋友. 1.在make makefiles及make命令顺利完成并执行make install命令时,出现以下现象: 前两个选项提供默认值,其后的各选项都不再出现默认值,手动输入各选项的值最终还是报错:error while loading shared libraries: libmysqlclient.so.18: cannot o

编译安装mysql5.6.29及安装报错的解决方法

1.安装必要的库文件 yum install -y gcc* 2.yum安装camke yum install -y cmake 编译安装cmake cd /usr/local/src wget http://www.cmake.org/files/v2.8/cmake-2.8.7.tar.gz tar zxvf cmake-2.8.7.tar.gz cd cmake-2.8.7 ./configure make make install 3.安装 MYSQL cd /usr/local/src

4. Xcode 编译报 lipo error,解决方法

lipo error 的错误,一般是因为你的编译器设置出了问题. 在 build Settings 里 Valid Architectures 只设置为 armv7,删掉其他armv7s之类的属性,编译即可通过. 参考: http://stackoverflow.com/questions/17348912/lipo-error-cant-open-input-file

【Javaweb】于Eclipse for JavaEE中编译一个项目Tomcat下的webapps却没有的解决方法

从官网下载的Eclipse for JavaEE成功配置好tomcat服务器,然后把WEB工程成功配置到Tomcat,输入http://localhost:8080/工程名/index.jsp(8080为Tomcat的端口,index.jsp为要访问的页面)能够成功运行,可以自己手工在Windows资源管理器中打开Tomcat下的Webapps想把这个编译好的项目取去来,上传到服务器上,却发现没有. 这于MyEclipse不同,官网的Eclipse自动把你的工程扔到别的地方了 此时,你应该: 1

[转]IDEA 出现编译错误 Multi-catches are not supported a this language level 解决方法

转自 http://blog.csdn.net/qq465235530/article/details/53897538 首先出现这种问题是说明正在使用低版本jdk编译其本身不支持的语法,出现这种情况有三种解决办法, 1.首先检查"File" -> "Project Structure" -> "Project settings" -> "Project" -> "Project langua

编译的 Ruby 2.3.0 缺少 openssl 支持的解决方法 (已解决)

我的系统是centos 7.5,已离线安装ruby-2.3.0,openssl-1.0.2l,rubygems-2.7.4 如下图: 但是在  gem sources -a http://gems.ruby-china.org/   时报错 Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources 重新编译发现, make的输出中有 configuring op