LoginSignup
2
1

More than 5 years have passed since last update.

Rails5でサーバー起動したらsymbol lookup errorが出た

Last updated at Posted at 2016-09-26

実行環境

  • ruby 2.3.1
  • Rails 5.0.0.1
  • gem 2.5.1
  • PostgreSQL 9.4.5

(なお、DBはHerokuの練習のためにPostgreSQLを使っているが
MySQL等で試しても、今回のエラーが出た。)

$ rails new hoge -d postgresql でRailsプロジェクトを作成し、
いざ起動!

$ rails s
=> Booting Puma
=> Rails 5.0.0.1 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
/usr/local/bin/ruby: symbol lookup error: /home/vagrant/sample/vendor/bundle/gems/debug_inspector-0.0.2/lib/debug_inspector.so: undefined symbol: rb_data_typed_object_alloc

サーバーが立ち上がらない・・・

どうやら、debug_inspectorというgemがおかしいようなので
再インストールしてみる。

$ sudo gem uninstall debug_inspector
$ sudo gem install debug_inspector

・・・解決!

[追記]
その後・・・

サーバーが途中で止まってしまった
puma 3.6.0 (tcp://192.168.33.10:3000) [hoge]: symbol lookup error: /home/vagrant/sample/vendor/bundle/gems/therubyracer-0.12.2/lib/v8/init.so: undefined symbol: rb_data_object_alloc

therubyracerのgemがおかしいようなので、
先程と同様に、therubyracerを再インストール!

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1