macports

Trouble setting Python version in Sublime Text2

孤街醉人 提交于 2019-11-27 20:57:21
I'm having trouble setting the build environment in Sublime Text2. I'm using Macports for Python and package installation. My python.sublime-build file looks like this: { "cmd": ["python", "-u", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python" } I think (from searching) that I need to modify the "cmd" line to point to the Macports version. Anyone done this successfully? From Terminal, everything builds/runs fine, it's only Sublime Text2's build that's grabbing the system version still. Additional info: which python /opt/local/bin/python Thanks for any

opencv python osx

回眸只為那壹抹淺笑 提交于 2019-11-27 19:29:20
(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. No errors here. (Step 3) I add export DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib to the end of my ~/

How to use AVX/pclmulqdq on Mac OS X

随声附和 提交于 2019-11-27 13:33:29
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 binutils using macports, but the problem persists. How do I know which assembler gcc is using? The XCode

Macports Port Select Commands

五迷三道 提交于 2019-11-27 11:13:13
问题 What are the new commands & or equivalents of: python_select -L (shows available python versions) python_select -s (sets the default version of your choice of python). I know they have changed to --list , --set , --show but there doesn't seem to be an example of how to properly use each one. For example, if I use port select --set I get the following: Error: port select [--list |--set |--show] []. 回答1: To list: port select --list python To show: port select --show python To select: sudo port

easy_install with various versions of python installed, mac osx

懵懂的女人 提交于 2019-11-27 08:43:12
I have various versions of python on a mac OSX 10.6 machine, some of them installed with macports: > python_select -l Available versions: current none python24 python26 python26-apple python27 The default or system version is python26-apple . I am now using python27, which I selected with > sudo python_select python27 I recently tried installing django using easy_install , but it got installed with the default python (I can check that by python_selecting python26-apple and importing django). If, instead, I download the django tarball, expand and use > sudo python setup.py install everything

Python, Macports, and Buffer Problems

怎甘沉沦 提交于 2019-11-27 06:52:06
问题 Apologies if this is the wrong place to post this - I'm unclear what the problem is. When using versions of Python built by Macports 2.3.3 running Mac OX 10.10, I'm seeing some really funny behavior. I've fully re-installed Macports, and replicated this on an iMac as well as a Macbook Air, and created a new user to make sure it wasn't something about my environment. This wasn't happening last week, and sometime in the interim something changed pretty drastically. Everything works fine until I

Xcode is not currently available from the Software Update server

筅森魡賤 提交于 2019-11-27 06:30:58
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? Nikos M. You can download the command line tools for os x mavericks manually from here . If you are trying this on a

Conflict between dynamic linking priority in OSX?

眉间皱痕 提交于 2019-11-27 04:06:50
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/local/lib is in DYLD_LIBRARY_PATH, that path will be prioritised when searching for a dynamic lib,

How to set up libusb on Mac OS X?

两盒软妹~` 提交于 2019-11-27 01:46:42
问题 I'd like to try to make a user-space device driver using libusb on Mac, but I'm confused where to start. In the SDK installer (which I got from http://www.ellert.se/twain-sane) it said something about examples which I couldn't find anywhere on my computer. Could anyone please describe how do I set up libusb for development on OS X? May I use Xcode? What should I include in my code? 回答1: I tried to install the SDK from the aforementioned website and couldn't find a trace of it once the

How do I instruct CMake to look for libraries installed by MacPorts?

这一生的挚爱 提交于 2019-11-27 00:42:12
问题 I'm trying to build some of our software, which was designed to run solely on Linux, on MacOS X. We are using CMake and I installed MacPorts so I could easily get CMake along with some of the third party libraries that we depend on. Now the problem is that CMake doesn't appear to look for libraries from MacPorts by default so several of our targets are disabled as it fails to find the dependencies which are all in /opt/local . How can I instruct CMake to also look for includes and libraries