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

Can't compile with python

Expand Messages
  • Brian Victor
    I downloaded the unix source from here: ftp://ftp.vim.org/pub/vim/unix/vim-7.2.tar.bz2 I untarred it and ran ./configure --enable-pythoninterp Configure shows
    Message 1 of 5 , Aug 30, 2008
    • 0 Attachment
      I downloaded the unix source from here:
      ftp://ftp.vim.org/pub/vim/unix/vim-7.2.tar.bz2

      I untarred it and ran ./configure --enable-pythoninterp

      Configure shows the following:
      checking for python... /usr/local/bin/python
      checking Python version... 2.5
      checking Python is 1.4 or better... yep
      checking Python's install prefix... /Library/Frameworks/
      Python.framework/Versions/2.5
      checking Python's execution prefix... /Library/Frameworks/
      Python.framework/Versions/2.5
      checking Python's configuration directory... /Library/Frameworks/
      Python.framework/Versions/2.5/lib/python2.5/config
      checking if -pthread should be used... no
      checking if compile and link flags for Python are sane... no: PYTHON
      DISABLED

      src/auto/config.log shows this:
      configure:5230: checking if compile and link flags for Python are sane
      configure:5257: gcc -o conftest -g -O -I/Library/Frameworks/
      Python.framework/Versions/2.5/include/python2.5 -L/usr/local/lib
      conftest.c -L/Library/Frameworks/Python.framework/Versions/2.5/lib/
      python2.5/config -lpython2.5 -ldl -u _PyMac_Error Python.framework/
      Versions/2.5/Python >&5
      i686-apple-darwin8-gcc-4.0.1: Python.framework/Versions/2.5/Python: No
      such file or directory

      That last path is clearly wrong, but I don't know where it's coming
      from or what I can do to fix it.

      Thanks for any advice!

      --
      Brian

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_mac" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    • Ben Schmidt
      ... This is similar to the TCL problem fixed by patch 7.2b.011. Somehow something is getting into PYTHON_LIBS that shouldn t be there, I think. PYTHON_LIBS
      Message 2 of 5 , Aug 31, 2008
      • 0 Attachment
        Brian Victor wrote:
        > I downloaded the unix source from here:
        > ftp://ftp.vim.org/pub/vim/unix/vim-7.2.tar.bz2
        >
        > I untarred it and ran ./configure --enable-pythoninterp
        >
        > Configure shows the following:
        > checking for python... /usr/local/bin/python
        > checking Python version... 2.5
        > checking Python is 1.4 or better... yep
        > checking Python's install prefix... /Library/Frameworks/
        > Python.framework/Versions/2.5
        > checking Python's execution prefix... /Library/Frameworks/
        > Python.framework/Versions/2.5
        > checking Python's configuration directory... /Library/Frameworks/
        > Python.framework/Versions/2.5/lib/python2.5/config
        > checking if -pthread should be used... no
        > checking if compile and link flags for Python are sane... no: PYTHON
        > DISABLED
        >
        > src/auto/config.log shows this:
        > configure:5230: checking if compile and link flags for Python are sane
        > configure:5257: gcc -o conftest -g -O -I/Library/Frameworks/
        > Python.framework/Versions/2.5/include/python2.5 -L/usr/local/lib
        > conftest.c -L/Library/Frameworks/Python.framework/Versions/2.5/lib/
        > python2.5/config -lpython2.5 -ldl -u _PyMac_Error Python.framework/
        > Versions/2.5/Python >&5
        > i686-apple-darwin8-gcc-4.0.1: Python.framework/Versions/2.5/Python: No
        > such file or directory
        >
        > That last path is clearly wrong, but I don't know where it's coming
        > from or what I can do to fix it.

        This is similar to the TCL problem fixed by patch 7.2b.011.

        Somehow something is getting into PYTHON_LIBS that shouldn't be there, I
        think.

        PYTHON_LIBS comes from vi_cv_path_python_plibs which you can set
        yourself if you like. Perhaps

        export
        vi_cv_path_python_plibs="-L/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config
        -lpython2.5 -ldl -u _PyMac_Error"

        would work (prior to ./configure).

        Funny that others haven't had this problem. How did you install your
        Python? Vim's configure script seems to get its values from the
        installed Python, 'steals' the values from Python's own Makefile or
        something.

        Ben.



        --~--~---------~--~----~------------~-------~--~----~
        You received this message from the "vim_mac" maillist.
        For more information, visit http://www.vim.org/maillist.php
        -~----------~----~----~----~------~----~------~--~---
      • Brian Victor
        ... It does indeed work! Thanks! ... It must have been from the dmg on python.org. It definitely wasn t one of the unix-like package managers (fink,
        Message 3 of 5 , Aug 31, 2008
        • 0 Attachment
          On Aug 31, 9:27 am, Ben Schmidt <mail_ben_schm...@...> wrote:
          > Brian Victor wrote:
          > > configure:5257: gcc -o conftest -g -O -I/Library/Frameworks/
          > > Python.framework/Versions/2.5/include/python2.5 -L/usr/local/lib
          > > conftest.c -L/Library/Frameworks/Python.framework/Versions/2.5/lib/
          > > python2.5/config -lpython2.5 -ldl -u _PyMac_Error Python.framework/
          > > Versions/2.5/Python >&5
          > > i686-apple-darwin8-gcc-4.0.1: Python.framework/Versions/2.5/Python: No
          > > such file or directory
          >
          > > That last path is clearly wrong, but I don't know where it's coming
          > > from or what I can do to fix it.
          > PYTHON_LIBS comes from vi_cv_path_python_plibs which you can set
          > yourself if you like. Perhaps
          >
          > export
          > vi_cv_path_python_plibs="-L/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config
          > -lpython2.5 -ldl -u _PyMac_Error"
          >
          > would work (prior to ./configure).

          It does indeed work! Thanks!

          > Funny that others haven't had this problem. How did you install your
          > Python? Vim's configure script seems to get its values from the
          > installed Python, 'steals' the values from Python's own Makefile or
          > something.

          It must have been from the dmg on python.org. It definitely wasn't
          one of the unix-like package managers (fink, macports), and I didn't
          build from source. The interpreter claims to be 2.5, with no macro
          release number given.

          --
          Brian
          --~--~---------~--~----~------------~-------~--~----~
          You received this message from the "vim_mac" maillist.
          For more information, visit http://www.vim.org/maillist.php
          -~----------~----~----~----~------~----~------~--~---
        • Bram Moolenaar
          ... What OS version are you using? In your next message you indicate you installed Python 2.5 yourself. Perhaps you used an OS version that came with an
          Message 4 of 5 , Sep 1, 2008
          • 0 Attachment
            Brian Victor wrote:

            > I downloaded the unix source from here:
            > ftp://ftp.vim.org/pub/vim/unix/vim-7.2.tar.bz2
            >
            > I untarred it and ran ./configure --enable-pythoninterp
            >
            > Configure shows the following:
            > checking for python... /usr/local/bin/python
            > checking Python version... 2.5
            > checking Python is 1.4 or better... yep
            > checking Python's install prefix... /Library/Frameworks/
            > Python.framework/Versions/2.5
            > checking Python's execution prefix... /Library/Frameworks/
            > Python.framework/Versions/2.5
            > checking Python's configuration directory... /Library/Frameworks/
            > Python.framework/Versions/2.5/lib/python2.5/config
            > checking if -pthread should be used... no
            > checking if compile and link flags for Python are sane... no: PYTHON
            > DISABLED
            >
            > src/auto/config.log shows this:
            > configure:5230: checking if compile and link flags for Python are sane
            > configure:5257: gcc -o conftest -g -O -I/Library/Frameworks/
            > Python.framework/Versions/2.5/include/python2.5 -L/usr/local/lib
            > conftest.c -L/Library/Frameworks/Python.framework/Versions/2.5/lib/
            > python2.5/config -lpython2.5 -ldl -u _PyMac_Error Python.framework/
            > Versions/2.5/Python >&5
            > i686-apple-darwin8-gcc-4.0.1: Python.framework/Versions/2.5/Python: No
            > such file or directory
            >
            > That last path is clearly wrong, but I don't know where it's coming
            > from or what I can do to fix it.
            >
            > Thanks for any advice!

            What OS version are you using? In your next message you indicate you
            installed Python 2.5 yourself. Perhaps you used an OS version that came
            with an older Python version?

            --
            Anyone who is capable of getting themselves made President should on no
            account be allowed to do the job.
            -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

            /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
            /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
            \\\ download, build and distribute -- http://www.A-A-P.org ///
            \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

            --~--~---------~--~----~------------~-------~--~----~
            You received this message from the "vim_mac" maillist.
            For more information, visit http://www.vim.org/maillist.php
            -~----------~----~----~----~------~----~------~--~---
          • Brian Victor
            ... Hi, Bram. I m using 10.4.11. I have python 2.3, 2.4, and 2.5 on this system. But it looked to me like it was picking everything up from the 2.5 paths,
            Message 5 of 5 , Sep 1, 2008
            • 0 Attachment
              On Sep 1, 6:02 am, Bram Moolenaar <B...@...> wrote:
              > Brian Victor wrote:
              > > configure:5257: gcc -o conftest -g -O -I/Library/Frameworks/
              > > Python.framework/Versions/2.5/include/python2.5 -L/usr/local/lib
              > > conftest.c -L/Library/Frameworks/Python.framework/Versions/2.5/lib/
              > > python2.5/config -lpython2.5 -ldl -u _PyMac_Error Python.framework/
              > > Versions/2.5/Python >&5
              > > i686-apple-darwin8-gcc-4.0.1: Python.framework/Versions/2.5/Python: No
              > > such file or directory
              > What OS version are you using? In your next message you indicate you
              > installed Python 2.5 yourself. Perhaps you used an OS version that came
              > with an older Python version?

              Hi, Bram. I'm using 10.4.11. I have python 2.3, 2.4, and 2.5 on this
              system. But it looked to me like it was picking everything up from
              the 2.5 paths, and that last broken path does explicitly mention 2.5.

              Let me know if there's something else you'd like me to check.

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