Python 2.3 dependency? Can't start MacVim

35 views
Skip to first unread message

Laran Evans

unread,
Jul 1, 2009, 8:18:02 PM7/1/09
to vim_mac
When I just click the .app file, the app just bombs on me. I tried the
command line version and got the following.

lc278:MacVim-7_2-stable-1_2 laran$ ./mvim
dyld: Library not loaded: /System/Library/Frameworks/Python.framework/
Versions/2.3/Python
Referenced from: /Users/laran/Downloads/MacVim-7_2-stable-1_2/
MacVim.app/Contents/MacOS/Vim
Reason: image not found
Trace/BPT trap
lc278:MacVim-7_2-stable-1_2 laran$

How can I fix this?

björn

unread,
Jul 2, 2009, 2:48:36 AM7/2/09
to vim...@googlegroups.com
2009/7/2 Laran Evans:

It seems you are missing Python 2.3 which is supposed to come with
every Mac running OS X 10.4 or later (MacVim requires at least 10.4).
Did you delete by any chance (I can't think of any other possibility)?

You have two options:

1. Put Python 2.3 back into /System/Library/Frameworks/

2. Compile your own MacVim binary. This should be straightforward if
you make sure to follow the instructions [1] carefully (pass at least
"--enable-gui=macvim --with-features=huge --enable-pythoninterp" to
configure if you want Python support).


Björn

[1] http://code.google.com/p/macvim/wiki/Building

Laran Evans

unread,
Jul 2, 2009, 10:31:26 AM7/2/09
to vim...@googlegroups.com
I don't think it's deleted, just in a different place:

lc278:Http laran$ ls /System/Library/Frameworks/Python.framework/
Headers Versions
lc278:Http laran$ ls /System/Library/Frameworks/Python.framework/Versions/
2.3 2.5
lc278:Http laran$ ls /System/Library/Frameworks/Python.framework/Versions/2.3/
lib
lc278:Http laran$

Laran Evans

unread,
Jul 2, 2009, 10:35:05 AM7/2/09
to vim...@googlegroups.com
Also, the --enable-python-interp option doesn't show when doing
./configure --help.

Laran Evans

unread,
Jul 2, 2009, 10:35:38 AM7/2/09
to vim...@googlegroups.com
Never mind. I didn't scroll up far enough to see all the configure options.

Laran Evans

unread,
Jul 2, 2009, 10:43:26 AM7/2/09
to vim...@googlegroups.com
This is where I hate being a C noob. Can you tell me what's needed to
fix this error during make?

lc278:vim7 laran$ make
Starting make in the src directory.
If there are problems, cd to the src directory and run make there
cd src && make first
CC="gcc -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall
-Wno-unknown-pragmas -pipe -I. -Iproto -arch i386 -DMACOS_X_UNIX
-no-cpp-precomp -I/Developer/Headers/FlatCarbon
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
" srcdir=/Users/laran/temp/vim7/src/auto sh
/Users/laran/temp/vim7/src/auto/osdef.sh
sh: /Users/laran/temp/vim7/src/auto/osdef.sh: No such file or directory
make[1]: *** [auto/osdef.h] Error 127
make: *** [first] Error 2
lc278:vim7 laran$

björn

unread,
Jul 2, 2009, 11:12:56 AM7/2/09
to vim...@googlegroups.com
2009/7/2 Laran Evans:

>
> This is where I hate being a C noob. Can you tell me what's needed to
> fix this error during make?
>
> lc278:vim7 laran$ make
> Starting make in the src directory.
> If there are problems, cd to the src directory and run make there
> cd src && make first
> CC="gcc -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall
> -Wno-unknown-pragmas -pipe -I. -Iproto -arch i386 -DMACOS_X_UNIX
> -no-cpp-precomp -I/Developer/Headers/FlatCarbon
> -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0
> " srcdir=/Users/laran/temp/vim7/src/auto sh
> /Users/laran/temp/vim7/src/auto/osdef.sh
> sh: /Users/laran/temp/vim7/src/auto/osdef.sh: No such file or directory
> make[1]: *** [auto/osdef.h] Error 127
> make: *** [first] Error 2
> lc278:vim7 laran$

Did you follow the build instructions to the letter? It seems you are
running "make" from the vim7/ dir instead of vim7/src. Please make
sure you _very_ carefully follow the build instructions -- if you do
nothing should go wrong.

Also, there is something strange about your Python.framework. This is
how it should look:

$ ls -l /System/Library/Frameworks/Python.framework/Versions/2.3
total 3896
-rw-r--r-- 1 root wheel 1499 Jan 14 2008 CodeResources
lrwxr-xr-x 1 root wheel 13 Mar 3 2008 Extras -> ../2.4/Extras
-rwxr-xr-x 1 root wheel 1984208 Jan 14 2008 Python
drwxr-xr-x 5 root wheel 170 Jan 14 2008 Resources
drwxr-xr-x 3 root wheel 102 Jan 14 2008 lib

I'm afraid I can't answer why yours look different or how to fix it though. :(

Björn

Reply all
Reply to author
Forward
0 new messages