我安装了bitnami mac堆栈主要是因为我的项目需要至少
PHP 5.4.7版本.但是,我遇到了作曲家的问题.这是我跑步时遇到的错误:
php composer.phar install --dev
错误:
Richard-Knops-MacBook-Pro:my-project richardknop$php composer.phar install --dev
dyld: Library not loaded: /Applications/MAMP/Library/lib/libiconv.2.dylib
Referenced from: /opt/local/bin/php
Reason: Incompatible library version: php requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
Trace/BPT trap
Richard-Knops-MacBook-Pro:my-project richardknop$
怎么解决?
最佳答案 更新你的mamp安装错误清楚地说你的libiconv.2.dylib已经过时了.
如果MAMP没有更新版本安装apache php via. MAC端口.