当前位置:  开发笔记 > 编程语言 > 正文

安装eventmachine时发生错误(1.0.3)

如何解决《安装eventmachine时发生错误(1.0.3)》经验,为你挑选了1个好方法。

我安装了Rails 4.2.5和ruby 2.0.0.

这是项目的Gemfile:

source 'https://rubygems.org'

gem "whenever"

gem "therubyracer"
gem "less-rails"
gem 'twitter-bootstrap-rails', :git => 'git://github.com/seyhunak/twitter-bootstrap-rails.git'

gem 'geokit'

gem 'sequenced'

gem 'acts-as-taggable-on'

gem 'bcrypt', :require => 'bcrypt'

gem 'rack-cors', :require => 'rack/cors'

# Paperclip
gem "paperclip", "~> 4.2"

gem "thin"

gem "passenger"

gem 'geocoder'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.6'
# Use sqlite3 as the database for Active Record
gem 'mysql2'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer',  platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0',          group: :doc

# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring',        group: :development

当我进行捆绑安装时,我收到以下错误:"安装eventmachine(1.0.3)时发生错误,Bundler无法继续.请确保gem install eventmachine -v '1.0.3'在捆绑之前成功."

如果我创建gem install eventmachine,我有以下错误

make "DESTDIR=" compiling binder.cpp
In file included from binder.cpp:20:
./project.h:116:10: fatal error: 'openssl/ssl.h' file not found
#include 
         ^
1 error generated.
make: *** [binder.o] Error 1
Gem files will remain installed in        /Library/Ruby/Gems/2.0.0/gems/eventmachine-1.0.8 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/eventmachine-1.0.8/ext/gem_make.out

我该如何解决?



1> cassioscabra..:

我之前遇到过这个问题并运行下面的命令

gem install eventmachine -v '1.0.3'  -- --with-cppflags=-I/usr/local/opt/openssl/include

我不记得我发现它的位置或者这项工作的原因.也许其他人可以补充答案.

推荐阅读
手机用户2402852307
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有