10/27/2022 0 Comments Macvim command compile![]() > Attempting to fetch MacVim-7.3.snapshot66_2+huge+python27.darwin_10.x86_64.tbz2 from Variants: big, cscope, huge, perl, python, python25, python26, python27, python31, python32, python33, ruby, ruby19, tcl, universal, xim I just had the exact same wish, and MacPorts fulfilled it without additional fiddling: $ port info macvim Note that's the way I managed to compile MacVim with Python 2.7 (which was my objective) not necessarily the way to compile it with my runtime version of Python. This problem might be specific to my computer (it seems to be related to the icon instalation). That gave me an error at the end of the compilation, but if I ignore it and launch the binary anyway that works. with-python-config-dir=/Library/Frameworks/amework/Versions/2.7/lib/python2.7/config/python2.7/config Try to compile again with the following options %. You should then have a config in /Library/Frameworks/amework/Versions/2.7/lib/python2.7/config. What I've done at the end was reinstall Python 2.7.2 using the official installer on the Python website. That's equivalent to disabling python, which explain why :py doesn't work. I had a the same probleme as you (trying to compile MacVim with Python 2.7) and I finally managed to do it.įirst the dynamic option doesn't work ! I've seen that tip too on the net, but if you look at the configure script (or just the help) it's not recognized. Macports installs the amework in this directory, YMMV. The -F flag tells the linker in which directory to find the following framework. Running configure again, after make clean, Vi_cv_path_python_plibs="-F/opt/local/Library/Frameworks -framework Python" If I change the line in the src/auto/configure script from: if test "x$MACOSX" = "xyes" & $ < 2.3)" then I presume the reason is in the linker flag "-framework Python". opt/local/Library/Frameworks/amework/Versions/2.7/lib/python2.5/' I got the following paths (note the ending, which is nonsense). To test, open macvim and type: :python print sys.path The reason for this was that the PYTHONPATH variable inside macvim is wrong! Some modules were not found, for example the os module. I compiled Macvim from source and tried to use the python version 2.7 from macports in: /opt/local/bin/python But remaining part of mankind will appreciate your help. ![]() Update: I no longer have the environment described at the question. MACVIM COMMAND COMPILE HOW TO% which pythonĬan anybody explain how python is integrating into vim during the compilation?Īnd how to fix the error with libpython2.7.a? ![]() ![]() configure -enable-pythoninterp=dynamicĪnd here comes an error: E370: Could not load library libpython2.7.aĮ263: Sorry, this command is disabled, the Python library could not be loaded.ĭefault python version is 2.7. It is =dynamic attribute (but this solution had not explanation).Īfter that I tried to recompile vim with dynamic python: My default python is 2.7! And it lives at /usr/local/bin/python ![]() In the opened MacVim I type: :py import sys print (sys.version, sys.executable) % open src/MacVim/build/Release/MacVim.app usr/localĬhecking Python's configuration directory. usr/localĬhecking Python's execution prefix. MACVIM COMMAND COMPILE INSTALLusr/local/bin/pythonĬhecking Python's install prefix. with-python-config-dir=/usr/local/lib/python2.7/config <- this option has no affects on resultĬhecking for python. When I use -enable-pythoninterp=dynamic I get an error in vim while trying :py import sys Here is what I was doing in more detail: % git clone When I use -enable-pythoninterp it compiles with system OSX python version. I have a problem with compiling vim with preferred python version. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |