前几天在 Dreamhost 上用 rvm 自己装了一个 ruby1.9 。在安装 GitLab 的时候,需要构建 charlock_holmes 的 native extension ,但是由于 Dreamhost 没有提供 libicu 的 dev 包,所以需要自己先编译一个 icu 。
编译完之后,在执行 bundle install 之前还需要设置一下才能够让 bundle 知道去哪儿找这个自己安装的 icu 。方法是:
bundle config build.charlock_holms --with-icu-dir=/home/xxxxx/libicu