Library not loaded error after brew install php56

后端 未结 7 1352
滥情空心
滥情空心 2021-01-12 06:07

I\'m upgrading from php5.5 to php5.6 on OSX Mavericks using homebrew. I run

brew install php56

Everything runs and completes fine but when

7条回答
  •  醉梦人生
    2021-01-12 06:41

    In my case, it was a symlink issue with the previous installation. Everything was fine after running

    brew link --overwrite php56
    

    P.S. Before running with --overwrite, try without. If you get the error below like I did, then go ahead.

    Linking /usr/local/Cellar/php56/5.6.3...
    Error: Could not symlink bin/pear
    Target /usr/local/bin/pear
    is a symlink belonging to php55. You can unlink it:
      brew unlink php55
    
    To force the link and overwrite all conflicting files:
      brew link --overwrite php56
    
    To list all files that would be deleted:
      brew link --overwrite --dry-run php56
    

提交回复
热议问题