【发布时间】:2015-07-05 07:21:00
【问题描述】:
虽然捆绑安装在以下步骤失败..
Installing dotenv 0.11.1
Installing eventmachine 1.0.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
C:/Ruby21-x64/bin/ruby.exe extconf.rb
checking for main() in -lssl... no
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for inotify_init() in sys/inotify.h... no
checking for __NR_inotify_init in sys/syscall.h... no
checking for writev() in sys/uio.h... no
checking for rb_wait_for_single_fd()... yes
checking for rb_enable_interrupt()... no
checking for rb_time_new()... yes
checking for windows.h... yes
checking for winsock.h... yes
checking for main() in -lkernel32... yes
checking for main() in -lrpcrt4... yes
checking for main() in -lgdi32... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
generating rubyeventmachine-x64-mingw32.def
The system cannot find the path specified.
make: *** [rubyeventmachine-x64-mingw32.def] Error 1
make failed, exit code 2
Gem files will remain installed in C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.3 for inspection.
Results logged to C:/Ruby21-x64/lib/ruby/gems/2.1.0/extensions/x64-mingw32/2.1.0
/eventmachine-1.0.3/gem_make.out
An error occurred while installing eventmachine (1.0.3), and Bundler cannot
继续。
在捆绑之前确保gem install eventmachine -v '1.0.3' 成功。
请帮忙看看如何改正??非常感谢
【问题讨论】:
-
您需要安装
libssl。 Ubuntu:sudo apt-get install libssl。 MacOS:sudo brew install openssl. -
@mudasobwa 如何在 Windows 中安装?安装后我是否再次运行 bundle install allover ?我担心它可能会再次开始下载所有 gem,并且可能存在版本冲突或类似的问题.. 有人可以帮忙吗?非常感谢....
-
谷歌搜索“在 Windows 上安装 openssl”。
bundle installafter 是必需的,但它现在会下载已下载的任何内容。 -
@mudasobwa 你的意思是已经下载的将被忽略,只会下载新的? :-)..谢谢