Composer error while downloading phpdoc

Asked

Viewed 564 times

0

Operating System: Ubuntu 14.04 PHP 5.3.10 Curl 7.22.0

I am trying to download phpdocumentor 2.0.0. But it gives this error:

    Your requirements could not be resolved to an installable set of packages.
 Problem 1
    - phpdocumentor/template-zend 1.3.2 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
    - phpdocumentor/template-zend 1.3.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
    - phpdocumentor/template-zend 1.3.0 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
    - phpdocumentor/phpdocumentor v2.0.0 requires phpdocumentor/template-zend ~1.3 -> satisfiable by phpdocumentor/template-zend[1.3.0, 1.3.1, 1.3.2].
    - Installation request for phpdocumentor/phpdocumentor 2 -> satisfiable by phpdocumentor/phpdocumentor[v2.0.0]

The Composer.json:

{
    "require-dev": {
        "phpdocumentor/phpdocumentor": "2.*"
    }
}

I’m using the remote:

php composer.phar install

I must change the . json ? .

  • 1

    You installed the php5-xsl? apt-get install php5-xsl.

1 answer

5


The error message says:

the requested PHP Extension xsl is Missing from your system.

That is, you need to install the PHP xsl extension that is required.

On Ubuntu, use the following command:

$ sudo apt-get install php5-xsl
  • In windows as it would be ?

  • 1

    @alexjosesilva in Windows would probably need to enable the extension in php.ini (by removing the comment ";" from the corresponding line).

  • Great, save me some time, Thanks!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.