gpt4 book ai didi

ruby-on-rails - 安装 eventmachine gem 时出错

转载 作者:数据小太阳 更新时间:2023-10-29 07:45:09 26 4
gpt4 key购买 nike

当我运行 foreman start 时,出现以下错误:

pallav@pallav-System-Product-Name:~/Workspace/Aadvisor$ foreman start
10:04:32 web.1 | started with pid 11022 10:04:32 web.1 |
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in
`block in materialize': Could not find eventmachine-0.12.10 in any of
the sources (Bundler::GemNotFound) 10:04:32 web.1 | from
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in
`map!' 10:04:32 web.1 | from
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in
`materialize' 10:04:32 web.1 | from
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in
`specs' 10:04:32 web.1 | from
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/definition.rb:159:in
`specs_for' 10:04:32 web.1 | from
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/definition.rb:148:in
`requested_specs' 10:04:32 web.1 | from
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/environment.rb:18:in
`requested_specs' 10:04:32 web.1 | from
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:in
`setup' 10:04:32 web.1 | from
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'
10:04:32 web.1 | from
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/setup.rb:17:in
`<top (required)>' 10:04:32 web.1 | from
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
10:04:32 web.1 | from
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
10:04:32 web.1 | exited with code 1 10:04:32 system | sending SIGTERM
to all processes SIGTERM received
pallav@pallav-System-Product-Name:~/Workspace/Aadvisor$

我也是

sudo bundle install

再次报错:“安装 eventmachine (0.12.10) 时发生错误,Bundler 无法继续。确保 gem install eventmachine -v '0.12.10' 在捆绑之前成功。”

当我做的时候

sudo gem install eventmachine -v '0.12.10'

我再次收到错误消息:

"ERROR: Error installing eventmachine: ERROR: Failed to build gem native extension."

请告诉我我缺少什么。

最佳答案

为了在 Ubuntu 14.04 上安装 eventmachine 1.0.3,您首先需要运行:

sudo apt-get install build-essential

然后 bundle installgem install eventmachine

应该足够了。

注意:如果你有 rbenv,记得在 bundle install 之后运行 rbenv rehash

关于ruby-on-rails - 安装 eventmachine gem 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20535268/

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