Trouble Installing on OS X Lion
-
anonymous
Trying to install using rvm.
When I run
$ ruby extconf.rb checking for ruby.h... yes creating Makefile
And then:
$ make cc -dynamic -bundle -undefined suppress -flat_namespace -o ext.bundle ext.o match.o matcher.o -L. -L/Users/gmassanek/.rvm/rubies/ruby-1.8.7-p352/lib -L. -lruby -ldl -lobjc ld: warning: ignoring file ext.o, file was built for unsupported file format which is not the architecture being linked (x86_64) ld: warning: ignoring file match.o, file was built for unsupported file format which is not the architecture being linked (x86_64) ld: warning: ignoring file matcher.o, file was built for unsupported file format which is not the architecture being linked (x86_64)
I'm guessing it's some problem with the version of uby (as mentioned in many other threads) but I've tried it with every combination of 1.8.7 and 1.9.2. Perhaps it's something with 32 or 64 bit?
Thanks in advance for any help you can give!
-
Greg Hurrell
I've built successfully using the system Ruby. Haven't tried with RVM on Lion.
It's important that you use the same version of Ruby that was used when building Vim itself. If you use MacVim, that generally means the system Ruby (unless you built MacVim yourself from source, which isn't currently advisable right now if you're on Lion, based on what I've read on the MacVim Google group).
-
anonymous
I had pretty much the same problem. Use ruby 1.9.2p180 on Lion (rvm use system will give you that), than do "make clean" (i had some old compiled files that were cousing a problem) and make. I use macvim snapshot 61. Works like a charm :) Good luck!
-
Greg Hurrell
It sounds incorrect that
rvm use system
would give you Ruby 1.9.2, as the system Ruby on Lion is still 1.8.7:$ which ruby /usr/bin/ruby $ ruby --version ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]
That's on my Lion install, which doesn't have RVM on it.
It's always been recommended that RVM users do an
rvm use system
before building Command-T, seeing as most vims (such as MacVim) link against the system Ruby, and they must match if you expect them to work.
Reply
This topic is now closed.