bundle install でこける
$ rails new hogeapp
create
create README.rdoc
:
create vendor/plugins
create vendor/plugins/.gitkeep
run bundle install
/Users/username/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/net/http.rb:799: [BUG] Segmentation fault
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]
-- Control frame information -----------------------------------------------
c:0038 p:---- s:0217 b:0217 l:000216 d:000216 CFUNC :connect
c:0037 p:0011 s:0214 b:0214 l:001110 d:000213 BLOCK /Users/username/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/net/http.rb:799
c:0036 p:0031 s:0212 b:0212 l:000211 d:000211 METHOD /Users/username/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/timeout.rb:54
解決策
MacPort で openssl インストール
$ sudo port install openssl
Rubyインストール直し
MacPort で インストールした openssl のパスを教えて、rbenv でインストール
$ CONFIGURE_OPTS="--with-openssl-dir=/opt/local" rbenv install 1.9.3-p194
試してみる
$ rails new hogeapp
:
run bundle install
:
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.できた