1

我格式化了我的电脑并将我所有的 RoR 应用程序转移到我的新 Lubuntu 系统中。我有带有 Unity 的 Ubuntu。(仍然是一个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.
4

1 回答 1

3

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

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

sudo apt-get install libssl-dev openssl

然后再次安装 ruby​​ 版本

于 2012-04-19T18:22:15.703 回答