macports

Macports + Python on mac os x Mavericks: Fatal Python error: PyThreadState_Get: no current thread

*爱你&永不变心* 提交于 2019-12-09 00:21:06
问题 I installed python from Macports and also py-graph-tool. I'm getting this error when I try to import the module: Fatal Python error: PyThreadState_Get: no current thread Abort trap: 6 What to do please? Process: Python [23667] Path: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python Identifier: Python Version: 2.7.6 (2.7.6) Code Type: X86-64 (Native) Parent Process: bash [23467] Responsible: Terminal [50142] User ID: 501 Date/Time: 2014-03

Linker trouble with MacPorts installation of graph-tool

这一生的挚爱 提交于 2019-12-08 13:33:11
问题 I've installed graph-tool via Mac Ports. Some days ago, I ran $ sudo port selfupdate $ sudo port upgrade outdated Graph-tool was compiled anew (which took around 30 hours(!)) Now, when I want to include graph-tool in python I get the following error: Python 2.7.6 (default, Nov 22 2013, 13:39:24) [GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import graph_tool dyld: lazy symbol binding

Macports on OSX 10.9 - compile opencv with libstdc++

我是研究僧i 提交于 2019-12-08 12:46:37
问题 My situation is very similar to what's discussed in this thread. The reason I want to do this is that I am using OpenCV with CUDA 6.0, but CUDA is currently linked against libstdc++. I followed the answer that suggested putting the flag -stdlib=libstdc++ as well as the other approach where we set CXX and CXXFLAGS but as it was being commented: Macports did not seem to acknowledge the flags and still built with libc++ instead of intended libstdc++. I would like to comment on that thread to ask

macports, cmake/make and 'dyld: Library not loaded'

不打扰是莪最后的温柔 提交于 2019-12-08 10:45:00
问题 I recently upgraded a library I use in a project of mine (glfw-devel) with macports and now my executable is dynamically link with lib/libglfw.3.dylib instead of opt/local/lib/libglfw.3.dylib which is the actual location of the lib so I get a dyld: Library not loaded error. I know how to fix this with install-names or with a simple copy. What I cannot understand, however, is why this happens suddenly after a simple upgrade. I haven't changed anything in my CMakeLists.txt (the most relevant

Sqlite3 causing problems for bundle install and gem install

怎甘沉沦 提交于 2019-12-08 09:14:52
问题 Using Rails, whenever I try to do anything like "bundle install" or sudo gem install someGem, I get these same errors about sqlite3. I've tried both sudo port install sqlite3 +universal and sudo port install rb-sqlite3 +universal But neither has helped. Here is the error: cmu-435163:photoGlass dpieri$ sudo gem install taps Password: Building native extensions. This could take a while... ERROR: Error installing taps: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby

Error installing PostgreSQL on Mac OS X 10.5 using MacPorts

五迷三道 提交于 2019-12-08 04:11:09
问题 I've installed PostgreSQL using MacPorts on a couple of different computers, no problem, but when it comes to my own laptop, I cannot get it to build. When I do this command: sudo port install postgresql83 I get this error: checking test program... failed configure: error: Could not execute a simple test program. This may be a problem related to locating shared libraries. Check the file 'config.log' for the exact reason. Error: The following dependencies failed to build: postgresql83 Error:

error: 'log2' is not a member of 'std'

ⅰ亾dé卋堺 提交于 2019-12-08 03:30:10
问题 I'm not sure what I am seeing here. The test results below are from an old PowerMac G5 running OS X 10.5.8. Its still around for testing under the big-endian PowerPC cpu. The compiler is GCC 5.4, and its provided by MacPorts. The test program is below. Compiling it results in an error error: 'log2' is not a member of 'std' . $ cat test.cxx #include <cmath> int main(int argc, char* argv[]) { double d = std::log2(2.3456789f); return 0; } According to Is std::log2() an extension or C++ standard?

cx_freeze linking to libraries in /opt/local rather than the ones it copied over

别来无恙 提交于 2019-12-07 21:20:14
问题 I installed Python 3.4 and cx_freeze 4.3.4 on Macports and Mac OS 10.10, and built a frozen executable. However, a couple of linked libraries are pointing to their paths on my Macports installation in /opt/local . From otool -L: Load command 7 cmd LC_LOAD_DYLINKER cmdsize 32 name /usr/lib/dyld (offset 12) Load command 8 cmd LC_UUID cmdsize 24 uuid 2CE48062-D852-3DD1-B4BD-F5A60227CD19 Load command 9 cmd LC_VERSION_MIN_MACOSX cmdsize 16 version 10.10 sdk 10.10 Load command 10 cmd LC_SOURCE

MacPorts manual port location

倖福魔咒の 提交于 2019-12-07 18:48:37
问题 I am installing one library for python from MacPorts. But macports version of the library is older than actual development svn version. Is it possible to specify a custom location for a port installation in MacPorts so I could install latest library from the developer's site? 回答1: Have a look here, you have to install a local portfile repositories. 回答2: If you simply want the latest version, couldn't you just not install the old version? If you are planning to build and deploy the svn version

PythonXY on Mac?

霸气de小男生 提交于 2019-12-07 13:40:04
问题 How do you install PythonXY on Mac OSX Lion? I got started. It should be able through macports but anyhow I cannot find the port pythonXY as described on the mac ports website. 回答1: I don't know pretty much about MAC neither pythonXY but there is a post written (Jule 23th, 2009) on the pythonxy wiki: a MacOS version is not scheduled - not because it won't be needed or useful, but because there is nobody out there to take care of a pythonxy-Mac project. Source Good luck, 来源: https:/