Loading ...
Sorry, an error occurred while loading the content.
 

Ruby and MacVim

Expand Messages
  • 703designs
    I uninstalled Apple s Ruby and installed my own from source (after accidentally breaking some things...long story). Anyway, Ruby works fine now, but MacVim and
    Message 1 of 3 , May 29, 2008
      I uninstalled Apple's Ruby and installed my own from source (after
      accidentally breaking some things...long story). Anyway, Ruby works
      fine now, but MacVim and GVim don't work. Here's the error output
      after a crash:

      Process: Vim [53031]
      Path: /Applications/MacVim/MacVim.app/Contents/MacOS/Vim
      Identifier: Vim
      Version: ??? (???)
      Code Type: X86 (Native)
      Parent Process: MacVim [53028]

      Date/Time: 2008-05-30 01:11:04.370 -0400
      OS Version: Mac OS X 10.5.2 (9C7010)
      Report Version: 6

      Exception Type: EXC_BREAKPOINT (SIGTRAP)
      Exception Codes: 0x0000000000000002, 0x0000000000000000
      Crashed Thread: 0

      Dyld Error Message:
      Library not loaded: /usr/lib/libruby.1.dylib
      Referenced from: /Applications/MacVim/MacVim.app/Contents/MacOS/Vim
      Reason: image not found

      I tried linking this dylib to the dylib that was installed when I
      built Ruby, but that didn't work. What do I do? Of note is that
      TextMate can't use Ruby functions for me either because "/usr/bin/env
      ruby" isn't working properly from that program. But invoking "/usr/bin/
      env ruby" from the terminal does launch Ruby.

      Fixes? Advice?
      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_mac" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    • 703designs
      Problem fixed. Just needed two commands (should be one, but cp was throwing an error): $ sudo cp /usr/local/lib/libruby.1.8.6.dylib /usr/lib $ sudo mv
      Message 2 of 3 , May 29, 2008
        Problem fixed. Just needed two commands (should be one, but cp was
        throwing an error):

        $ sudo cp /usr/local/lib/libruby.1.8.6.dylib /usr/lib
        $ sudo mv /usr/lib/libruby.1.8.6.dylib /usr/lib/libruby.1.dylib

        Fixed the "env ruby" problem as well!


        On May 30, 1:13 am, 703designs <thomasmal...@...> wrote:
        > I uninstalled Apple's Ruby and installed my own from source (after
        > accidentally breaking some things...long story). Anyway, Ruby works
        > fine now, but MacVim and GVim don't work. Here's the error output
        > after a crash:
        >
        > Process: Vim [53031]
        > Path: /Applications/MacVim/MacVim.app/Contents/MacOS/Vim
        > Identifier: Vim
        > Version: ??? (???)
        > Code Type: X86 (Native)
        > Parent Process: MacVim [53028]
        >
        > Date/Time: 2008-05-30 01:11:04.370 -0400
        > OS Version: Mac OS X 10.5.2 (9C7010)
        > Report Version: 6
        >
        > Exception Type: EXC_BREAKPOINT (SIGTRAP)
        > Exception Codes: 0x0000000000000002, 0x0000000000000000
        > Crashed Thread: 0
        >
        > Dyld Error Message:
        > Library not loaded: /usr/lib/libruby.1.dylib
        > Referenced from: /Applications/MacVim/MacVim.app/Contents/MacOS/Vim
        > Reason: image not found
        >
        > I tried linking this dylib to the dylib that was installed when I
        > built Ruby, but that didn't work. What do I do? Of note is that
        > TextMate can't use Ruby functions for me either because "/usr/bin/env
        > ruby" isn't working properly from that program. But invoking "/usr/bin/
        > env ruby" from the terminal does launch Ruby.
        >
        > Fixes? Advice?
        --~--~---------~--~----~------------~-------~--~----~
        You received this message from the "vim_mac" maillist.
        For more information, visit http://www.vim.org/maillist.php
        -~----------~----~----~----~------~----~------~--~---
      • Nico Weber
        Hi, ... it should also work if you do `sudo ln -s /usr/local/lib/libruby. 1.8.6.dylib /usr/lib/libruby.1.dylib`. This doesn t copy the file but only inserts a
        Message 3 of 3 , May 29, 2008
          Hi,

          > Problem fixed. Just needed two commands (should be one, but cp was
          > throwing an error):
          >
          > $ sudo cp /usr/local/lib/libruby.1.8.6.dylib /usr/lib
          > $ sudo mv /usr/lib/libruby.1.8.6.dylib /usr/lib/libruby.1.dylib
          >
          > Fixed the "env ruby" problem as well!

          it should also work if you do `sudo ln -s /usr/local/lib/libruby.
          1.8.6.dylib /usr/lib/libruby.1.dylib`. This doesn't copy the file but
          only inserts a soft link.

          Nico

          --~--~---------~--~----~------------~-------~--~----~
          You received this message from the "vim_mac" maillist.
          For more information, visit http://www.vim.org/maillist.php
          -~----------~----~----~----~------~----~------~--~---
        Your message has been successfully submitted and would be delivered to recipients shortly.