我已经在应用程序根目录下cd,并运行rails s。然后,我得到的错误:试图启动rails服务器
Could not find gem 'rbczmq' in any of the gem sources listed in your Gemfile or available on this machine.
手动安装宝石,与gem install rbczmq
,并没有因为这样的成功:
ERROR: Error installing rbczmq: ERROR: Failed to build gem native extension.
/home/iulian/.rvm/rubies/ruby-2.3.1/bin/ruby extconf.rb
"./autogen.sh" autogen.sh: error: could not find libtool. libtool is required to run autogen.sh. ZeroMQ autogen failed! * extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
然后,我认为它需要libtool的。我试图安装它,但它提示它安装在最新版本下。 我已经搜索了最后那个文件,mkmf.log下的路径〜/ .rvm/gems/ruby-2.3.1/gems/rbczmq/ext/mkmf.log但没有成功。在其他已安装的gems目录中存在这个文件,所以我想我没有在这个有问题的gem中找到它,因为它还没有完成安装。
此应用使用轨道4编程,我试图用Rails 5.这也是Gemfile中运行:
source 'https://rubygems.org'
gem 'rails'
gem 'sqlite3'
gem 'tzinfo-data'
gem 'rbczmq'
gem 'iruby'
gem 'spring', group: :development
gem 'elasticsearch-persistence', :require => 'elasticsearch/persistence'
这可能是这个问题,我怎么能解决呢?
谢谢!这解决了我的问题。 –