Install / Build fail on OSX Server 10.5.2
Nicolas V.
lists at ruby-forum.com
Tue Mar 4 03:18:43 EST 2008
Nicolas V. wrote:
> Hello,
>
> I would like to install SuperRedCloth on my server, here is the entire
> log :
>
> gem install superredcloth --source http://code.whytheluckystiff.net
> Building native extensions. This could take a while...
> ERROR: Error installing superredcloth:
> ERROR: Failed to build gem native extension.
>
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
> extconf.rb install superredcloth --source
> http://code.whytheluckystiff.net
> checking for main() in -lc... yes
> creating Makefile
>
> make
> gcc -I. -I.
> -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
> -I. -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -c
> superredcloth_inline.c
> Out of stack space.
> Try running 'ulimit -S -s unlimited' in the shell to raise its limit.
> {standard input}:unknown:Undefined local symbol L_rb_hash_aref$stub
> {standard input}:unknown:Undefined local symbol L_rb_num2long$stub
> {standard input}:unknown:Undefined local symbol L_rb_int2inum$stub
> {standard input}:unknown:Undefined local symbol L_rb_hash_aset$stub
> {standard input}:unknown:Undefined local symbol L_rb_str_cat$stub
> {standard input}:unknown:Undefined local symbol L_rb_str_cat2$stub
> Out of stack space.
> Try running 'ulimit -S -s unlimited' in the shell to raise its limit.
> {standard input}:unknown:Undefined local symbol L_rb_hash_aref$stub
> {standard input}:unknown:Undefined local symbol L_rb_num2long$stub
> {standard input}:unknown:Undefined local symbol L_rb_int2inum$stub
> {standard input}:unknown:Undefined local symbol L_rb_hash_aset$stub
> {standard input}:unknown:Undefined local symbol L_rb_str_cat$stub
> {standard input}:unknown:Undefined local symbol L_rb_str_cat2$stub
> lipo: can't open input file: /var/tmp//cc3JKHGQ.out (No such file or
> directory)
> make: *** [superredcloth_inline.o] Error 1
>
>
> Gem files will remain installed in
> /Library/Ruby/Gems/1.8/gems/superredcloth-1.160 for inspection.
> Results logged to
> /Library/Ruby/Gems/1.8/gems/superredcloth-1.160/ext/superredcloth_scan/gem_make.out
>
> .....
Ok, so I have reported this issue to the bugreport of apple, and after
some test (gcc -E ....) here is the solution :
1 - install GCC 4.2 Preview 1 (http://connect.apple.com)
2 - update symlink of /usr/bin/gcc to /usr/bin/gcc-4.2
3 - gem install superredcloth --source http://code.whytheluckystiff.net
Building native extensions. This could take a while...
Successfully installed superredcloth-1.160
1 gem installed
Installing ri documentation for superredcloth-1.160...
Installing RDoc documentation for superredcloth-1.160...
And voila ! issue solved. Hope it can help someone else.
--
Posted via http://www.ruby-forum.com/.
More information about the Redcloth-upwards
mailing list