gem install rails build error无法构建gem原生扩展 [英] gem install rails build error failed to build gem native extension

查看:116
本文介绍了gem install rails build error无法构建gem原生扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的主要目标是让Redmine与WAMPServer一起工作。我遵循以下步骤:如何在旁边安装Ruby on Rails WampServer?



当我必须安装rails时,我的命令行似乎发生了一个构建错误



这是我的错误:


c:\wamp\ruby\gem install rails



临时增强PATH以包含DevKit ...



构建原生扩展。这可能需要一段时间...



错误:安装tzinfo时出错:



错误:未能建立宝石本地扩展名。



C:/wamp/ruby/bin/ruby.exe extconf.rb
创建Makefile



make
gcc -I。 -一世。 -IC:/wamp/ruby/lib/ruby/1.8/i386-mingw32 -I。 -g -O2 -DFD_SETSIZE = 256 -c atomic_reference.c
atomic_reference.c:在函数'ir_compare_and_set'中:
atomic_reference.c:75:2:error:#error没有CAS操作可用于此平台
make:*** [atomic_reference.o]错误1


我使用Windows 7 64位,我的版本是红宝石1.8.7,gem 1.3.7

解决方案

您是否可以安装任何宝石?如果没有,那么可能是它的配置问题。



如果您以标准方式安装了开发工具,那么罪魁祸首可能是不正确的自动运行正则表达式键或错误的命令其他工具设置的处理器会干扰ruby gem安装。

请尝试这里的说明,并解决您的问题: https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting#wiki-gems_fails_comspec_autorun



让我们知道你是否仍然有错误。


My main goal is to make Redmine work along with WAMPServer. I followed these steps : How to install Ruby on Rails alongside WampServer?

When i have to install rails, a build error seems to happen in my command line

Here's my error :

c:\wamp\ruby\gem install rails

Temporarily enhancing PATH to include DevKit...

Building native extensions. This could take a while...

ERROR: Error installing tzinfo:

ERROR: Failed to build gem native extension.

C:/wamp/ruby/bin/ruby.exe extconf.rb creating Makefile

make gcc -I. -I. -IC:/wamp/ruby/lib/ruby/1.8/i386-mingw32 -I. -g -O2 -DFD_SETSIZE=256 -c atomic_reference.c atomic_reference.c: In function 'ir_compare_and_set': atomic_reference.c:75:2: error: #error No CAS operation available for this platform make: *** [atomic_reference.o] Error 1

I use Windows 7 64 bits and my versions are ruby 1.8.7, gem 1.3.7

解决方案

Are you able to install any gems at all? If not, then possibly its a problem with the configuration.

If you installed the devkit in the standard way, then the culprit could be incorrect Autorun regex key OR the incorrect command processor set by other tools that interferes with ruby gem installations.

Try the instructions here, and your issue should be solved: https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting#wiki-gems_fails_comspec_autorun

Let know if you still get the error(s).

这篇关于gem install rails build error无法构建gem原生扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆