通过composer安装Microsoft Azure存储库for PHP的问题

时间:2016-05-27 07:19:18

标签: php azure azure-storage

我们正在尝试安装Microsoft Azure Storage Library for PHP但是得到一些奇怪的错误我们用Google搜索并且它什么也没有返回,这就是我们做的事情

  1. 克隆了来自github的回购
  2. composer install(见图片查看错误)
  3. screen after composer install

    这是我们得到的结果(用于seo目的或者图像未正确加载)

    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - theseer/phpdox 0.8.1.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
        - theseer/phpdox 0.8.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
        - theseer/phpdox 0.8.0 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
        - Installation request for theseer/phpdox ~0.8 -> satisfiable by theseer/phpdox[0.8.0, 0.8.1, 0.8.1.1].
    
      To enable extensions, verify that they are enabled in those .ini files:
        - /etc/php5/cli/php.ini
        - /etc/php5/cli/conf.d/05-opcache.ini
        - /etc/php5/cli/conf.d/10-pdo.ini
        - /etc/php5/cli/conf.d/20-curl.ini
        - /etc/php5/cli/conf.d/20-gd.ini
        - /etc/php5/cli/conf.d/20-json.ini
        - /etc/php5/cli/conf.d/20-mysql.ini
        - /etc/php5/cli/conf.d/20-mysqli.ini
        - /etc/php5/cli/conf.d/20-pdo_mysql.ini
        - /etc/php5/cli/conf.d/20-readline.ini
      You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
    

    根据指示,我们运行了php --ini

    after running php --ini

    这里是确切的输出(对于没有正确加载的seo或图像)

    Configuration File (php.ini) Path: /etc/php5/cli
    Loaded Configuration File:         /etc/php5/cli/php.ini
    Scan for additional .ini files in: /etc/php5/cli/conf.d
    Additional .ini files parsed:      /etc/php5/cli/conf.d/05-opcache.ini,
    /etc/php5/cli/conf.d/10-pdo.ini,
    /etc/php5/cli/conf.d/20-curl.ini,
    /etc/php5/cli/conf.d/20-gd.ini,
    /etc/php5/cli/conf.d/20-json.ini,
    /etc/php5/cli/conf.d/20-mysql.ini,
    /etc/php5/cli/conf.d/20-mysqli.ini,
    /etc/php5/cli/conf.d/20-pdo_mysql.ini,
    /etc/php5/cli/conf.d/20-readline.ini
    

    现在根据我们的假设,需要扩展,但我们无法找到究竟是什么问题。

1 个答案:

答案 0 :(得分:0)

好的,所有这些错误都有一条隐藏的行the requested PHP extension xsl is missing from your system由于这个错误的大小我不知道怎么看,如果你正在挣扎,这就是你应该做的事情

  1. 输入命令行xsl,检查是否启用了php -m 现在这将给出巨大的列表,确保xsl是否存在,如果不遵循第2步
  2. 如果未启用/安装xsl,请输入此命令sudo apt-get insitall php5-xsl,然后输入php -m
  3. 确保启用此命令 希望它可以节省你的六个小时:)