macをmarvericksにしたら、rails server動かなくなった

色々と必要ないものとかもありそうだけど、やったこと全部書く

なにはともかく
xcodeのcommand line toolの入れなおし

1
xcode-select --install

んで、開発中のrailsディレクトリでrails serverしようとしたら動かない。
とりあえず再bundle installしなおしてみる。

nokogiriのインストールでlibxmlがどうこうってエラーでたから

1
2
3
~/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.0/ext/nokogiri/tmp/i686-apple-darwin11/ports/libxml2/2.8.0/libxml2-2.8.0
sudo make clean
sudo make

したらbundle installが成功。

でもrails serverしたら

1
Could not find libv8-3.11.8.17 in any of the sources

って出る。

まず

1
brew update

brew updateでこんなエラーが出た

1
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master

pullできないみたいなので、ここを見つつ以下の様なことをやる。
http://d.conma.me/entry/20120301/1330613125

1
2
3
4
5
6
cd `brew --prefix`
git reset --hard origin/master #=> untrackファイルがあるからダメとか言われる
git add .
git checkout -f
git reset --hard origin/master
brew update

brew update成功

んでここを見つつ以下を実行
How to fix libv8 error from Gemfile on Mavericks?
http://stackoverflow.com/questions/19568852/how-to-fix-libv8-error-from-gemfile-on-mavericks

1
2
3
gem uninstall libv8
brew install v8
gem install therubyracer

brew install v8が通らない・・・

1
2
3
4
5
6
7
8
==> Downloading https://github.com/v8/v8/archive/3.19.18.4.tar.gz
######################################################################## 100.0%
==> make dependencies
            --revision 1501
dyld: Library not loaded: /usr/local/lib/libsqlite3.0.8.6.dylib
  Referenced from: /usr/local/bin/svn
  Reason: image not found
make: *** [dependencies] Trace/BPT trap: 5

また、エラー・・・

1
2
brew rm svn
brew install svn

んで再度

1
brew install v8

通った…

1
bundle install

してから、

1
2
3
rails server
Could not find libv8-3.11.8.17 in any of the sources
Run `bundle install` to install missing gems.

あれ、ダメだ・・

1
2
3
4
5
6
7
8
bundle exec rails server
=> Booting WEBrick
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2013-10-28 13:47:46] INFO  WEBrick 1.3.1
[2013-10-28 13:47:46] INFO  ruby 2.0.0 (2013-06-27) [x86_64-darwin12.5.0]
[2013-10-28 13:47:46] INFO  WEBrick::HTTPServer#start: pid=16067 port=3000

ま、まぁいいか。

Comments