mac上執(zhí)行composer報錯
composer install
dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
Referenced from: /usr/local/opt/php@7.1/bin/php
Reason: image not found
zsh: abort composer install
在網(wǎng)上找到的解決方案如下:
brew link readline
或者
brew link readline --force
如果還是不行的話尺借,執(zhí)行下面的命令
cd /usr/local/opt/readline/lib/
ln -s libreadline.dylib libreadline.7.dylib