macports

Sneaky patching source with Macports

和自甴很熟 提交于 2019-12-19 03:44:11
问题 For almost as long as I've been using vim and have known enough C, I've customised the installed vim to remove a 'feature' that annoys me. When I switched to using a Mac with macports, I achieved this by uninstalling any previous vim port, fetching the source, manually editing the source and then having Macports continue the installation, using my freshly customised source. sh> sudo port uninstall vim sh> sudo port fetch vim sh> sudo /usr/bin/vim /opt/local/wherever/port/put/the/source/file.c

What is the difference between “clang” and “Apple clang”?

ぃ、小莉子 提交于 2019-12-18 19:27:10
问题 I just upgraded to OS X 10.8.2, which comes with clang. The output of clang -v is: Apple clang version 4.1 (tags/Apple/clang-421.11.65) (based on LLVM 3.1svn) Target: x86_64-apple-darwin12.2.0 Thread model: posix On macports, there are several different versions of clang available ( port search clang ): clang @2.9 (lang) C, C++, Objective C and Objective C++ compiler clang-2.9 @2.9 (lang) C, C++, Objective C and Objective C++ compiler clang-3.0 @3.0 (lang) C, C++, Objective C and Objective C+

How do I remove MacPorts on an “unsupported OS” i.e. El Capitan Public beta?

别说谁变了你拦得住时间么 提交于 2019-12-18 11:50:56
问题 The MacPorts installation that I had on Yosemite doesn't work on the El Capitan since it isn't supported yet. I want to remove the Port installation here but I'm not able to run any of the Port commands. Does anyone have an idea how to clean it up? On running any port command, I get the following error: Error: Current platform "darwin 15" does not match expected platform "darwin 14" Error: If you upgraded your OS, please follow the migration instructions: https://trac.macports.org/wiki

do you have kcachegrind like profiling tools for mac [closed]

被刻印的时光 ゝ 提交于 2019-12-18 10:04:39
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Can anybody tell me about the tools you have for profiling like kcachegrind wingrind valgrind for mac platform. I don't think these work on mac, i have also quick check on that. 回答1: I ended up using qcachegrind on OSX. It can be installed via brew brew install qcachegrind or, to enable graphviz support: brew

Can't update Macports (with Mac OS X Mavericks)

那年仲夏 提交于 2019-12-18 09:54:50
问题 After upgrading Mac OS X to newest version Mavericks, I attempted to selfupdate my Macports, but it failed: $ sudo port -v selfupdate ---> Updating MacPorts base sources using rsync receiving file list ... done sent 36 bytes received 69 bytes 210.00 bytes/sec total size is 4925440 speedup is 46908.95 receiving file list ... done sent 36 bytes received 76 bytes 74.67 bytes/sec total size is 512 speedup is 4.57 MacPorts base version 2.2.0 installed, MacPorts base version 2.2.1 downloaded. --->

Macports on OSX 10.9 - compile with -stdlib=libstdc++

℡╲_俬逩灬. 提交于 2019-12-18 04:54:09
问题 In OSX 10.9 the default -stdlib option for clang++ is libc++ , so that's what Macport uses when building packages. Is there any way to tell Macports to use libstdc++ instead? In particular I would like to build OpenCV through Macports so it's using libstdc++ , but I imagine I'll run into a need to do so for other packages as well 回答1: The option is simply: -stdlib=libstdc++ If you need finer control over the build process for various ports, you can always set variables like: CXX = "clang -std

How to install Python 2.7 bindings for OpenCV using MacPorts

早过忘川 提交于 2019-12-17 22:42:30
问题 When trying to "import cv" in python I get: "ImportError: No module named cv". This question has appeared in many forms, but I haven't found the answer that helps. On my Mac OS X Lion, among many other ports, I have run: sudo port install python27 and sudo port install opencv +python27 Running: port select python I see: "python27 (active)" And running: port installed opencv I see: "opencv @2.3.1a_1+python27 (active)" What else should I check? Thanks. 回答1: I had this same problem. It looks

Trouble setting Python version in Sublime Text2

随声附和 提交于 2019-12-17 15:59:23
问题 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

easy_install with various versions of python installed, mac osx

瘦欲@ 提交于 2019-12-17 09:45:56
问题 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).

How to: Macports select python

こ雲淡風輕ζ 提交于 2019-12-17 05:48:30
问题 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