gpt4 book ai didi

ruby-on-rails - Ruby on Rails 和 SSL 错误

转载 作者:太空宇宙 更新时间:2023-11-03 13:13:16 25 4
gpt4 key购买 nike

我格式化了我的电脑并将我所有的 RoR 应用程序转移到我的新 Lubuntu 系统。我有 Ubuntu 和 Unity。 (还是linux系统)。我已经安装了 rvm、ruby、rails,它们都运行良好!然后我在实际运行“rails s”之前运行“bundle install”来测试我的应用程序。这是我得到的

Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Please include the full output of the command, your Gemfile and Gemfile.lock. Thanks!
/home/user/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- openssl (LoadError)

有什么帮助吗?

这就是 sudo apt-get install openssl 给我的:

Reading package lists... Done
Building dependency tree
Reading state information... Done
openssl is already the newest version.
The following packages were automatically installed and are no longer required:
libreadline-gplv2-dev git-man libncurses5-dev libnspr4-0d libtinfo-dev git libreadline5 zlib1g-dev liberror-perl libsqlite3-dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

最佳答案

您是否在使用 RVM 安装 ruby​​ 版本之前安装了软件包?

尝试删除 ruby​​ 版本,运行

sudo apt-get install libssl-dev openssl

然后重新安装ruby版本

关于ruby-on-rails - Ruby on Rails 和 SSL 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10234060/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com