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

Re: MacVim and Ruby (RVM)

Expand Messages
  • Nikola Knežević
    Hey, I had the same problems (I wanted to use homebrew s version of ruby). This patch helped. Thanks. ... -- You received this message from the vim_mac
    Message 1 of 15 , Feb 16 6:22 AM
    • 0 Attachment
      Hey, I had the same problems (I wanted to use homebrew's version of ruby). This patch helped. Thanks.

      On 09.01.2011, at 21:34 , björn wrote:

      > On 9 January 2011 20:48, Anders Janmyr <anders.janmyr@...> wrote:
      >> I am currently not trying to use it with many different versions of Ruby.
      >> I just want to compile it with ruby 1.9.2, which is what I use most of the time.
      >>
      >> That was what I was trying to do, but it failed somehow, and I cannot tell why.
      >> I thought that maybe someone on the list had done it already, but I guess not.
      >>
      >> I will take another look at it and report back when I figure it out.
      >
      > I have tried to bring over the patch to the MacVim source tree
      > (attached to this post) to help you get started (but I don't know if I
      > can be of much more help). I have no idea if it works -- please let
      > me know how it goes.
      >
      > With this patch you are supposed to be able to call configure like this:
      >
      > ./configure --enable-ruby-interp --with-ruby-command=/usr/local/bin/ruby
      >
      > Substitute the last path with wherever your 1.9 binary is.
      >
      > Björn
      >
      > --
      > You received this message from the "vim_mac" maillist.
      > Do not top-post! Type your reply below the text you are replying to.
      > For more information, visit http://www.vim.org/maillist.php
      > <0001-Apply-patch-to-fix-with-ruby-command.patch>

      --
      You received this message from the "vim_mac" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    • Björn Winckler
      ... I have merged this patch with mainline now. Can I please get some confirmation that the master branch compiles Ruby 1.9 properly now? (It should be the
      Message 2 of 15 , Feb 16 10:16 AM
      • 0 Attachment
        On Feb 16, 2011, at 3:22 PM, Nikola Knežević wrote:
        >
        > On 09.01.2011, at 21:34 , björn wrote:
        >
        >> On 9 January 2011 20:48, Anders Janmyr <anders.janmyr@...> wrote:
        >>> I am currently not trying to use it with many different versions of Ruby.
        >>> I just want to compile it with ruby 1.9.2, which is what I use most of the time.
        >>>
        >>> That was what I was trying to do, but it failed somehow, and I cannot tell why.
        >>> I thought that maybe someone on the list had done it already, but I guess not.
        >>>
        >>> I will take another look at it and report back when I figure it out.
        >>
        >> I have tried to bring over the patch to the MacVim source tree
        >> (attached to this post) to help you get started (but I don't know if I
        >> can be of much more help). I have no idea if it works -- please let
        >> me know how it goes.
        >>
        >> With this patch you are supposed to be able to call configure like this:
        >>
        >> ./configure --enable-ruby-interp --with-ruby-command=/usr/local/bin/ruby
        >>
        >> Substitute the last path with wherever your 1.9 binary is.
        >>
        >> Björn

        >
        > Hey, I had the same problems (I wanted to use homebrew's version of ruby). This patch helped. Thanks.

        I have merged this patch with mainline now. Can I please get some confirmation that the master branch compiles Ruby 1.9 properly now? (It should be the same as with this patch, but ...)

        Björn

        --
        You received this message from the "vim_mac" maillist.
        Do not top-post! Type your reply below the text you are replying to.
        For more information, visit http://www.vim.org/maillist.php
      • Anders Janmyr
        Hi Björn, I tried to compile the current master, but it failed. I believe it is unrelated to the ruby settings though. I configured with the following.
        Message 3 of 15 , Feb 25 12:25 AM
        • 0 Attachment
          Hi Björn,

          I tried to compile the current master, but it failed. I believe it is
          unrelated to the ruby settings though.

          I configured with the following.

          ./configure --with-features=huge \
          > --enable-rubyinterp \
          > --enable-pythoninterp \
          > --enable-perlinterp \
          > --enable-cscope \
          > --with-ruby-command=/Users/andersjanmyr/.rvm/rubies/ruby-1.9.2-p136/ruby

          And below are the failures, the short version.

          Anders



          cc1obj: error: /var/folders/xQ/xQLJaYfpE-OC5JHXGYXw8k+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/AppKit-hlhifydmgfqmdralehblkqeidwva/AppKit.h:
          No such file or directory
          cc1obj: error: one or more PCH files were found, but they were invalid
          cc1obj: error: use -Winvalid-pch for more information

          === BUILD NATIVE TARGET MacVim OF PROJECT MacVim WITH THE DEFAULT
          CONFIGURATION (Release) ===
          Check dependencies
          PhaseScriptExecution "Make Document Icons"
          build/MacVim.build/Release/MacVim.build/Script-1D1C31F00EFFBFD6003FE9A5.sh
          cd /Users/andersjanmyr/External_Projects/macvim/src/MacVim
          /bin/sh -c /Users/andersjanmyr/External_Projects/macvim/src/MacVim/build/MacVim.build/Release/MacVim.build/Script-1D1C31F00EFFBFD6003FE9A5.sh

          make[2]: `/Users/andersjanmyr/External_Projects/macvim/src/MacVim/build/Release/MacVim.app/Contents/Resources/MacVim-generic.icns'
          is up to date.
          ** BUILD FAILED **


          The following build commands failed:
          PSMTabBarControlFramework:
          CompileC ../build/PSMTabBarControl.build/Release/PSMTabBarControlFramework.build/Objects-normal/x86_64/PSMOverflowPopUpButton.o
          /Users/andersjanmyr/External_Projects/macvim/src/MacVim/PSMTabBarControl/source/PSMOverflowPopUpButton.m
          normal x86_64 objective-c com.apple.compilers.gcc.4_2
          CompileC ../build/PSMTabBarControl.build/Release/PSMTabBarControlFramework.build/Objects-normal/x86_64/PSMTabBarControl.o
          /Users/andersjanmyr/External_Projects/macvim/src/MacVim/PSMTabBarControl/source/PSMTabBarControl.m
          normal x86_64 objective-c com.apple.compilers.gcc.4_2
          CompileC ../build/PSMTabBarControl.build/Release/PSMTabBarControlFramework.build/Objects-normal/x86_64/PSMTabBarCell.o
          /Users/andersjanmyr/External_Projects/macvim/src/MacVim/PSMTabBarControl/source/PSMTabBarCell.m
          normal x86_64 objective-c com.apple.compilers.gcc.4_2
          CompileC ../build/PSMTabBarControl.build/Release/PSMTabBarControlFramework.build/Objects-normal/x86_64/PSMAquaTabStyle.o
          /Users/andersjanmyr/External_Projects/macvim/src/MacVim/PSMTabBarControl/source/PSMAquaTabStyle.m
          normal x86_64 objective-c com.apple.compilers.gcc.4_2
          CompileC ../build/PSMTabBarControl.build/Release/PSMTabBarControlFramework.build/Objects-normal/x86_64/PSMMetalTabStyle.o
          /Users/andersjanmyr/External_Projects/macvim/src/MacVim/PSMTabBarControl/source/PSMMetalTabStyle.m
          normal x86_64 objective-c com.apple.compilers.gcc.4_2
          CompileC ../build/PSMTabBarControl.build/Release/PSMTabBarControlFramework.build/Objects-normal/x86_64/PSMRolloverButton.o
          /Users/andersjanmyr/External_Projects/macvim/src/MacVim/PSMTabBarControl/source/PSMRolloverButton.m
          normal x86_64 objective-c com.apple.compilers.gcc.4_2
          CompileC ../build/PSMTabBarControl.build/Release/PSMTabBarControlFramework.build/Objects-normal/x86_64/PSMProgressIndicator.o
          /Users/andersjanmyr/External_Projects/macvim/src/MacVim/PSMTabBarControl/source/PSMProgressIndicator.m
          normal x86_64 objective-c com.apple.compilers.gcc.4_2
          CompileC ../build/PSMTabBarControl.build/Release/PSMTabBarControlFramework.build/Objects-normal/x86_64/PSMTabDragAssistant.o
          /Users/andersjanmyr/External_Projects/macvim/src/MacVim/PSMTabBarControl/source/PSMTabDragAssistant.m
          normal x86_64 objective-c com.apple.compilers.gcc.4_2
          CompileC ../build/PSMTabBarControl.build/Release/PSMTabBarControlFramework.build/Objects-normal/x86_64/PSMUnifiedTabStyle.o
          /Users/andersjanmyr/External_Projects/macvim/src/MacVim/PSMTabBarControl/source/PSMUnifiedTabStyle.m
          normal x86_64 objective-c com.apple.compilers.gcc.4_2
          CompileC ../build/PSMTabBarControl.build/Release/PSMTabBarControlFramework.build/Objects-normal/x86_64/NSBezierPath_AMShading.o
          /Users/andersjanmyr/External_Projects/macvim/src/MacVim/PSMTabBarControl/source/NSBezierPath_AMShading.m
          normal x86_64 objective-c com.apple.compilers.gcc.4_2
          (10 failures)


          2011/2/16 Björn Winckler <bjorn.winckler@...>:
          > On Feb 16, 2011, at 3:22 PM, Nikola Knežević wrote:
          >>
          >> On 09.01.2011, at 21:34 , björn wrote:
          >>
          >>> On 9 January 2011 20:48, Anders Janmyr <anders.janmyr@...> wrote:
          >>>> I am currently not trying to use it with many different versions of Ruby.
          >>>> I just want to compile it with ruby 1.9.2, which is what I use most of the time.
          >>>>
          >>>> That was what I was trying to do, but it failed somehow, and I cannot tell why.
          >>>> I thought that maybe someone on the list had done it already, but I guess not.
          >>>>
          >>>> I will take another look at it and report back when I figure it out.
          >>>
          >>> I have tried to bring over the patch to the MacVim source tree
          >>> (attached to this post) to help you get started (but I don't know if I
          >>> can be of much more help).  I have no idea if it works -- please let
          >>> me know how it goes.
          >>>
          >>> With this patch you are supposed to be able to call configure like this:
          >>>
          >>> ./configure --enable-ruby-interp --with-ruby-command=/usr/local/bin/ruby
          >>>
          >>> Substitute the last path with wherever your 1.9 binary is.
          >>>
          >>> Björn
          >
          >>
          >> Hey, I had the same problems (I wanted to use homebrew's version of ruby). This patch helped. Thanks.
          >
          > I have merged this patch with mainline now.  Can I please get some confirmation that the master branch compiles Ruby 1.9 properly now?  (It should be the same as with this patch, but ...)
          >
          > Björn
          >
          > --
          > You received this message from the "vim_mac" maillist.
          > Do not top-post! Type your reply below the text you are replying to.
          > For more information, visit http://www.vim.org/maillist.php
          >



          --
          http://anders.janmyr.com/

          --
          You received this message from the "vim_mac" maillist.
          Do not top-post! Type your reply below the text you are replying to.
          For more information, visit http://www.vim.org/maillist.php
        • björn
          ... This is a problem with precompiled headers. The only way I know how to work around this issue is to delete the SharedPrecompiledHeaders temporary
          Message 4 of 15 , Feb 25 1:06 AM
          • 0 Attachment
            On 25 February 2011 09:25, Anders Janmyr <anders.janmyr@...> wrote:
            >
            > I tried to compile the current master, but it failed. I believe it is
            > unrelated to the ruby settings though.
            >
            > I configured with the following.
            >
            > ./configure --with-features=huge \
            >>                   --enable-rubyinterp \
            >>                   --enable-pythoninterp \
            >>                   --enable-perlinterp \
            >>                   --enable-cscope \
            >> --with-ruby-command=/Users/andersjanmyr/.rvm/rubies/ruby-1.9.2-p136/ruby
            >
            > And below are the failures, the short version.
            >
            > Anders
            >
            >
            >
            > cc1obj: error: /var/folders/xQ/xQLJaYfpE-OC5JHXGYXw8k+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/AppKit-hlhifydmgfqmdralehblkqeidwva/AppKit.h:
            > No such file or directory
            > cc1obj: error: one or more PCH files were found, but they were invalid
            > cc1obj: error: use -Winvalid-pch for more information

            This is a problem with precompiled headers. The only way I know how
            to work around this issue is to delete the SharedPrecompiledHeaders
            temporary directory mentioned in the above error message. Don't know
            why Xcode does this but it happens to me all the time.

            Björn

            --
            You received this message from the "vim_mac" maillist.
            Do not top-post! Type your reply below the text you are replying to.
            For more information, visit http://www.vim.org/maillist.php
          Your message has been successfully submitted and would be delivered to recipients shortly.