我试图在ubuntu 12.04 LTS上部署一个symphony应用程序,但在安装libapache2-modxslt时遇到问题。下面是check_configuration.php的输出,可以看到没有安装XSL模块。
********************************
* *
* symfony requirements check *
* *
********************************
php.ini used by PHP: /etc/php5/apache2/php.ini
** Mandatory requirements **
OK PHP version is at least 5.2.4 (5.3.10-1ubuntu3.2)
** Optional checks **
OK PDO is installed
OK PDO has some drivers installed: mysql
OK PHP-XML module is installed
[[WARNING]] XSL module is installed: FAILED
*** Install and enable the XSL module (recommended for Propel) ***
OK The token_get_all() function is available
OK The mb_strlen() function is available
OK The iconv() function is available
OK The utf8_decode() is available
OK The posix_isatty() is available
[[WARNING]] A PHP accelerator is installed: FAILED
*** Install a PHP accelerator like APC (highly recommended) ***
[[WARNING]] php.ini has short_open_tag set to off: FAILED
*** Set it to off in php.ini ***
OK php.ini has magic_quotes_gpc set to off
OK php.ini has register_globals set to off
OK php.ini has session.auto_start set to off
OK PHP version is not 5.2.9我在尝试安装libapache2-modxslt时输入以下命令,输出如下所示。
mark@ubuntu:/$ sudo apt-get install libapache2-modxslt php5-xsl
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libapache2-modxslt请给我建议。
发布于 2012-09-07 02:37:14
Debian/Ubuntu包的命名略有不同。它应该是libapache2-mod-xslt而不是libapache2-modxslt (注意"mod“和模块名称之间的破折号)。所以试一试
sudo apt-get install libapache2-mod-xslt php5-xsl而不是,既然你只需要XLSP包,那么就让包管理器自己找到正确的依赖项(包管理做得很好,在Debian和衍生工具上也很强大,比如Ubuntu)。所以,简单地这样做:
sudo apt-get install php5-xsl让一切顺其自然吧。如果你很好奇,你可以像这样使用apt-cache列出包依赖关系:
sudo apt-cache depends php5-xsl但是如果没有,并且你要安装的软件包需要额外的东西,apt会让你知道,并要求确认安装额外的所需软件包。
https://stackoverflow.com/questions/12305320
复制相似问题