Closed fardeem closed 4 years ago
You may not have the proper ruby development libraries installed. It's a common issue - check out this thread for more info.
Hello,
I have the same issue on Windows. I have all the setup (Ruby, dev-kit, etc) and installed other gems, but seems that this is not working.
Thanks!
Hey there,
Just to be sure, have you tried this topic for an answer? Is the gem that is hanging JSON?
Hey Andy,
Yes, I've checked that post on SO and some other before posting. After running the gem install command I get this:
gem install forge
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing forge:
ERROR: Failed to build gem native extension.
D:/Ruby193/bin/ruby.exe extconf.rb
creating Makefile
make
generating v8-i386-mingw32.def
compiling rr.cpp
cc1plus.exe: warning: command line option "-Wdeclaration-after-statement" is val
id for C/ObjC but not for C++
Then a lot of lines outputted. At the end:
Gem files will remain installed in D:/Ruby193/lib/ruby/gems/1.9.1/gems/therubyra
cer-0.9.10 for inspection.
Results logged to D:/Ruby193/lib/ruby/gems/1.9.1/gems/therubyracer-0.9.10/ext/v8
/gem_make.out
It may be related to an incompatibility that isn't solved on Windows. See the second answer of this question for something to try with your Gemfile. Let me know how it goes!
There is no way to install this on windows. At least withouth major anoyances. The problem relies with "therubyracer", a V8 implementation required by less-2.0.7.
I've tried to bypass this but I can't. Only one solution comes to mind which is updating forge to work with the most recent less version, that doesn't have the "therubyracer" dependency.
Sounds like we need to update some dependencies across the board. I'll put in a ticket for that and reference this issue.
has less been updated
I am on ubuntu using ruby v1.9.3 and I get this error:
Fetching: thor-0.15.4.gem (100%) Fetching: hike-1.2.1.gem (100%) Fetching: rack-1.3.6.gem (100%) Fetching: tilt-1.3.3.gem (100%) Fetching: sprockets-2.0.4.gem (100%) Fetching: rubyzip-0.9.9.gem (100%) Fetching: json-1.6.7.gem (100%) Building native extensions. This could take a while... ERROR: Error installing forge: ERROR: Failed to build gem native extension.
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in'
require': cannot load such file -- mkmf (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require' from extconf.rb:1:in `Gem files will remain installed in /var/lib/gems/1.9.1/gems/json-1.6.7 for inspection. Results logged to /var/lib/gems/1.9.1/gems/json-1.6.7/ext/json/ext/parser/gem_make.out
I am not super good with the terminal so I don't get what is the problem. Help!!!