macports

Prevent MacPorts from installing pre-built package?

情到浓时终转凉″ 提交于 2019-12-05 15:19:32
问题 I am trying to instal libiconv with MacPorts. I need to build it to run in OS X 10.5 while my Mac is running 10.6. So I added this like to macports.conf : macosx_deployment_target 10.5 That supposedly force MacPorts to build the port with 10.5 SDK. However, the installed libraries still contain LC_DYLD_INFO load command which is available only in 10.6. I reinstalled the port with -v option and find that it downloads and installs a pre-built package without compiling. The package obviously was

git svn clone fails on Mac OS X: “Temp file with moniker 'svn_delta' already in use”

♀尐吖头ヾ 提交于 2019-12-05 13:36:55
问题 I've installed git-core (+svn) on my Mac from MacPorts. This has given me: git-core @1.7.12.2_0+credential_osxkeychain+doc+pcre+python27+svn subversion @1.7.6_2 I'm attempting to call something like the following: git svn clone http://my.svn.com/svn/area/subarea/project -s The output looks something like this: Initialized empty Git repository in /Users/bitwise/work/svn/project/.git/ Using higher level of URL: http://my.svn.com/svn/area/subarea/project => http://my.svn.com/svn/area A folder

new Date(“YYYY-MM-DD”) stopped working in Qt WebKit after removing MacPorts

寵の児 提交于 2019-12-05 11:10:16
On my OS X 10.7.3 (Lion) laptop, I cannot parse JavaScript date strings with Qt WebKit using the Date constructor. Using either jasmine-headless-webkit or phantomJS, all calls like: new Date("2012-04-10") always return "Invalid Date" instead of a valid Date object. A few weeks back, everything was working fine, and I've checked this on half a dozen computers with a similar setup and cannot reproduce the problem anywhere else. I am fairly certain the problems started when I decided to clear out my old supposedly-unused MacPorts installation (I have long since switched to Homebrew and was doing

How to install clang 3.1 using macports? (OSX, snow leopard)

ぃ、小莉子 提交于 2019-12-05 08:23:58
I'd like to install the latest clang (3.1) compiler using macports (I use emacs rather than xcode, and the version of clang that comes with xcode is older anyway). macports seems to have the latest versions of gcc, but when I enter "port list clang" the only version that shows up is 2.9. I use the C++11 features, so I want to use the latest version. I'm running snow leopard on an MBP. Clang has several different versions available on MacPorts: $ 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++

Pasting text into IRB is incredibly slow. Readline issue?

一世执手 提交于 2019-12-04 23:53:40
When I paste the following text into IRB or PRY running under ruby-enterprise-2011.03, it takes 13 seconds. # Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Pasting isn't slow when running irb with other ruby installations on the same computer. jruby-1.5.6 jruby-1.6.3 ruby-1.8.6-p420 ruby-1.8.7-p352 ruby-1.9.1-p431 ruby-1.9.2-p290 ruby-1.9.3-preview1 or Mac OS X's default system install of 1.8.7-p249 This question is related to Rails console running incredibly slowly when editing text , but I'm not using rvm, and

Replacing xcode with macports software

廉价感情. 提交于 2019-12-04 21:32:56
I have been trying to replace everything in xcode with stuff I can get from macports. So far, I installed xcode, then macports, then used macports to install gcc, gcc_select, gmake, elf-bintools, bintools, arm-bintools (just to be sure I replaced all the bintools), and then uninstalled all of xcode. I then linked /usr/bin/make with /opt/local/bin/gmake and used gcc_select to select gcc44--the one from macports. I also exported all the bintool executable paths into the .profile path. I was sure this would work (although I should have known better after working on it for 48 hours straight), but

Makefile can not find boost libraries installed by macports

。_饼干妹妹 提交于 2019-12-04 17:13:25
I just installed boost 1.42.0 from macports using sudo port install boost . Everything worked fine. Now I have a project that I'm trying to build using a makefile. Everything builds fine until it comes to the file that needs the boost library. It says: src/graph.h:20:42: error: boost/graph/adjacency_list.hpp: No such file or directory That file is actually located in two places: /opt/local/include/boost/graph/adjacency_list.hpp and /opt/local/var/macports/software/boost/1.42.0_0/opt/local/include/boost/graph/adjacency_list.hpp In the file src/graph.h where it's looking for boost/graph

Pear install for macports PHP5

霸气de小男生 提交于 2019-12-04 16:05:34
问题 I have PHP5 installed via macports in /opt/local/..the default location for macports. There's no portfile for pear. If I do a standard pear install from the pear site what directory location should pear be placed in to work with PHP? 回答1: While the curl option works, it won't update as you update your ports. An alternative: sudo port install php5 +pear This will install the variant of php5 with pear, in the same location as downloading above, and it will update as you update macports. 回答2: I

Dynamic library problems with Python and libstdc++

随声附和 提交于 2019-12-04 13:50:28
Executive summary: a Python module is linked against a different version of libstdc++.dylib than the Python executable. The result is that calls to iostream from the module crash. Backstory I'm creating a Python module using SWIG on an older computer (running 10.5.8). For various reasons, I am using GCC 4.5 (installed via MacPorts) to do this, using Python 2.7 (installed via MacPorts, compiled using the system-default GCC 4.0.1). Observed Behavior To make a long story short: calling str( myObject ) in Python causes the C++ code in turn to call std::operator<< <std::char_traits<char> > . This

Force setup.py to use my custom compiler

泪湿孤枕 提交于 2019-12-04 08:45:29
I'm trying to get setup.py to compile c++ code with the macports version of gcc. The problem is the code I am trying to build, doesn't support mac's default clang, which is the default gcc on newer osx versions. I created a custom setup.cfg file setup.cfg [build_ext] compiler=gcc-mp-4.8 However when I run python setup.py build_ext I get the following error running build_ext error: don't know how to compile C/C++ code on platform 'posix' with 'gcc-mp-4.8' compiler How can I get setup.py to use my version of gcc gcc-mp-4.8 ? Currently setup.py defaults to using /usr/bin/clang , when i type gcc