python运行找不到pygame_Pygame smpeg找不到Python头

我已经尝试安装Pygame好几天了,唯一缺少的依赖项是smpeg。我得到以下输出:brew install --HEAD smpeg

==> Installing dependencies for smpeg: gobject-introspection, gdk-pixbuf,

==> Installing smpeg dependency: gobject-introspection

==> Building source; bottle blocked by python requirement

==> Downloading http://ftp.gnome.org/pub/GNOME/sources/gobject-introspection/1.4

Already downloaded: /Library/Caches/Homebrew/gobject-introspection-1.40.0.tar.xz

==> ./configure --prefix=/usr/local/Cellar/gobject-introspection/1.40.0

checking for python script directory... ${prefix}/lib/python2.7/site-packages

checking for python extension module directory... ${exec_prefix}/lib/python2.7/sitepackages

checking for headers required to compile python extensions... ./configure: line 14647: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/pytho n-config: No such file or directory

not found

configure: error: Python headers not found

我也尝试了brew edit smpeg,在代码末尾的两个end之上添加{},但是没有用。在

我的brew doctor说:

^{pr2}$

我的brew list说:autoconf git libgcrypt mpfr sdl_mixer

automake glib libgpg-error pkg-config sdl_ttf

cloog gmp libmpc portmidi tree

cmake gnu-getopt libpng pwgen webp

freetype isl libtiff sdl xz

gettext jpeg libtool sdl_gfx

gfortran libffi mercurial sdl_image

brew --config:==> Configuration

HOMEBREW_VERSION: 0.9.5

HEAD: 7448fd1532ae1c1709fe2f03ffe0dc188a134b3e

CPU: quad-core 64-bit ivybridge

OS X: 10.9.2-x86_64

Xcode: 5.1.1

CLT: 5.1.0.0.1.1396320587

X11: 2.7.5 => /opt/X11

brew是updated和{}

我有Python 2.7.6

后来我设法在Python.framework/Versions/2.7/include/python中安装了smpeg.h(和MPEGfilter.h),现在当我从cd pygame-1.9.1release运行{}时,我得到:/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ddarwin -I/Library/Frameworks/SDL.framework/Versions/Current/Headers -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/movie.c -o build/temp.macosx-10.3-fat-2.7/src/movie.o

In file included from src/movie.c:26:

In file included from src/pygame.h:106:

In file included from /Library/Frameworks/SDL.framework/Versions/Current/Headers/SDL.h:30:

In file included from /Library/Frameworks/SDL.framework/Versions/Current/Headers/SDL_main.h:26:

In file included from /Library/Frameworks/SDL.framework/Versions/Current/Headers/SDL_stdinc.h:30:

In file included from /Library/Frameworks/SDL.framework/Versions/Current/Headers/SDL_config.h:34:

In file included from /Library/Frameworks/SDL.framework/Versions/Current/Headers/SDL_config_macosx.h:29:

/usr/include/AvailabilityMacros.h:110:14: warning: Building for Intel with Mac

OS X Deployment Target < 10.4 is invalid. [-W#warnings]

#warning Building for Intel with Mac OS X Deployment Target ...

^

1 warning generated.

/usr/bin/clang -bundle -undefined dynamic_lookup -arch i386 -g build/temp.macosx-10.3-fat-2.7/src/movie.o -ls -lm -lp -le -lg -o build/lib.macosx-10.3-fat-2.7/pygame/movie.so -framework SDL -F/Library/Frameworks/

ld: library not found for -ls

clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: command '/usr/bin/clang' failed with exit status 1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值