在 FreeBSD 安裝 rubygem-oniguruma

基本上 FreeBSD 的 ports tree 目前是沒有這種東西,
不過 ruby18 的 make config 選單裡可以勾出來;
但是它搭的 oniguruma.h 檔好像蠻舊了問題很多 (這個檔案會被裝到 /usr/local/lib/ruby/1.8/i386-freebsd7/ 下),
做 gem install 的時候如果需要編譯的話會 include 到它。
因為 CFLAGS 會自動被加上 -I/usr/local/lib/ruby/1.8/i386-freebsd7/ 這個參數,
並不會因為你裝了 devel/oniguruma5 而幫你優先使用 -I/usr/local/include。

Read more在 FreeBSD 安裝 rubygem-oniguruma