#################################################
不要用--prefix自定义安装目录,否则可能会影响后面安装,可能出现的错误:
configure: error: zlib not installed
#################################################
#################################################
如果你的机器是64位,并且在安装png时候出现下面错误:
/usr/bin/ld: /usr/local/lib/libz.a(compress.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libz.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
|
#################################################
先建立目录,否则可能会出现类型下面错误:
/usr/bin/install -c cjpeg /usr/local/ /jpeg6
/usr/bin/install: cannot create regular file `/usr/local /jpeg6/bin/cjpeg’: No such file or directory
make: *** [install] Error 1
|
|
#################################################
如果你的机器是64位,并且在安装gd时候出现下面错误:
/usr/bin/ld: /usr/local/jpeg6/lib/libjpeg.a(compress.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
/usr/local/jpeg6/lib/libjpeg.a: could not read symbols: Bad value
|
|
collect2: ld returned 1 exit status
make[2]: *** [libgd.la] Error 1
|
#################################################
特别注意,要不下面会出现错误:
configure: error: libjpeg.(a|so) not found.
#################################################
|
################################################
如果出现下面错误:
configure: error: zlib not installed
请回到zlib,重新安装一次,最佳先 make clean
################################################
make install
|
gd_png.c:825: warning: data definition has no type or storage class
make[2]: *** [gd_png.lo] Error 1
修复方法:
找到CPPFLAGS=-I/usr/local /freetype/include/freetype2 -I/usr/local/apache2/modlib/freetyp
e/include -I/usr/local/ /freetype/include -I/usr/local /jpeg6/include
原来是少了png的支持了,把他改为
CPPFLAGS=-I/usr/local /freetype/include/freetype2-I/usr/local /freetyp
e/include
-I/usr/local/libpng /include -I/usr/local /jpeg6/include
#################################################
|
checking if we should use cURL for url streams... no
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
|
checking for strftime... (cached) yes
checking for QDBM support... no
configure: error: DBA: Could not find necessary header file(s).
|
checking for MSSQL support via FreeTDS... yes
configure: error: Directory /usr/local/freetds/ is not a FreeTDS installation directory
|
checking lex output file root... ./configure: line 3246: lex: command not found
configure: error: cannot find output from lex; giving up
|
configure: error: libjpeg.(a|so) not found.
|
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
<IfModule dir_module>
DirectoryIndex
index.php index.html
</IfModule>
|
<?php
phpinfo();
?>
|