Hi all, I have ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0] installed in my Snow Leopard Preview Release. Rails runs OK, but I can't install some gems with native extensions. The following error appear: $ sudo gem install bluecloth Password: Building native extensions. This could take a while... ERROR: Error installing bluecloth: 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/bluecloth-2.0.5 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/bluecloth-2.0.5/ext/gem_make.out The same error happens with many gems. I tried already update rubygem (the installed version is 1.3.4), but the problem persist. Any ideas? Thank you! Henrique
on 18.07.2009 15:57
on 19.07.2009 05:38
I decided to install another version of ruby at /usr/local/ruby-1.8.6 and point executables (erb, gem, ruby, etc.) to the new ruby dir. All went right, and ruby (1.8.6) and gem are working. But when I try to install any gem, I get: $ sudo gem install rails Password: dyld: NSLinkModule() error dyld: Symbol not found: _ENGINE_load_4758cca Referenced from: /usr/local/lib/ruby/1.8/i686-darwin10.0.0b4/openssl.bundle Expected in: flat namespace Trace/BPT trap It seems an error unrelated to the one before. Now I can't install any gem :/ Any hint? Thank you!
on 22.07.2009 04:08
On Jul 18, 2009, at 06:57, Henrique Testa wrote: > ERROR: Error installing bluecloth: > /Library/Ruby/Gems/1.8/gems/bluecloth-2.0.5 for inspection. > Results logged to > /Library/Ruby/Gems/1.8/gems/bluecloth-2.0.5/ext/gem_make.out > > The same error happens with many gems. I tried already update rubygem > (the installed version is 1.3.4), but the problem persist. Any ideas? You also have the dev tools installed?
on 22.07.2009 14:55
Eric Hodel wrote: > On Jul 18, 2009, at 06:57, Henrique Testa wrote: >> ERROR: Error installing bluecloth: >> /Library/Ruby/Gems/1.8/gems/bluecloth-2.0.5 for inspection. >> Results logged to >> /Library/Ruby/Gems/1.8/gems/bluecloth-2.0.5/ext/gem_make.out >> >> The same error happens with many gems. I tried already update rubygem >> (the installed version is 1.3.4), but the problem persist. Any ideas? > > You also have the dev tools installed? Thank you for the response. Yes, I had... but since I didn't find a solution, I reinstalled Leopard. It is better wait for the final release of Snow Leopard :/ Henrique
on 30.07.2009 18:46
Henrique Testa wrote: > Eric Hodel wrote: >> On Jul 18, 2009, at 06:57, Henrique Testa wrote: >>> ERROR: Error installing bluecloth: >>> /Library/Ruby/Gems/1.8/gems/bluecloth-2.0.5 for inspection. >>> Results logged to >>> /Library/Ruby/Gems/1.8/gems/bluecloth-2.0.5/ext/gem_make.out >>> >>> The same error happens with many gems. I tried already update rubygem >>> (the installed version is 1.3.4), but the problem persist. Any ideas? >> >> You also have the dev tools installed? > > Thank you for the response. Yes, I had... but since I didn't find a > solution, I reinstalled Leopard. It is better wait for the final release > of Snow Leopard :/ > > Henrique Hi I'm having the same problem, latest copy of xcode, dev tools and snow leopard but I cant get some of the gems to build. It seems like gem can't find the header files for Ruby...Any ideas? Installing ri documentation for diff-lcs-1.1.2... Installing RDoc documentation for diff-lcs-1.1.2... Building native extensions. This could take a while... ERROR: Error installing dnssd: 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/dnssd-0.7.1 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/dnssd-0.7.1/ext/gem_make.out Successfully installed echoe-3.1.1
on 30.07.2009 19:51
> Hi I'm having the same problem, latest copy of xcode, dev tools and snow > leopard but I cant get some of the gems to build. It seems like gem > can't find the header files for Ruby...Any ideas? > > > Installing ri documentation for diff-lcs-1.1.2... > Installing RDoc documentation for diff-lcs-1.1.2... > Building native extensions. This could take a while... > ERROR: Error installing dnssd: > 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/dnssd-0.7.1 for inspection. > Results logged to > /Library/Ruby/Gems/1.8/gems/dnssd-0.7.1/ext/gem_make.out > Successfully installed echoe-3.1.1 Well, you can install other Ruby. I followed this tutorial and it worked great: http://www.dcmanges.com/blog/install-multiple-versions-of-ruby-on-osx-leopard The problem with header files were gone. But the problem with openssh.bundle I couldn't solve.
on 31.07.2009 01:52
On Jul 30, 2009, at 09:46, Ryan Wilson wrote: >>>> (the installed version is 1.3.4), but the problem persist. Any > snow > /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 If this file really doesn't exist you should submit a bug report to Apple.
on 13.08.2009 18:17
Installing the Xcode that's bundled with the Snow Leopard developer seed fixed this problem for me. Hope this helps.
on 30.12.2009 14:10
Elliott Pogue wrote: > Installing the Xcode that's bundled with the Snow Leopard developer seed > fixed this problem for me. > > Hope this helps. Also worked for me :) Thanks. BR, Lasse
on 11.01.2010 07:20
Lasse Bunk wrote: > Elliott Pogue wrote: >> Installing the Xcode that's bundled with the Snow Leopard developer seed >> fixed this problem for me. >> >> Hope this helps. > > Also worked for me :) Thanks. > > BR, Lasse Had the same problem, re-installed XCode with the Snow Leopard DVD we had here fixed it.