军哥LNMP0.8安装XSL方法
# 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并不工作,求解决办法! 只有这些信息,我们没法说
如果没报错可能是没重启或没修改/usr/local/php/etc/php.ini
回复 2# 的帖子
那个php.ini已经添加了xsl # 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 make && make install
没错误吧? 我也装不上,新手好难啊
军哥能不能回复一个操作步骤呢?
回复 2# 的帖子
修改php.ini的话要修改哪里呢?回复 7# 的帖子
N久前就写过PHP模块的安装方法 https://www.vpser.net/manage/lnmp-php-install-ext.html自己不找找
回复 8# 的帖子
谢谢军哥,这帖子看过了,就是太菜了还是看不懂目前是执行到make && make install都没有发现错误
你说的配置php.ini,我不懂要添加的那一句应该是什么内容,
添加下面这一句吗?
extension = "imap.so"
回复 9# 的帖子
也重启了lnmp服务了。。我要安装的系统是ilias学习管理系统。
回复 9# 的帖子
终于配置成功了,貌似除了在PHP.ini添加这一句,extension = "xsl.so"还要把extension =php_xsl.dll前面的分号去掉。
页:
[1]