Björn,

You're right on several counts.

1.  I do a lot of experimentation with Ruby, and as such the default
Ruby.framework solution "helpfully" provided by Apple kept getting in
the way.  Therefore, it is gone. Furthermore, something of appeal to
me lately is to have everything gathered from the net and installed on
my machine to be done in a nice, neat, orderly fashion:  into /usr/
local the way we used to do on Unices.

2.  Data to support this:

stha...@stharms-mac:/usr/local/src/vim7$ ls -l /System/Library/
Frameworks/RubyCocoa.framework/
stha...@stharms-mac:/usr/local/src/vim7$ which ruby
/usr/bin/ruby
stha...@stharms-mac:/usr/local/src/vim7$ ls -l /usr/bin/ruby
lrwxr-xr-x  1 root  wheel  19 Jan 20 04:17 /usr/bin/ruby -> /usr/local/
bin/ruby
stha...@stharms-mac:/usr/local/src/vim7$ ls -l /usr/local/bin/ruby
-rwxr-xr-x  1 root  wheel  8976 Jan 19 21:12 /usr/local/bin/ruby
stha...@stharms-mac:/usr/local/src/vim7$ !$ --version
/usr/local/bin/ruby --version
ruby 1.8.7 (2009-12-24 patchlevel 248) [i686-darwin10.2.0]

3. This leads me to ask, is there a way to have --enable-rubyinterp
respect my custom Ruby installdir?

Excellent work, on your part, given my very little bit of
information!  No wonder you're the maintainer :)

Steven






On Feb 19, 3:17 pm, björn <[email protected]> wrote:
> 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