2014年8月12日 星期二

dyld: Library not loaded: /usr/local/lib/libpng15.15.dylib Referenced from: /usr/local/lib/libcairo.2.dylib Reason: image not found

MAC OS  裡遇到
dyld: Library not loaded: /usr/local/lib/libpng15.15.dylib
  Referenced from: /usr/local/lib/libcairo.2.dylib


  Reason: image not found


my sol)

brew upgrade

2014年8月6日 星期三

linux RAR 安裝壓縮加密

http://dicatatdl.com/2013/06/how-to-install-rarunrar-on-centos-5.html

http://argansos.blogspot.tw/2012/05/linux.html

MAC OS 出現fatal error: 'gtk/gtk.h' file not found


參考link:


1.a) Installation of GTK+ 2.x:
brew install gtk+
1.b) Installation of GTK+ 3.x:
You can install gtk+ 3.x via home brew too if you need that, but the 2.x version is enough for my purposes. The command would be:
brew install gtk+3
2.) But after the installation I had the problem, that cairo could not be found. So i solved it this way:
export PKG_CONFIG_PATH=/usr/local/Cellar/cairo/1.12.16/lib/pkgconfig/
3.) Then the compiler said it could not find the package 'xcb-shm', required by 'cairo'. This can be solved this way:
export PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig
After this command the compiler worked as expected.


make 有問題的話再加:

 export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig