lupa没有在mac OSX 10.9.5上工作

时间:2015-07-23 16:27:08

标签: macos lua lupa

Python 2.7.6 (v2.7.6:3a1db0d2747e, Nov 10 2013, 00:42:54)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from lupa import *
>>> lua=LuaRuntime()
dyld: lazy symbol binding failed: Symbol not found: _luaL_newstate
  Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lupa/_lupa.so
  Expected in: flat namespace

dyld: Symbol not found: _luaL_newstate
  Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lupa/_lupa.so
  Expected in: flat namespace

[1]    11436 trace trap  python

1 个答案:

答案 0 :(得分:0)

首先卸载lupa。然后再次安装:

LDFLAGS="-L/usr/local/bin/lua" pip install lupa==1.3 --no-binary :all:

注意:当通过brew(brew install lua)安装lua时,上面的lua二进制路径是El Capitan上的默认路径。您可能需要更改lua二进制文件的路径,如果它已安装在其他位置,例如到usr / bin / lua。