卸载重装 ruby2.5.1 版本,本地启动失败
ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin19]
rails -v
Rails 5.2.1
但是当我 rails s 启动的时候就报错(我也不懂我怎么就突然重装 ruby,之前是正常的。。)
/Users/liyujie/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require': dlopen(/Users/liyujie/.rvm/gems/ruby-2.5.1/gems/pg-1.1.3/lib/pg_ext.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib (LoadError)
Referenced from: /usr/local/opt/postgresql/lib/libpq.5.dylib
Reason: image not found - /Users/liyujie/.rvm/gems/ruby-2.5.1/gems/pg-1.1.3/lib/pg_ext.bundle