VPS侦探论坛

 找回密码
 注册
查看: 8379|回复: 10

军哥LNMP0.8安装XSL方法

[复制链接]
发表于 2011-12-28 09:56:33 | 显示全部楼层 |阅读模式

# yum install libxslt
# yum install libxslt-devel
# cd /root/lnmp0.8/php-5.2.17/ext/xsl
# /usr/local/php/bin/phpize
# ./configure --with-php-config=/usr/local/php/bin/php-config --with-xsl
# make && make install
按照这个方法安装XSL并不工作,求解决办法!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-12-28 12:44:14 | 显示全部楼层


只有这些信息,我们没法说

如果没报错可能是没重启或没修改/usr/local/php/etc/php.ini
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-12-28 12:58:05 | 显示全部楼层

回复 2# 的帖子


那个php.ini已经添加了xsl
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-12-29 12:44:18 | 显示全部楼层



# make test
/bin/sh /root/lnmp0.8/php-5.3.8/ext/xsl/libtool --mode=install cp ./xsl.la /root/lnmp0.8/php-5.3.8/ext/xsl/modules
cp ./.libs/xsl.so /root/lnmp0.8/php-5.3.8/ext/xsl/modules/xsl.so
cp ./.libs/xsl.lai /root/lnmp0.8/php-5.3.8/ext/xsl/modules/xsl.la
PATH="$PATH:/sbin" ldconfig -n /root/lnmp0.8/php-5.3.8/ext/xsl/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /root/lnmp0.8/php-5.3.8/ext/xsl/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

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/lnmp0.8/php-5.3.8/ext/xsl/run-tests.php on line 105
PHP Warning:  putenv(): Safe Mode warning: Cannot set environment variable 'SSH_AUTH_SOCK' - it's not in the allowed list in /root/lnmp0.8/php-5.3.8/ext/xsl/run-tests.php on line 106
PHP Warning:  putenv(): Safe Mode warning: Cannot set environment variable 'SSH_TTY' - it's not in the allowed list in /root/lnmp0.8/php-5.3.8/ext/xsl/run-tests.php on line 107
PHP Warning:  putenv(): Safe Mode warning: Cannot set environment variable 'SSH_CONNECTION' - it's not in the allowed list in /root/lnmp0.8/php-5.3.8/ext/xsl/run-tests.php on line 108
PHP Warning:  set_time_limit(): Cannot set time limit in safe mode in /root/lnmp0.8/php-5.3.8/ext/xsl/run-tests.php on line 111

+-----------------------------------------------------------+
|                       ! 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
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-12-29 16:08:56 | 显示全部楼层

make && make install
没错误吧?

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

发表于 2012-9-25 12:44:40 | 显示全部楼层

我也装不上,新手好难啊
军哥能不能回复一个操作步骤呢?
发表于 2012-9-25 14:00:16 | 显示全部楼层

回复 2# 的帖子


修改php.ini的话要修改哪里呢?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-9-25 14:10:06 | 显示全部楼层

回复 7# 的帖子


N久前就写过PHP模块的安装方法 https://www.vpser.net/manage/lnmp-php-install-ext.html
自己不找找
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-9-25 14:49:43 | 显示全部楼层

回复 8# 的帖子



谢谢军哥,这帖子看过了,就是太菜了还是看不懂
目前是执行到make && make install都没有发现错误
你说的配置php.ini,我不懂要添加的那一句应该是什么内容,
添加下面这一句吗?
extension = "imap.so"
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-9-25 14:53:09 | 显示全部楼层

回复 9# 的帖子




也重启了lnmp服务了。。
我要安装的系统是ilias学习管理系统。
发表于 2012-9-25 14:57:02 | 显示全部楼层

回复 9# 的帖子


终于配置成功了,貌似除了在PHP.ini添加这一句,extension = "xsl.so"
还要把extension =php_xsl.dll前面的分号去掉。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-23 19:26 , Processed in 0.029079 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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