DebianにRails3環境作ろうとしたときのメモ
DebianでRailsの環境を作ろうとするとライブラリ不足お祭りだったのでメモ
mysql2をbundleでエラー
mysqlのドライバの、'mysql2'を書いてbundleすると以下のエラーが出た。
An error occured while installing mysql2 (0.3.11), and Bundler cannot continue. Make sure that gem install mysql2 -v '0.3.11' succeeds before bundling.
以下を実行してからnundle installを再実行する。
sudo apt-get install libmysql-ruby libmysqlclient-dev
以下の記事で解決。
http://stackoverflow.com/questions/11899766/mysql2-gem-installation-on-linux
Nokogiriをbundleでエラー
以下の記事で解決。
http://blog.kamipo.net/entry/20120327/1332816868
sudo aptitude install libxml2-dev libxslt1-dev
therubyracerを
therubyracerでエラー
Gemfileに以下で書く
gem 'therubyracer', '0.11.0beta8'