Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby 安装eventmachine 1.0.3时捆绑包安装失败_Ruby_Windows_Gem_Bundler - Fatal编程技术网

Ruby 安装eventmachine 1.0.3时捆绑包安装失败

Ruby 安装eventmachine 1.0.3时捆绑包安装失败,ruby,windows,gem,bundler,Ruby,Windows,Gem,Bundler,捆绑包安装时在以下步骤失败 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_tr

捆绑包安装时在以下步骤失败

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安装eventmachine-v'1.0.3'
成功


请帮助我如何纠正??非常感谢在
eventmachine 1.0.3
中有一个bug,它阻止使用
DevKit-x64
编译器进行构建


您可以将
eventmachine
gem升级到更新版本,也可以使用32位版本的Ruby

您需要安装
libssl
。Ubuntu:
sudo-apt-get-install-libssl
。MacOS:
sudo brew安装openssl
@mudasobwa如何在windows中安装?安装后,我是否再次运行bundle install?我担心它可能会再次开始下载所有gems,并且可能会出现版本冲突或类似的情况。。有人能帮忙吗?非常感谢…谷歌“在windows上安装openssl”。
bundle-install
after是必需的,但它现在将下载任何已经下载的内容。@mudasobwa您的意思是已经下载的内容将被忽略,只下载新的内容?:-)。。感谢您的回复。eventmachine 1.0.3不在gem文件中。它类似于某种内部调用的依赖项gem。正如你所说,我曾想过使用gem install eventmachine-v'1.0.4'命令手动执行eventmachine 1.0.4,但仍然显示相同的错误…我认为原因可能是我需要mingw32。在64位windows笔记本电脑中重新安装32位ruby可能是一场灾难,请给出任何建议。谢谢实际上不,32位Ruby在64位Windows上运行良好。实际上,建议的设置是运行32位Ruby。提供64位Ruby是因为在某些情况下(嵌入式和特殊虚拟化服务器)32位重定向不可用,或者某些情况下需要64位Ruby来执行特殊任务。正如您所说,它安装了Ruby 2.1.6 32位版本,eventmachine问题已失败…但我在http_parser.rb 0.6.0遇到了问题…我不确定它的问题是什么…它抛出了类似的错误…是否有办法找出调用了哪个gem这一点他们都在一个队列中,无法真正确定..而且在我的c:/下还有两个MinGW-4.8.1和MinGW..这有问题吗?非常感谢您使用
Gemfile.lock
。您必须提供更多关于新错误等的信息。我没有足够的信息来知道http\u parser.rb的问题是什么。此外,还有一个用于32位和64位红宝石的不同DevKit。确保安装了正确的。是的,刚才我意识到我没有devkit,安装了32位的devkit,上面的错误得到了纠正,现在用新的一个解决了。就是这样