相关疑难解决方法(0)

Homebrew + Python on mac os x 10.8:致命的Python错误:PyThreadState_Get:没有当前线程导入mapnik

我的mac上有2个pythons(10.8.3):默认版本,以及自制软件的2.7版本.

到目前为止,我可以安装模块并将其与我的brew python一起使用.我安装了mapnik brew install mapnik(mapnik-2.1.0)并且编译正确.但是,如果我打开python并输入import mapnik,则出现以下错误并且python退出:

>>> import mapnik
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6
Run Code Online (Sandbox Code Playgroud)

Mac OS x还显示错误窗口,其中包含以下内容:

Process:         Python [60666]
Path:            /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier:      Python
Version:         2.7.3 (2.7.3)
Code Type:       X86-64 (Native)
Parent Process:  bash [60454]
User ID:         501

Date/Time:       2013-03-28 10:21:08.535 +0100
OS Version:      Mac OS X 10.8.3 (12D78)
Report Version:  10

Interval Since Last Report:          128837 sec
Crashes Since Last Report:           5
Per-App Crashes Since Last Report:   4
Anonymous UUID: …
Run Code Online (Sandbox Code Playgroud)

python homebrew module mapnik

32
推荐指数
1
解决办法
4万
查看次数

如何为./configure指定LDFLAGS和CPPFLAGS?

我正在使用运行OS X 10.8.3的Mac.我正在尝试编译cgminer 3.0.0.在我的第一次运行中,./configure我收到了消息:

checking for LIBCURL... no
checking for LIBCURL... no
configure: error: Missing required libcurl dev >= 7.18.2
Run Code Online (Sandbox Code Playgroud)

所以我使用自制软件安装了最新版本的libcurl:

brew install curl
Run Code Online (Sandbox Code Playgroud)

似乎成功了.我收到了这条消息:

downloaded: /Library/Caches/Homebrew/curl-7.30.0.tar.gz
==> ./configure --prefix=/usr/local/Cellar/curl/7.30.0
==> make install
==> Caveats
This formula is keg-only: so it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

The libcurl provided by Leopard is too old for CouchDB to …
Run Code Online (Sandbox Code Playgroud)

configure libcurl

19
推荐指数
1
解决办法
5万
查看次数

标签 统计

configure ×1

homebrew ×1

libcurl ×1

mapnik ×1

module ×1

python ×1