7

के माध्यम से phpDocumentor स्थापित नहीं कर सकता composer.json में मुझे मिल गया हैसंगीतकार

{ 
    "require": 
    { 
     "phpdocumentor/phpdocumentor": "*" 
    } 
} 

यह क्या है क्योंकि मैं ./composer.phar install कमांड के साथ एक अलग फ़ोल्डर में phpDocumentor स्थापित करने के लिए कोशिश कर रहा हूँ है। लेकिन मुझे जो मिल रहा है वह

Loading composer repositories with package information 
Updating dependencies (including require-dev) 
Your requirements could not be resolved to an installable set of packages. 

    Problem 1 
    - phpdocumentor/phpdocumentor v2.0.0 requires phpdocumentor/template-abstract ~1.2 -> satisfiable by phpdocumentor/template-abstract[1.2, 1.2.1]. 
    - phpdocumentor/phpdocumentor v2.0.1 requires phpdocumentor/template-abstract ~1.2 -> satisfiable by phpdocumentor/template-abstract[1.2, 1.2.1]. 
    - phpdocumentor/phpdocumentor v2.1.0 requires phpdocumentor/template-abstract ~1.2 -> satisfiable by phpdocumentor/template-abstract[1.2, 1.2.1]. 
    - phpdocumentor/phpdocumentor v2.2.0 requires phpdocumentor/template-abstract ~1.2 -> satisfiable by phpdocumentor/template-abstract[1.2, 1.2.1]. 
    - phpdocumentor/phpdocumentor v2.3.2 requires phpdocumentor/template-abstract ~1.2 -> satisfiable by phpdocumentor/template-abstract[1.2, 1.2.1]. 
    - phpdocumentor/phpdocumentor v2.4.0 requires phpdocumentor/template-abstract ~1.2 -> satisfiable by phpdocumentor/template-abstract[1.2, 1.2.1]. 
    - phpdocumentor/phpdocumentor v2.3.1 requires dompdf/dompdf [email protected] -> no matching package found. 
    - phpdocumentor/phpdocumentor v2.3.0 requires dompdf/dompdf [email protected] -> no matching package found. 
    - phpdocumentor/template-abstract 1.2.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system. 
    - phpdocumentor/template-abstract 1.2 requires ext-xsl * -> the requested PHP extension xsl is missing from your system. 
    - Installation request for phpdocumentor/phpdocumentor * -> satisfiable by phpdocumentor/phpdocumentor[v2.0.0, v2.0.1, v2.1.0, v2.2.0, v2.3.0, v2.3.1, v2.3.2, v2.4.0]. 

Potential causes: 
- A typo in the package name 
- The package is not available in a stable-enough version according to your minimum-stability setting 
    see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details. 

उत्तर

8

त्रुटि संदेश इंगित करता है कि आप अपने PHP सेटअप में एक्सएसएल एक्सटेंशन खो रहे हैं। उस एक्सटेंशन को स्थापित करने के बारे में अधिक जानकारी के लिए आप http://www.php.net/manual/en/xsl.installation.php देख सकते हैं।

कृपया ध्यान दें कि डिफ़ॉल्ट टेम्पलेट के लिए एक्सएसएल एक्सटेंशन आवश्यक नहीं है; आप PHAR निष्पादन योग्य या डाउनलोड करने योग्य संग्रह का भी उपयोग करना चुन सकते हैं। इन्हें https://github.com/phpDocumentor/phpDocumentor2/releases/latest से डाउनलोड किया जा सकता है। ये दोनों एक्सएसएल एक्सटेंशन की जांच नहीं करते हैं और इस प्रकार सुरक्षित रूप से उपयोग किए जा सकते हैं।

+0

मैं इसे करने के लिए कुछ दुस्साहसिक संपादन करने के लिए phpdoc के स्रोत की जरूरत है। धन्यवाद। –

1

आप आसानी से एक्सएसएल एक्सटेंशन सक्षम कर सकते हैं (क्योंकि इसे डिफ़ॉल्ट रूप से PHP 5 में शामिल किया गया है)।

php.ini फ़ाइल का पता लगाएँ और (टिप्पणी हटाएं) सक्षम

विस्तार = php_xsl.dll

(WAMP पर; WAMP आइकन पर क्लिक करें -> पीएचपी -> PHP एक्सटेंशन -> php_xsl)

कृपया यह भी पीएचपी CLI (see here द्वारा प्रयोग किया जाता php.ini फ़ाइल में विस्तार) को सक्षम करने के रूप में इस जब कमांड लाइन पर चलने से एक संगीतकार का उपयोग करता है न भूलें।

संदर्भ (लिंक ऊपर से) के लिए:

/etc/php5/cli/php.ini CLI पीएचपी कार्यक्रम, आप द्वारा पाया जो टर्मिनल पर php चलाने के लिए है।

/etc/php5/cgi/php.ini php-cgi सिस्टम के लिए है जो विशेष रूप से इस सेटअप में उपयोग नहीं किया जाता है।

/etc/php5/apache2/php.ini अपाचे द्वारा उपयोग की जाने वाली PHP प्लगइन के लिए है। यह वह है जिसे आपको अपने अपाचे सेटअप के लिए लागू होने वाले परिवर्तनों के लिए संपादित करने की आवश्यकता है।

सर्वर के बाद के पासवर्ड को पुनरारंभ करने के लिए आसान हो सकता है।

पुनश्च:

संगीतकार शो -p

गुड लक: आप एक्सटेंशन की उपलब्धता का उपयोग कर पुष्टि कर सकें।

+0

~~~~~~~ धन्यवाद। –

9

कोशिश sudo apt-get स्थापित PHP5-XSL

+0

यह मेरे लिए काम करता है और मुझे पैकेज का प्रबंधन करने के लिए संगीतकार का उपयोग जारी रखने की इजाजत देता है, इसलिए मेरे पास यह सब पैकेज मेरे सभी अन्य लोगों से अलग नहीं था :) – user3640967