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

Re: Cannot compile on Leopard with Python support

Expand Messages
  • Philipp Kosel
    Hi, I have now also succesfully compiled macvim against python2.7(homebrew). First I have to install python with the framework option: brew install python
    Message 1 of 4 , Oct 25, 2010
    • 0 Attachment
      Hi,

      I have now also succesfully compiled macvim against python2.7(homebrew).

      First I have to install python with the framework option:

      brew install python --framework

      Then I have changed the symlink of the Current version:

      cd /System/Library/Frameworks/Python.framework/Versions

      drwxr-xr-x 8 root wheel 272 29 Mai 01:17 2.3
      drwxr-xr-x 12 root wheel 408 29 Mai 14:34 2.5
      lrwxr-xr-x 1 root wheel 69 20 Okt 17:06 Current ->
      /usr/local/Cellar/python/2.7/Frameworks/Python.framework/Versions/2.7
      lrwxr-xr-x 1 root wheel 3 20 Okt 16:52 old-Current -> 2.5

      Then I have compiled macvim with the python conf dir option like so:

      ./configure --with-features=huge --enable-rubyinterp
      --enable-pythoninterp --enable-perlinterp --enable-cscope
      --with-python-conf-dir=/usr/local/Cellar/python/2.7/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config
      && make

      Kind regards
      Philipp

      On 25 October 2010 11:20, Robin <robince@...> wrote:
      > Hi,
      >
      > I have succesfully compiled macvim against a variety of non-system
      > Python installations. You should use the --with-python-config-dir
      > argument to the configure script.
      >
      > Here is the configure I use:
      > ./configure --enable-gui=macvim --enable-pythoninterp
      > --enable-multibyte --with-features=huge
      > --with-python-config-dir=/Library/Frameworks/Python.framework/Versions/6.1/lib/python2.6/config/
      > --with-macarchs="i386" --with-macsdk="10.6" --enable-rubyinterp
      >
      > Cheers
      >
      > Robin
      >
      > On Wed, Oct 20, 2010 at 11:06 AM, Philipp <phil.kosel@...> wrote:
      >> Hi,
      >>
      >> unfortunately I can't compile with Python 2.7 support which is
      >> installed through Homebrew.
      >>
      >> ./configure --with-features=huge --enable-rubyinterp --enable-
      >> pythoninterp --enable-perlinterp --enable-cscope
      >>
      >> But running :python import sys; print sys.version always gives me
      >> 2.5.2 which is the default system wide python. Mac OS X 10.5.8.
      >>
      >> Python flags from my config.mk:
      >>
      >> PYTHON_SRC  = if_python.c
      >> PYTHON_OBJ  = objects/if_python.o
      >> PYTHON_CFLAGS   = -I/usr/local/bin/../Cellar/python/2.7/include/
      >> python2.7
      >> PYTHON_LIBS = -framework Python 67 PYTHON_CONFDIR  = /usr/local/bin/../
      >> Cellar/python/2.7/lib/python2.7/config
      >> PYTHON_GETPATH_CFLAGS = -DPYTHONPATH='":/usr/local/Cellar/python/2.7/
      >> lib/python2.7/site-pac    kages/distribute-0.6.14-py2.7.egg:/usr/local/
      >> Cellar/python/2.7/lib/python2.7/site-packages/    pip-0.8.1-py2.7.egg:/
      >> usr/local/Cellar/python/2.7/lib/python27.zip:/usr/local/Cellar/
      >> python/    2.7/lib/python2.7:/usr/local/Cellar/python/2.7/lib/
      >> python2.7/plat-darwin:/usr/local/Cellar/    python/2.7/lib/python2.7/
      >> plat-mac:/usr/local/Cellar/python/2.7/lib/python2.7/plat-mac/lib-s
      >> criptpackages:/usr/local/Cellar/python/2.7/lib/python2.7/lib-tk:/usr/
      >> local/Cellar/python/2.    7/lib/python2.7/lib-old:/usr/local/Cellar/
      >> python/2.7/lib/python2.7/lib-dynload:/usr/local/C    ellar/python/2.7/
      >> lib/python2.7/site-packages:/usr/local/lib/python2.7/site-packages:/
      >> usr/lo
      >>    cal/Cellar/python/2.7/lib/python2.7/site-packages/
      >> setuptools-0.6c11-py2.7.egg-info"' -DPREF
      >>    IX='"/usr/local/bin/../Cellar/python/2.7"' -DEXEC_PREFIX='"/usr/
      >> local/bin/../Cellar/python/
      >>    2.7"'
      >>
      >> Thank you
      >>
      >> --
      >> 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
      >>
      >
      > --
      > 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
      >

      --
      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.