hieroglyph icon indicating copy to clipboard operation
hieroglyph copied to clipboard

Can't install?

Open topherauyeung opened this issue 13 years ago • 6 comments

Hi Doug -

I might just be a total newb, but I'm trying to install Hieroglyph using gem install hieroglyph in the terminal (OSX) and it's not working. I've tried altering permissions (because the error I got originally was "You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.") but that didn't work.

Is there something I'm missing entirely?

topherauyeung avatar Aug 14 '12 05:08 topherauyeung

Hi topher,

You may need to install it as root, using "sudo gem install hieroglyph". OS X should prompt you for your password, and supposedly, the gem should install. Let me know if this works for you!

-Doug

averyvery avatar Aug 14 '12 05:08 averyvery

Thanks! I get this error when I use sudo:

ERROR: Error installing hieroglyph: 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/nokogiri-1.5.5 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/nokogiri-1.5.5/ext/nokogiri/gem_make.out

topherauyeung avatar Aug 14 '12 05:08 topherauyeung

Hmm — are you on Lion?

averyvery avatar Aug 14 '12 06:08 averyvery

Yep!

topherauyeung avatar Aug 14 '12 06:08 topherauyeung

  • Have you ever successfully installed ruby gems before? If not, try "gem install nokogiri" and see if the same problem occurs.
  • Did you try running sudo chmod 755 /usr/local/bin ?
  • Have you installed Xcode, or the Xcode command line tools available here? https://developer.apple.com/downloads/index.action?=command%20line%20tools

That's all I can think of off the top of my head — hope it helps! Let me know what happens.

averyvery avatar Aug 14 '12 06:08 averyvery

Thanks so much. I'll try all that tomorrow and let you know! I tried installing nokogiri earlier and it didn't work, but I'll try all this again on my work computer tomorrow. I have Xcode installed on that one.

topherauyeung avatar Aug 14 '12 06:08 topherauyeung