macports

How do I uninstall python from OSX Leopard so that I can use the MacPorts version?

非 Y 不嫁゛ 提交于 2019-11-27 00:30:34
问题 I want to use the macports version of python instead of the one that comes with Leopard. 回答1: I have both installed: $ which python /usr/bin/python $ which python2.5 /opt/local/bin/python2.5 I also added the following line to my .profile : export PATH=/opt/local/bin:/opt/local/sbin:$PATH 回答2: Don't. Apple ships various system utilities that rely on the system Python (and particularly the Python "framework" build); removing it will cause you problems. Instead, modify your PATH environ variable

How to use AVX/pclmulqdq on Mac OS X

心已入冬 提交于 2019-11-26 22:23:08
问题 I am trying to compile a program that uses the pclmulqdq instruction present in new Intel processors. I've installed GCC 4.6 using macports but when I compile my program (which uses the intrinsic _mm_clmulepi64_si128), I get /var/folders/ps/sfjmtgx5771_qbqnh4c9xclr0000gn/T//ccEAWWhd.s:16:no such instruction: `pclmulqdq $0, %xmm0,%xmm1' It seems that GCC is able to generate the correct assembly code from the instrinsic, but the assembler does not recognize the instruction. I've installed

How to: Macports select python

元气小坏坏 提交于 2019-11-26 22:06:03
When I enter: port select --list python This is the result: Available versions for python: none python25 (active) python25-apple python26-apple python27 python27-apple I thought when I use python I would be using version 2.5 . Instead when I enter "python", version 2.7 seems to be active. How do I change that to version 2.5? Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> Why this happens MacPorts installs binaries into /opt/local by default

Unable to install matplotlib on Mac OS X

邮差的信 提交于 2019-11-26 20:24:24
问题 I'm trying to install matplotlib for graphing applications in Python on Mac OS X. When I run "python setup.py install", it gives me this load of errors: http://pastebin.com/u7fL37ic. A quick snippet: src/ft2font.cpp:2170: error: ‘FT_LOAD_TARGET_MONO’ was not declared in this scope src/ft2font.cpp:2171: error: ‘FT_LOAD_TARGET_LCD’ was not declared in this scope src/ft2font.cpp:2172: error: ‘FT_LOAD_TARGET_LCD_V’ was not declared in this scope src/ft2font.cpp:2175: error: ‘_ft2Library’ was not

opencv python osx

守給你的承諾、 提交于 2019-11-26 19:53:16
问题 (Step 1) I'm trying to get openCV to run from python on my mac using the MacPorts install http://opencv.willowgarage.com/wiki/Mac_OS_X_OpenCV_Port, and also trying to follow The Petite Geek's guide: sudo port -v install opencv +python26 It runs for about 10 minutes without errors. (Step 2) I download ctypes-opencv source and demo files. I navigate to the src directory and run: sudo python setup.py install I see like 50 lines almost all of the form: copying ... -> ... , which looks good to me.

macports didn't place python_select in /opt/local/bin

坚强是说给别人听的谎言 提交于 2019-11-26 19:51:52
问题 I've uninstalled and reinstalled python_select using MacPorts and yet it won't show up in /opt/local/bin. Consequently, I get a "command not found" error when attempting to run it. Yet MacPorts insists that it is installed. Have even tried uninstall -f and port clean --all python_select. Is there a more drastic step to remove it from MacPorts and try installing again? 回答1: It seems that python_select has been deprecated: "python_select" (and other standalone *_select scripts) is gone. Use

How to use the gcc installed in macports?

隐身守侯 提交于 2019-11-26 19:02:01
问题 I installed gcc 4.6. from macports (for support of C++0x). But when I check the 'gcc --version` it is showing older version. How to use the newer gcc installed by macports? 回答1: I remember it being something like g++-mp-4.6 . I believe it's enough to set the environment variable CXX to that. 回答2: You can control the symlink in /opt/local/bin/gcc by using port select . You can see available version using port select --list gcc . Anything listed with mp- as prefix refers to MacPorts' own port,

What is the most compatible way to install python modules on a Mac?

♀尐吖头ヾ 提交于 2019-11-26 14:48:54
I'm starting to learn python and loving it. I work on a Mac mainly as well as Linux. I'm finding that on Linux (Ubuntu 9.04 mostly) when I install a python module using apt-get it works fine. I can import it with no trouble. On the Mac, I'm used to using Macports to install all the Unixy stuff. However, I'm finding that most of the python modules I install with it are not being seen by python. I've spent some time playing around with PATH settings and using python_select . Nothing has really worked and at this point I'm not really understanding, instead I'm just poking around. I get the

Xcode is not currently available from the Software Update server

纵然是瞬间 提交于 2019-11-26 12:03:40
问题 I have problems with my macport after update to OS X 10.9. I try to follow this manual https://trac.macports.org/wiki/Migration to fix them. But when I install Command Line Tools: xcode-select --install I get message Can\'t install the software because it is not currently available from the Software Update server. Meanwhile I successfully updated my other machine to OS X 10.9. and installed command-line tools with no problems, so they must be available. What is the problem here? 回答1: You can

Conflict between dynamic linking priority in OSX?

試著忘記壹切 提交于 2019-11-26 11:03:18
问题 There is a dynamic-linking-conflict between different libjpeg dynamic libraries on OSX. First there is a standard native libJPEG.dylib (in /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/). But if you are using MacPorts, you can also have a port-related libjpeg.dylib in (in /opt/local/lib). The latter may for example have been installed as a dependency for some other port. This creates a problem when you link against your system libJPEG (which is preferred). Then if /opt