我正试图为symfony2项目获得作曲家。
但是当我尝试这个命令
$ curl -s https://getcomposer.org/installer | php
我得到这个错误:
Some settings on your machine make Composer unable to work properly.Make sure that you fix the issues listed below and run this script again:
Your ionCube Loader extension (4.0) is incompatible with Phar files.
Upgrade to ionCube 4.0.9 or higher or remove this line (path may be different) from your `php.ini` to disable it:
zend_extension = /usr/lib/php5/20090626+lfs/ioncube_loader_lin_5.3.so
The php.ini used by your command-line PHP is: /etc/php.ini
If you can not modify the ini file, you can also run `php -d option=value` to modify ini values on the fly. You can use -d multiple times.
我刚刚看了一下我的php.ini,发现我的ionCube Loader版本是4.0.7。
有没有办法让作曲家。如何使用这个版本的ionCube Loader避免PHP更新?
正如错误所示,旧的ionCube版本只是使phar文件失败,因此它们与composer.phar不兼容。我想,您可以安装一个新版本的ioncube加载器,而无需完全更新PHP。