VPS侦探论坛

 找回密码
 注册
12
返回列表 发新帖
楼主: licess

lnmp之安装PHP模块(不需要重装PHP)

[复制链接]
发表于 2012-2-18 12:36:22 | 显示全部楼层

回复 14# 的帖子


./configure --with-php-config=/usr/local/php/bin/php-config--with -kerberos

[root@gg ext]# ./configure --with-php-config=/usr/local/php/bin/php-config--with -kerberos
-bash: ./configure: No such file or directory
显示这个
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-2-18 15:53:19 | 显示全部楼层

回复 16# 的帖子



没进对目录,没输对命令
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-2-18 16:41:16 | 显示全部楼层

./configure --with-php-config=/usr/local/php/bin/php-config--with -kerberos
configure: error: unrecognized option: -kerberos
Try `./configure --help' for more information.
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-2-18 18:26:55 | 显示全部楼层



都说过一次了,没输对参数,加空格肯定是加在参数的前面,能把一个参数分成2块吗
而且,你输错了,也已经提示了。
./configure --with-php-config=/usr/local/php/bin/php-config --with-kerberos
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-2-18 19:11:14 | 显示全部楼层

-bash: ./configure: No such file or directory
./configure --with-php-config=/usr/local/php/bin/php-config --with-kerberos 按你说的这个输入后显示上面的问题呢
这些我都是不懂的,也都是直接按照说明操作的,所以你说的那些我都不懂的

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

发表于 2012-7-27 06:15:13 | 显示全部楼层

回复 6# 的帖子


[root@VABCV imap]# ./configure --with-php-config=/usr/local/php/bin/php-config --with-kerberos
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr/local/php
checking for PHP includes... -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix... /usr/local/php/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for IMAP support... yes, shared
checking for IMAP Kerberos support... yes
checking for IMAP SSL support... no
checking for utf8_mime2text signature... old
checking for U8T_DECOMPOSE...
checking for pam_start in -lpam... no
checking for crypt in -lcrypt... yes
checking for krb5-config... /usr/kerberos/bin/krb5-config
configure: error: This c-client library is built with SSL support.

      Add --with-imap-ssl to your configure line. Check config.log for details.
      
[root@VABCV imap]# make && make install
make: *** No targets specified and no makefile found.  Stop.
[root@VABCV imap]#

还是报错啊!!
发表于 2013-11-22 15:49:36 | 显示全部楼层

军哥写一下安装curl的详细步骤,需不需要安装库?我安装的时候,php.ini去掉注释那句,就提示需要库什么的
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2013-11-22 20:03:58 | 显示全部楼层

回复 22# 的帖子


curl 本来就有,可以自己看phpinfo

php.ini就是安装其他模块或组件也不需要去掉里面的注释,都是添加.so 的配置

完全就是依教程类推,编译时提示缺什么就再装什么
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2014-2-3 15:17:47 | 显示全部楼层


我的经验:
第一次,刚开始就错在编译上
configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.
解决办法:
在确实libc-cleint 已经安装成功的前提下,做一个链接,ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so
第二次,执行,增加--with -kerberos
configure: error: This c-client library is built with SSL support.

      Add --with-imap-ssl to your configure line. Check config.log for details.
第三次,执行,./configure --with-php-config=/usr/local/php/bin/php-config --with-imap-ssl --with-kerberos
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h

开始MAKE    #make && make install
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Build complete.
Don't forget to run 'make test'.
Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/

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

发表于 2014-2-3 15:29:34 | 显示全部楼层



[root@x-phpFAQ-01 imap]# make test

Build complete.
Don't forget to run 'make test'.


+--------------------------------------------------------------+
|                       ! ERROR !                                           |
| The test-suite requires that proc_open() is available.         |
| Please check if you disabled it in php.ini.                       |
+--------------------------------------------------------------+


先备份php.ini文件,再修改php.ini文件,将disable列表中的proc_open功能删除

再执行make test
[root@x-phpFAQ-01 imap]# make test

Build complete.
Don't forget to run 'make test'.

PHP Warning:  putenv(): Safe Mode warning: Cannot set environment variable 'SSH_CLIENT' - it's not in the allowed list in /root/lnmp1.0-full/php-5.3.17/ext/imap/run-tests.php on line 98
PHP Warning:  putenv(): Safe Mode warning: Cannot set environment variable 'SSH_AUTH_SOCK' - it's not in the allowed list in /root/lnmp1.0-full/php-5.3.17/ext/imap/run-tests.php on line 99
PHP Warning:  putenv(): Safe Mode warning: Cannot set environment variable 'SSH_TTY' - it's not in the allowed list in /root/lnmp1.0-full/php-5.3.17/ext/imap/run-tests.php on line 100
PHP Warning:  putenv(): Safe Mode warning: Cannot set environment variable 'SSH_CONNECTION' - it's not in the allowed list in /root/lnmp1.0-full/php-5.3.17/ext/imap/run-tests.php on line 101
PHP Warning:  set_time_limit(): Cannot set time limit in safe mode in /root/lnmp1.0-full/php-5.3.17/ext/imap/run-tests.php on line 104

+-----------------------------------------------------------+
|                       ! WARNING !                         |
| You are running the test-suite with "safe_mode" ENABLED ! |
|                                                           |
| Chances are high that no test will work at all,           |
| depending on how you configured "safe_mode" !             |
+-----------------------------------------------------------+

ERROR: invalid PHP executable specified by TEST_PHP_EXECUTABLE  = /usr/local/php/bin/php

本帖子中包含更多资源

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

x
发表于 2014-12-12 22:14:14 | 显示全部楼层

这个很受用
发表于 2016-8-17 10:52:11 | 显示全部楼层

php安装目录在哪呀??


我想装一个redis和mongodb的拓展,我在ext里面没看到

[ 本帖最后由 tlijian1989 于 2016-8-17 11:17 编辑 ]
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-23 03:19 , Processed in 0.029560 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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