[Locomotive-users] Re: ERROR: Failed to build gem native extension
Oliver Barnes
ol1barn3s at gmail.com
Sat Dec 29 03:59:14 GMT 2007
answering my own question: I upgraded my XCode Tools install to 2.5,
and the gems installed just fine... sorry for the noise
2007/12/28, Oliver Barnes <ol1barn3s at gmail.com>:
> Hello,
>
> I'm not sure this is a problem related directly to locomotive, but
> since it's about gem installs while using locomotive bundles, I
> figured somebody here might have a clue to what's going on...
>
> I've been trying to install two gems that require native C extensions,
> hpricot and unicode, without success, though I do have xcode tools
> installed with gcc etc. I get similar errors for both, about not
> finding header files:
>
> for hpricot:
>
> ~/Sites/soma $gem install hpricot
> Building native extensions. This could take a while...
> ERROR: Error installing hpricot:
> ERROR: Failed to build gem native extension.
>
> /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/bin/ruby
> extconf.rb install hpricot
> checking for main() in -lc... no
> creating Makefile
>
> make
> gcc -I. -I. -I/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686-darwin8.9.1
> -I. -I/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/include
> -fno-common -I/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/include
> -pipe -fno-common -c hpricot_scan.c
> In file included from ext/hpricot_scan/hpricot_scan.rl:9:
> /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686-darwin8.9.1/ruby.h:40:21:
> error: stdlib.h: No such file or directory
> /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686-darwin8.9.1/ruby.h:44:21:
> error: string.h: No such file or directory
> /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686-darwin8.9.1/ruby.h:54:19:
> error: stdio.h: No such file or directory
> /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686-darwin8.9.1/ruby.h:71:20:
> error: alloca.h: No such file or directory
> In file included from
> /usr/lib/gcc/i686-apple-darwin8/4.0.1/include/syslimits.h:7,
> from /usr/lib/gcc/i686-apple-darwin8/4.0.1/include/limits.h:11,
> from
> /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686-darwin8.9.1/ruby.h:91,
> from ext/hpricot_scan/hpricot_scan.rl:9:
> /usr/lib/gcc/i686-apple-darwin8/4.0.1/include/limits.h:122:61: error:
> limits.h: No such file or directory
> In file included from
> /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686-darwin8.9.1/ruby.h:718,
> from ext/hpricot_scan/hpricot_scan.rl:9:
> /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686-darwin8.9.1/missing.h:16:24:
> error: sys/time.h: No such file or directory
> /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686-darwin8.9.1/missing.h:25:25:
> error: sys/types.h: No such file or directory
> <snip>
> make: *** [hpricot_scan.o] Error 1
>
> and for unicode:
>
> ~/Sites/soma $gem install unicode
> Building native extensions. This could take a while...
> ERROR: Error installing unicode:
> ERROR: Failed to build gem native extension.
>
> /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/bin/ruby
> extconf.rb install unicode
> creating Makefile
>
> make
> gcc -I. -I/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686-darwin8.9.1
> -I/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686-darwin8.9.1
> -I. -I/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/include
> -fno-common -I/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/include
> -pipe -fno-common -c unicode.c
> In file included from unicode.c:7:
> /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686-darwin8.9.1/ruby.h:40:21:
> error: stdlib.h: No such file or directory
> /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686-darwin8.9.1/ruby.h:44:21:
> error: string.h: No such file or directory
> /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686-darwin8.9.1/ruby.h:54:19:
> error: stdio.h: No such file or directory
> /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686-darwin8.9.1/ruby.h:71:20:
> error: alloca.h: No such file or directory
> In file included from
> /usr/lib/gcc/i686-apple-darwin8/4.0.1/include/syslimits.h:7,
> from /usr/lib/gcc/i686-apple-darwin8/4.0.1/include/limits.h:11,
> from
> /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686-darwin8.9.1/ruby.h:91,
> from unicode.c:7:
> /usr/lib/gcc/i686-apple-darwin8/4.0.1/include/limits.h:122:61: error:
> limits.h: No such file or directory
> In file included from
> /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686-darwin8.9.1/ruby.h:718,
> from unicode.c:7:
> /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686-darwin8.9.1/missing.h:16:24:
> error: sys/time.h: No such file or directory
> /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686-darwin8.9.1/missing.h:25:25:
> error: sys/types.h: No such file or directory
> In file included from
> /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686-darwin8.9.1/ruby.h:719,
> from unicode.c:7:
> <snip>
> make: *** [unicode.o] Error 1
>
>
> I'm using the rmagick march 2007 bundle, and I have xcode 2.4.1
> installed on tiger, mac os 10.4.11.
>
> I'm downloading xcode tools 2.5, just in case there are any tools I'm
> missing to compile extensions for ruby 1.8.6.
>
> Does anybody have any suggestions for what I could be missing?
>
> thanks in advance,
> Oliver
>
More information about the Locomotive-users
mailing list