VPS侦探论坛

 找回密码
 注册
查看: 9059|回复: 13

0.7的php就是装不上去……疯了

[复制链接]
发表于 2011-8-4 16:04:36 | 显示全部楼层 |阅读模式

无论是lnmpa还是lnmp用一键总是装不了PHP= =郁闷中
php安装那段就是一坨的
php-5.2.17/ext/standard/tests/class_object/interface_exists_error.phpt
php-5.2.17/ext/standard/tests/class_object/get_object_vars_basic_001.phpt
php-5.2.17/ext/standard/tests/class_object/get_declared_interfaces_error_001.phpt
php-5.2.17/ext/standard/tests/class_object/get_object_vars_basic_002.phpt
php-5.2.17/ext/standard/tests/class_object/is_subclass_of_error_001.phpt
php-5.2.17/ext/standard/tests/class_object/AutoLoaded.inc
php-5.2.17/ext/standard/tests/class_object/AutoTest.inc
php-5.2.17/ext/standard/tests/class_object/class_exists_variation_001.phpt
php-5.2.17/ext/standard/tests/class_object/class_exists_variation_002.phpt
php-5.2.17/ext/standard/tests/class_object/class_exists_variation_003.phpt
php-5.2.17/ext/standard/tests/class_object/class_exists_error_001.phpt
php-5.2.17/ext/standard/tests/class_object/get_declared_classes_error_001.phpt
php-5.2.17/ext/standard/tests/class_object/is_subclass_of_variation_001.phpt
php-5.2.17/ext/standard/tests/class_object/is_subclass_of_variation_002.phpt
php-5.2.17/ext/standard/tests/class_object/is_subclass_of_variation_003.phpt
php-5.2.17/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt
php-5.2.17/ext/standard/tests/class_object/interface_exists_variation1.phpt
php-5.2.17/ext/standard/tests/class_object/interface_exists_variation2.phpt
php-5.2.17/ext/standard/tests/class_object/interface_exists_variation3.phpt
php-5.2.17/ext/standard/tests/class_object/interface_exists_variation4.phpt
php-5.2.17/ext/standard/tests/class_object/get_class_variation_001.phpt
然后
patching file configure
Hunk #7 succeeded at 110645 (offset 1324 lines).
Hunk #8 succeeded at 118930 (offset 1324 lines).
Hunk #9 succeeded at 119634 (offset 1324 lines).
Hunk #10 succeeded at 119689 (offset 1324 lines).
patching file configure.in
patching file libevent/ChangeLog
patching file libevent/Makefile.am
patching file libevent/Makefile.in
patching file libevent/README
patching file libevent/aclocal.m4
patching file libevent/autogen.sh
patching file libevent/buffer.c
patching file libevent/compat/sys/_time.h
patching file libevent/compat/sys/queue.h
patching file libevent/config.h.in
patching file libevent/configure
patching file libevent/configure.in
patching file libevent/depcomp
patching file libevent/devpoll.c
patching file libevent/epoll.c
patching file libevent/epoll_sub.c
patching file libevent/evbuffer.c
patching file libevent/event-config.h
patching file libevent/event-fpm.h
。。。
然后patching file sapi/cgi/fpm/zlog.h
Forcing buildconf
buildconf: checking installation...
buildconf: autoconf version 2.13 (ok)
rebuilding aclocal.m4
rebuilding configure
rebuilding main/php_config.h.in
creating cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for icc... no
。。。。
然后
memcache-3.0.5/example.php
memcache-3.0.5/memcache.c
memcache-3.0.5/memcache_pool.c
memcache-3.0.5/memcache_queue.c
memcache-3.0.5/memcache_session.c
memcache-3.0.5/memcache_ascii_protocol.c
memcache-3.0.5/memcache_binary_protocol.c
memcache-3.0.5/memcache_standard_hash.c
memcache-3.0.5/memcache_consistent_hash.c
memcache-3.0.5/memcache.dsp
memcache-3.0.5/php_memcache.h
memcache-3.0.5/memcache_pool.h
memcache-3.0.5/memcache_queue.h
memcache-3.0.5/README
memcache-3.0.5/memcache.php
package2.xml
PDO_MYSQL-1.0.2/config.m4
PDO_MYSQL-1.0.2/CREDITS
PDO_MYSQL-1.0.2/mysql_driver.c
PDO_MYSQL-1.0.2/mysql_statement.c
PDO_MYSQL-1.0.2/pdo_mysql.c
PDO_MYSQL-1.0.2/php_pdo_mysql.h
PDO_MYSQL-1.0.2/php_pdo_mysql_int.h
PDO_MYSQL-1.0.2/php_pdo_mysql_sqlstate.h
package.xml
ZendOptimizer-3.3.9-linux-glibc23-i386/
ZendOptimizer-3.3.9-linux-glibc23-i386/md5
ZendOptimizer-3.3.9-linux-glibc23-i386/Inventory.xml
ZendOptimizer-3.3.9-linux-glibc23-i386/EULA-ZendOptimizer
ZendOptimizer-3.3.9-linux-glibc23-i386/README-ZendOptimizer
ZendOptimizer-3.3.9-linux-glibc23-i386/LICENSE
ZendOptimizer-3.3.9-linux-glibc23-i386/data/
ZendOptimizer-3.3.9-linux-glibc23-i386/data/4_3_x_comp/
ZendOptimizer-3.3.9-linux-glibc23-i386/data/4_3_x_comp/ZendOptimizer.so
ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_1_x_comp/
ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_1_x_comp/ZendOptimizer.so
ZendOptimizer-3.3.9-linux-glibc23-i386/data/4_2_x_comp/
ZendOptimizer-3.3.9-linux-glibc23-i386/data/4_2_x_comp/ZendOptimizer.so
ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_0_x_comp/
ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_0_x_comp/ZendOptimizer.so
ZendOptimizer-3.3.9-linux-glibc23-i386/data/4_4_x_comp/
ZendOptimizer-3.3.9-linux-glibc23-i386/data/4_4_x_comp/ZendOptimizer.so
ZendOptimizer-3.3.9-linux-glibc23-i386/data/poweredbyoptimizer.gif
ZendOptimizer-3.3.9-linux-glibc23-i386/data/4_2_0_comp/
ZendOptimizer-3.3.9-linux-glibc23-i386/data/4_2_0_comp/ZendOptimizer.so
ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_2_x_comp/
ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_2_x_comp/ZendOptimizer.so
======================== php + php extensions install ==================

结果就是nginx就是502然后apache就是运行不了……
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-8-4 16:14:41 | 显示全部楼层


你提供的信息没有用处,需要php编译时的错误信息
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-8-4 17:06:55 | 显示全部楼层

回复 2# 的帖子


谢谢,问题是PHP完全没有编译……连错误提示都没有,那个log怎么上传用附件么?php-fpm is stop!

[ 本帖最后由 yangff 于 2011-8-4 17:10 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-8-4 17:36:28 | 显示全部楼层



手动按脚本编译安装看错误
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-8-4 18:19:17 | 显示全部楼层

回复 4# 的帖子


LIBjpeg搞完变成configure: error: Cannot find MySQL header files under /usr/local/mysql.
Note that the MySQL client library is not bundled anymore!


了= =擦,废话,我mysql还没装怎么可能会有&……

[ 本帖最后由 yangff 于 2011-8-4 20:51 编辑 ]

军哥运维代购:http://shop63846532.taobao.com/

发表于 2011-8-5 08:43:52 | 显示全部楼层

你mysql没装肯定会有这个提示
发表于 2011-8-8 15:19:10 | 显示全部楼层

今天刚装了台centos6的
也是php没装起来~~
mysql是装上了
php手动编译中...
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-8-8 15:31:49 | 显示全部楼层

configure: error: libjpeg.(a|so) not found.
[root@test php-5.2.17]# make ZEND_EXTRA_LIBS='-liconv'
make: *** 没有指明目标并且找不到 makefile。 停止。
[root@test php-5.2.17]# make install
make: *** 没有规则可以创建目标“install”。 停止。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-8-8 16:05:27 | 显示全部楼层


如果libjpeg已经装上,且是64位系统的话
执行ln -s /usr/lib64/libjpeg.so /usr/lib/
ln -s /usr/lib64/libpng.so /usr/lib/
再重新configure一下看看还有错误吗
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-8-8 16:22:59 | 显示全部楼层



多谢军哥!
yum -y install libjpeg 他告诉我gd库装了
到处搜了下
果然是坑爹的64位系统,文件在
/usr/lib64 里面
编译中...
发表于 2011-8-8 16:29:57 | 显示全部楼层

终于能跑起来了

php探针和phpinfo能跑
但是


[root@test php-5.2.17]# /etc/init.d/php-fpm start
Starting php_fpm PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/memcache.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
done
~~
发表于 2011-8-8 16:39:35 | 显示全部楼层

唔..心急了...
下面的还没装完呢 哈
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-8-8 16:52:07 | 显示全部楼层
都已经提示了
memcache和pdo_mysql没安装上,手动按脚本安装上重启php-fpm就行了
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-8-8 17:10:13 | 显示全部楼层
嗯..军哥我错了~~
php一编译完就急着运行了哈

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-12-28 18:11 , Processed in 0.030677 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表