Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/24.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.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 on rails 键入“gem安装rails”时出错_Ruby On Rails_Ruby_Ruby On Rails 4 - Fatal编程技术网

Ruby on rails 键入“gem安装rails”时出错

Ruby on rails 键入“gem安装rails”时出错,ruby-on-rails,ruby,ruby-on-rails-4,Ruby On Rails,Ruby,Ruby On Rails 4,有人能帮我解决这个错误吗?事实上,我正试图在windows XP 32位中安装ruby-1.9.3和rails-4。当我按照以下步骤操作时,出现了一些错误 步骤: 1-I installed ruby version-1.9.3 2-I installed the proper devkit and gave path(C:\Ruby193\devkit) to extract it. 3-I typed gem update --system in CMD. 4-When i typed th

有人能帮我解决这个错误吗?事实上,我正试图在windows XP 32位中安装ruby-1.9.3和rails-4。当我按照以下步骤操作时,出现了一些错误

步骤:

1-I installed ruby version-1.9.3
2-I installed the proper devkit and gave path(C:\Ruby193\devkit) to extract it.
3-I typed gem update --system in CMD.
4-When i typed the command gem install rails in cmd it gave some error.
错误:

Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing rails:
        ERROR: Failed to build gem native extension.

    C:/Ruby193/bin/ruby.exe -r ./siteconf20141229-2792-pk1no5.rb extconf.rb
creating Makefile

make  clean
Makefile:165: *** target pattern contains no `%'.  Stop.

make
Makefile:165: *** target pattern contains no `%'.  Stop.

make failed, exit code 2

Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.8.
1 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/js
on-1.8.1/gem_make.out

请帮助我解决此错误。谢谢

,Makefile:165中的代码行包含…?gem安装json它提供了什么?使用RailsInstaller。否,显示相同的错误。请在此共享任何其他解决方案。您是否初始化并安装了devkit?