bobthecow / genghis

The single-file MongoDB admin app
http://genghisapp.com
MIT License
1.45k stars 166 forks source link

Installation fails on Mac OS 10.8.4 #132

Closed maxvipon closed 11 years ago

maxvipon commented 11 years ago
$ gem install genghisapp
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.

$ sudo gem install genghisapp
Password:
Building native extensions.  This could take a while...
ERROR:  Error installing genghisapp:
    ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h

Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/json-1.8.0 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/json-1.8.0/ext/json/ext/generator/gem_make.out
$ ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
$ gem -v
1.3.6
bobthecow commented 11 years ago

Yeah. That's the JSON gem installation failing. You'd get the same results by running gem install json.

I know that's no consolation for you though :)

From the error, I'd guess that you're missing some dev header files. Do you have Xcode or the Command Line Tools installed?

maxvipon commented 11 years ago

No, I haven't XCode and CLT. I'll try to install them cause I'll need them later and try to install genghisapp once again

maxvipon commented 11 years ago

Installation of Xcode and CLT solve this problem. I think note about It should be in Readme or Wiki.