json icon indicating copy to clipboard operation
json copied to clipboard

json-1.8.3 Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

Open yashwinkumar opened this issue 11 years ago • 117 comments

Installing json 1.8.3 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

/usr/local/rvm/rubies/ruby-2.2.2/bin/ruby -r ./siteconf20150731-15743-prqh44.rb extconf.rb

Cannot allocate memory - /usr/local/rvm/rubies/ruby-2.2.2/bin/ruby -r ./siteconf20150731-15743-prqh44.rb extconf.rb 2>&1

Gem files will remain installed in /home/projects/individ/releases/20150730121841/vendor/bundle/ruby/2.2.0/gems/json-1.8.3 for inspection. Results logged to /home/projects/individ/releases/20150730121841/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0/json-1.8.3/gem_make.out An error occurred while installing json (1.8.3), and Bundler cannot continue. Make sure that gem install json -v '1.8.3' succeeds before bundling.

yashwinkumar avatar Jul 31 '15 06:07 yashwinkumar

I have the same issue. Am on Yosemite (Mac) and Ruby 2.2.2.

purezen avatar Aug 15 '15 11:08 purezen

The same issue on ubuntu-trusty-64 running ruby 2.2.3. the solution is to install libgmp3-dev. sudo apt-get install libgmp3-dev

alaouy avatar Aug 22 '15 10:08 alaouy

Thanks alaouy!

snicky avatar Aug 24 '15 11:08 snicky

@alaouy Thanks.

sivagollapalli avatar Aug 25 '15 09:08 sivagollapalli

thanks!!!

elcisko avatar Aug 25 '15 12:08 elcisko

Good tip!

jogaco avatar Sep 10 '15 16:09 jogaco

Hi i have the same problem on mac osx10.10 please someone can help , i search solution but i dont see nothing

DRAKUN avatar Sep 11 '15 22:09 DRAKUN

Thanks a lot!

souopablosilva avatar Sep 15 '15 19:09 souopablosilva

thanks @alaouy :+1:

evaldasg avatar Sep 18 '15 12:09 evaldasg

thanks!

gabrielmedina avatar Sep 23 '15 13:09 gabrielmedina

Thanks @alaouy, God bless you man!

MannyCrisostomo avatar Sep 24 '15 11:09 MannyCrisostomo

Hi,

I have the same exact problem in Windows7. Any help would be greatly appreciated!

Thanks in advance!

xristos avatar Sep 25 '15 00:09 xristos

thanks @alaouy :+1:

shabrinq avatar Sep 28 '15 14:09 shabrinq

thanks!

FlintOFF avatar Sep 29 '15 08:09 FlintOFF

Thank you!!

shkurkin avatar Oct 02 '15 06:10 shkurkin

Thank you.

khanhpham1990 avatar Oct 06 '15 08:10 khanhpham1990

Great

shabrinq avatar Oct 06 '15 11:10 shabrinq

Thanks you too!

noxious avatar Oct 10 '15 15:10 noxious

Thank you @alaouy !

ronyvieira avatar Oct 13 '15 22:10 ronyvieira

Thank you @alaouy ! That was really helpful. No other solution online worked!

Anyoks avatar Oct 16 '15 06:10 Anyoks