在OS X 10.9.2上编译NakedMUD

时间:2014-04-22 14:00:12

标签: python macos compilation

我在Mac上编译NakedMUD时遇到了一些问题。我想,我现在将所有正确的目录添加到module.mk文件中,所以它看起来像这样:

# the top level directory of python.
PYTHONTOP = /Library/Frameworks/Python.framework/Versions/2.7

# the folder where python headers are located
C_FLAGS  += -I$(PYTHONTOP)/Headers

# libraries we have to include.
LIBS     += -u _PyMac_Error -lm -ldl -lutil -L/lib/python2.7/config -lpython2.7

但是当我尝试使用'make'进行编译时,我会收到以下错误:

ld: warning: directory not found for option '-L/lib/python2.7/config'
ld: library not found for -lpython2.7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [all] Error 1

我试过谷歌搜索问题,但我找到的大多数答案都是关于配置Xcode ......但我正在使用终端。 对不起,如果这听起来有点愚蠢,但我真的尝试了所有我能做的,而且经验不足。如果有人能告诉我什么是错的,我会很高兴的。

祝福, Aerdureth

0 个答案:

没有答案
相关问题