Theme NexT works best with JavaScript enabled
0%

X11 on OSX 10.8 Mountain Lion

這應該算是我遇到的第一個OSX 10.8相容性上的問題?

在跑某個用到MiniMagick gem的ruby script時,發生了下面這個錯誤:

1
Failed to manipulate with MiniMagick, maybe it is not an image?

稍微Google了一下,找到的解法是先把當初用homebrew裝的ImageMagick移除後重新安裝,不過就在安裝的時候,又發生了以下的錯誤:

1
2
3
4
5
X11 is not installed.
You don't have X11 installed as part of your OS X installation.
This is not required for all formulae, but is expected by some.
You can download the latest version of XQuartz from:
https://xquartz.macosforge.org

顧文思義,就是沒有安裝X11,但原本在10.7(與之前的版本)時都沒有出現啊?

原來是因為在10.8 Mountain Lion中,X11被Apple移除了,所以得用XQuartz來取代。

安裝方式很簡單,只要上XQuartz官網,下載目前最新的2.7.2(第一個支援10.8 MT的版本),mount後再執行安裝檔即可。

裝完後,重新登入便可以透過homebrew正常編譯ImageMagick了。