9
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

RVMからrbenvに移行時、pg_extが読めないエラーの対処法

Last updated at Posted at 2014-09-14

RVMからrbenvに移行後、rails server等しようとすると下記の様なエラーが出る場合の対処法。

path/to/project/vendor/bundle/ruby/2.0.0/gems/pg-0.17.1/lib/pg.rb:4:in `require': libruby.so.2.0: cannot open shared object file: No such file or directory - path/to/project/vendor/bundle/ruby/2.0.0/gems/pg-0.17.1/lib/pg_ext.so (LoadError)

vender/bundle以下を全削除してbundle installし直すとなおる。

2回ほどハマったし今後まだまだRVM→rbenv移行する人はいると思うのでメモ。

9
4
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
9
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?