On 19 February 2010 20:56, Steven G. Harms wrote:
> Historically done:
> 1.  Git clone the source (git://repo.or.cz/MacVim.git)
>
> In build attempt:
> 1. git pull
> 2.  ./configure --with-features=huge --enable-rubyinterp
> 3.  make
> {copious output}
>
> and then....
>
> Starting make in the src directory.
> If there are problems, cd to the src directory and run make there
> cd src && make first
> gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-
> unknown-pragmas -pipe  -DMACOS_X_UNIX -no-cpp-precomp  -g -O2 -
> D_FORTIFY_SOURCE=1       -I/usr/local/lib/ruby/1.8/i686-darwin10.2.0  -
> o objects/if_ruby.o if_ruby.c
> if_ruby.c:52:24: error: Ruby/ruby.h: No such file or directory
> if_ruby.c:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘objtbl’
> if_ruby.c:79: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘mVIM’
> if_ruby.c:80: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘cBuffer’
> if_ruby.c:81: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘cVimWindow’
> if_ruby.c:82: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘eDeletedBufferError’
> if_ruby.c:83: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘eDeletedWindowError’
> if_ruby.c: In function ‘ex_ruby’:
> if_ruby.c:338: warning: implicit declaration of function
> ‘rb_eval_string_protect’
> if_ruby.c: In function ‘ex_rubydo’:
> if_ruby.c:357: error: ‘VALUE’ undeclared (first use in this function)
>
>
> 1.  I did as the error suggested, cd src && make first and ....
>
> gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-
> unknown-pragmas -pipe  -DMACOS_X_UNIX -no-cpp-precomp  -g -O2 -
> D_FORTIFY_SOURCE=1       -I/usr/local/lib/ruby/1.8/i686-darwin10.2.0  -
> o objects/if_ruby.o if_ruby.c
> if_ruby.c:52:24: error: Ruby/ruby.h: No such file or directory
>
> 2.  is the problem this ruby.h?  Why don't I seem to have it?
>
> Can any guru point me the way forward?

It seems configure is picking up a bad include flag (have you
installed a custom version of Ruby in /usr/local perhaps?):

-I/usr/local/lib/ruby/1.8/i686-darwin10.2.0

That should not be there...you can delete it manually from
src/auto/config.mk and everything should work.  Not sure why the
problem appears in the first place though....the only way I can see
this happening is if you deleted the default Ruby install from

/System/Library/Frameworks/Ruby.framework

Does this framework still exist on your machine?  If not, then it will
not work by simply deleting the -I flag above either.

Björn

-- 
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to