启动Rails本地服务器时出现OpenSSL错误

时间:2020-07-23 19:13:35

标签: ruby-on-rails ruby openssl

我只是克隆了一个存储库,甚至无法在我的计算机上运行本地服务器。其他同事说他们没问题,所以我认为我的环境有问题。

$ bundle exec rails server
=> Booting Puma
=> Rails 5.2.3 application starting in development 
=> Run `rails server -h` for more startup options
/home/fran/.rbenv/versions/2.6.5/bin/ruby: symbol lookup error: /home/fran/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/puma-4.3.1/lib/puma/puma_http11.so: undefined symbol: OPENSSL_init_ssl

我已经尝试用我的openssl目录安装ruby 2.6.5:

$ RUBY_CONFIGURE_OPTS="--with-openssl-dir=/usr/lib/ssl" rbenv install  2.6.5

但是问题仍然存在。

有关此错误的任何提示吗?以前从未发生过我。

0 个答案:

没有答案