jyr / MNPP

Mac + Nginx + Percona + PHP a high performance web server in a one-click installer
http://getmnpp.org
314 stars 49 forks source link

Mac OS X Yosemite libXpm.4.dylib issue #87

Closed tim-peterson closed 9 years ago

tim-peterson commented 9 years ago

Mac OS X Yosemite created a new linking issue with MNPP, which was similar to this OS X Mavericks issue (#28):

Tims-MacBook-Pro-retina:leangap timrpeterson$ sudo mnpp --php53 --start
-n Starting php-fpm 
dyld: Library not loaded: /usr/X11/lib/libXpm.4.dylib
  Referenced from: /Applications/MNPP/Library/php53/sbin/php-fpm
  Reason: image not found
/Applications/MNPP/init/php.sh: line 95: 15038 Trace/BPT trap: 5       $php_fpm_BIN $php_opts
 failed

I solved it with this thread: https://discussions.apple.com/thread/6616720

Specifically, typing the following two lines suggested in the thread solved my problem:

sudo ln -s /opt/X11 /usr/X11
sudo ln -s /opt/X11 /usr/X11R6
gameguyr commented 5 years ago

You also have to have x11 (xQuart) installed. That was the problem in my case. You can download it from here. https://www.xquartz.org/

After I ran the installer and rebooted my machine I could run "xgterm &" from my terminal.