user605116
user605116

Reputation: 161

I can't install the gem json (1.6.3)

Building native extensions. This could take a while... ERROR: Error installing json: ERROR: Failed to build gem native extension.

    /Users/..../.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb

creating Makefile

make sh: make: command not found

Gem files will remain installed in /Users/danieljreardon/.rvm/gems/ruby-1.9.2-p180/gems/json-1.6.3 for inspection. Results logged to /Users/danieljreardon/.rvm/gems/ruby-1.9.2-p180/gems/json-1.6.3/ext/json/ext/parser/gem_make.out

I'm very new to development, so any simple instructions and advice would be much appreciated. Thank you in advance!

Upvotes: 5

Views: 714

Answers (2)

Hank Phung
Hank Phung

Reputation: 2149

Try install libgmp3-dev should solve this problem:

sudo apt-get install libgmp3-dev

credit: https://github.com/flori/json/issues/253

Upvotes: 0

aledalgrande
aledalgrande

Reputation: 5217

Install XCode from your Mac OS X DVD or Mac App Store.

Upvotes: 3

Related Questions