edenzik / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

MacVim won't start with ruby 1.9.1 #169

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

I've compiled Ruby 1.9.1 from source:
./configure --prefix=/usr/local/ruby-1.9 --enable-pthread --enable-shared 
--enable-
install-doc

I've symlinks:
/usr/lib/libruby.1.dylib -> ./libruby.dylib
/usr/lib/libruby.dylib -> /usr/local/ruby/lib/libruby.dylib

/usr/local/ruby/lib/libruby.1.9.1.dylib
/usr/local/ruby/lib/libruby.1.9.dylib -> libruby.1.9.1.dylib
/usr/local/ruby/lib/libruby.dylib -> libruby.1.9.1.dylib

Running mvim crash with:
[/]$ mvim
dyld: Symbol not found: _ruby_errinfo
  Referenced from: /Applications/MacVim.app/Contents/MacOS/Vim
  Expected in: /usr/lib/libruby.1.dylib

I'm using Snapshot 44 on 10.5.6 Intel.

I can run VIM normally, but MacVim crasshes.

Original issue reported on code.google.com by pavel.k...@gmail.com on 13 Apr 2009 at 12:09

GoogleCodeExporter commented 9 years ago
Something seems to have gone with the linking.  You should bring this question 
up on the vim_mac mailing list 
since it is not a MacVim bug.

Original comment by bjorn.winckler@gmail.com on 13 Apr 2009 at 12:14

GoogleCodeExporter commented 9 years ago
Hi Bjorn,

I've investigated the issue with Ruby 1.9 more and gathered the patch which 
fixes compilation. However when 
I compile macvim and build the app. The macvim starts but doesn't open any 
windows. Here is how I do 
compile it:

cd src
./configure --enable-gui=macvim --enable-rubyinterp
make CXXFLAGS="${CXXFLAGS} -I/usr/local/ruby-1.9/include/ruby-1.9.1/ 
-I/usr/local/ruby-
1.9/include/ruby-1.9.1/i386-darwin9.6.0/" CFLAGS="${CFLAGS} 
-I/usr/local/ruby-1.9/include/ruby-1.9.1/ 
-I/usr/local/ruby-1.9/include/ruby-1.9.1/i386-darwin9.6.0/"

cd MacVim
xcodebuild

The patch is from here http://even.archlinux-br.org/blog/ and it works, in 
terms of compilation with Ruby. 
The CXXFLAGS are needed because Ruby package is kind wierd.

Any idea how to debug or change settings how to compile macvim successfuly?

If I do just ./configure --enable-gui=macvim; make it works fine... :-(

Original comment by pavel.k...@gmail.com on 17 Apr 2009 at 7:37

Attachments:

GoogleCodeExporter commented 9 years ago
Again, please take it up on vim_mac where there are more people answering 
questions -- this is not the right 
forum for these kinds of questions.

Of course, had I know the answer I would have told you, but unfortunately I 
don't so your best chances are 
vim_mac.  I can only guess that there are still linking problems (if so there 
should be errors logged to 
Console.app).

Original comment by bjorn.winckler@gmail.com on 17 Apr 2009 at 8:03