打印

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

回复 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
显示这个

TOP

回复 16# 的帖子

没进对目录,没输对命令

Paypal信用卡代付/代购VPS/域名/软件/付费代维问题解决等 QQ 503228080 旺旺 lzhenbao
军哥淘宝店铺
QQ/旺旺仅提供代购及付费代维/问题解决等服务,其他不回复!LNMP相关问题请在本论坛发帖,提问前先搜索,按https://bbs.vpser.net/thread-2555-1-1.html 反馈信息!

TOP

./configure --with-php-config=/usr/local/php/bin/php-config--with -kerberos
configure: error: unrecognized option: -kerberos
Try `./configure --help' for more information.

TOP

都说过一次了,没输对参数,加空格肯定是加在参数的前面,能把一个参数分成2块吗
而且,你输错了,也已经提示了。
./configure --with-php-config=/usr/local/php/bin/php-config --with-kerberos

Paypal信用卡代付/代购VPS/域名/软件/付费代维问题解决等 QQ 503228080 旺旺 lzhenbao
军哥淘宝店铺
QQ/旺旺仅提供代购及付费代维/问题解决等服务,其他不回复!LNMP相关问题请在本论坛发帖,提问前先搜索,按https://bbs.vpser.net/thread-2555-1-1.html 反馈信息!

TOP

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

TOP

回复 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]#

还是报错啊!!

TOP

军哥写一下安装curl的详细步骤,需不需要安装库?我安装的时候,php.ini去掉注释那句,就提示需要库什么的

TOP

回复 22# 的帖子

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

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

完全就是依教程类推,编译时提示缺什么就再装什么

Paypal信用卡代付/代购VPS/域名/软件/付费代维问题解决等 QQ 503228080 旺旺 lzhenbao
军哥淘宝店铺
QQ/旺旺仅提供代购及付费代维/问题解决等服务,其他不回复!LNMP相关问题请在本论坛发帖,提问前先搜索,按https://bbs.vpser.net/thread-2555-1-1.html 反馈信息!

TOP

我的经验:
第一次,刚开始就错在编译上
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/

TOP

[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
附件: 您所在的用户组无法下载或查看附件

TOP

这个很受用

TOP

php安装目录在哪呀??

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

[ 本帖最后由 tlijian1989 于 2016-8-17 11:17 编辑 ]

TOP