6
我想在我的共享主機上首次安裝作曲家。在共享主機上安裝作曲家
當我運行curl -sS https://getcomposer.org/installer | php
我得到一個作曲家成功安裝
用戶它:php composer.phar
當我運行php composer.phar
我收到此交戰錯誤:
警告:作曲家應該通過調用CLI版本的PHP,而不是cgi-fcgi SAPI
有關如何解決此問題的任何想法?爲什麼我得到這個錯誤? :(
當我運行php -v
我得到這個回
PHP 5.4.39 (cgi-fcgi) (built: Mar 25 2015 14:20:20)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with Zend Guard Loader v3.3, Copyright (c) 1998-2013, by Zend Technologies
我是否需要運行這個使用CLI的版本,如果這樣會怎樣我做到這一點?
任何幫助將是不錯的感謝
你試過這個嗎? https://github.com/composer/composer/issues/1513#issuecomment-45207197 –
我試過$ php -d register_argc_argv = 1「./composer.phar」從鏈接安裝,我得到相同的錯誤警告:應該通過CLI版本的PHP調用Composer,而不是cgi-fcgi SAPI ....它還說使用php-cli vendor/bin/phpunit來運行PHPUnit。我該怎麼做?...謝謝你的幫助 –
是否安裝了PHPUnit? https://phpunit.de/manual/current/en/installation.html –