macports

Downgrade Python from version 2.7.9 to 2.7.8

北城余情 提交于 2019-12-10 22:30:08
问题 In upgrading some Python modules, I also updated my Python version to 2.7.9. Doing so, however, has broken Google App Engine, and I need to revert down to at least 2.7.8. I used MacPorts to install everything. What's the easiest way to fix this? 回答1: I haven't tried this myself, but a quick look in the MacPorts HOWTO pages indicates that you can simply activate the old version: # Activate the old version sudo port activate python27 @2.7.8 You can use the command port installed python27 to

Instructing Macports to download, but not install, dependencies for a port

心已入冬 提交于 2019-12-10 19:37:30
问题 I am sitting here in an airport, came up with something that I'd like to try, but I won't have time to sudo port install if macports downloads-compiles-downloads-compiles. If it downloaded everything, however, then I can have it compile on the plane. How can I cache a port's dependencies but compile and install later? 回答1: I would use sudo port fetch \( {packagename} or rdepof:{packagename} \) and not installed rdepof: recursively lists all dependencies of your package (including the

Gcc 4.2 version missing

霸气de小男生 提交于 2019-12-10 19:30:29
问题 on my new macbook pro with osx lion and XCode 4.1 I have some problems with gcc. In /usr/bin I cannot find gcc-4.2 I only have the following versions: i686-apple-darwin11-llvm-gcc-4.2 llvm-gcc llvm-gcc-4.2 As a result when I try to select gcc42 by means of port select --set gcc gcc42 it returns me the following error: Selecting 'gcc42' for 'gcc' failed: could not create new link "/opt/local/bin/gcc": target "/usr/bin/gcc-4.2" doesn't exist However port select gcc returns me the following

How do I enable HiDPI (Retina) support in a Qt4 OpenGL application?

亡梦爱人 提交于 2019-12-10 19:29:10
问题 I am using a QGraphicsScene with a QGraphicsView, as described in this document; I intend to eventually overlay Qt widgets on top of my OpenGL rendered scene. When I launch a dummy application modeled after the tutorial above, the rendered view is heavily pixelated-- HiDPI isn't working at all. Per this document, I've manually added: <key>NSHighResolutionCapable</key> <string>True</string> to the application's Info.plist file, still with no effect. (It seems this is supposed to default to

How to replace MacPort's libiconv with Mac's default 64-bit version?

久未见 提交于 2019-12-10 19:11:32
问题 MacPorts installed "libiconv @1.14_0+universal" as a dependency on my system. This happens to be a 32-bit flavor and it started causing issue when I tried to compile a voice recognition software called Simon Listens. While googling I found out that that Mac actually ships with a 64-bit flavor of libiconv by default and I was able to locate the said files on my system: $ find /usr/lib -name libiconv* /usr/lib/libiconv.2.4.0.dylib /usr/lib/libiconv.2.dylib /usr/lib/libiconv.dylib In order to

How to correctly install pyGTK using macports?

随声附和 提交于 2019-12-10 18:05:35
问题 My python code uses GTK for some GUI and now i need to run some of it on OSX (10.6 Snow Leopard and 10.7 Lion). Unfortunately, unofficial pyGTK build crashes on window GTK windows resize, so i decided to test macports version. I installed python and pygtk via following macports commands: sudo port install python26 sudo port select --set python python26 sudo port install py-gtk2 Running python from console correctly starts macports version of python. But trying to execute import gtk or import

Use no-X11 tkinter with python (installed through macports)

会有一股神秘感。 提交于 2019-12-10 14:12:34
问题 I have installed Python 2.7 and some useful libraries (like Python Image Library) through MacPorts. Everything is OK. Now, I want to use Tkinter. The problem is that the version uses X11 (and I do not want to use X11). If I switch to the python installed by Apple (/usr/bin/python instead of /opt/local/bin/python), Tkinter is OK (no X11 required) but of course, I missed the various libraries installed through MacPorts. My question is : "How could I use the no X11 Tkinter with the Python 2.7

/usr/local/lib/libz.1.dylib, file was built for i386 which is not the architecture being linked (x86_64)

依然范特西╮ 提交于 2019-12-10 14:03:19
问题 having this problem on installing several things on my mac, i think this problem is coming from upgrading my leopard to snow leopard. Also this problem also is linked with macports i think. /usr/local/lib/libz.1.dylib, file was built for i386 which is not the architecture being linked (x86_64) Any ideas? Update To be more specific this happens on installing nokogiri gem and the log looks like: xslt_stylesheet.c:127: warning: passing argument 1 of ‘Nokogiri_wrap_xml_document’ with different

Makefile can not find boost libraries installed by macports

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

How to do a clean reinstall with macports?

隐身守侯 提交于 2019-12-09 06:07:26
问题 How can one do a complete clean reinstall of a port and at the same time a complete clean reinstall of all its dependenceis? 回答1: From the MacPorts wiki (migration): https://trac.macports.org/wiki/Migration After having saved a list of installed ports using: port -qv installed > myports.txt and having removed them with: sudo port -f uninstall installed Download and execute the restore_ports script. (If you installed MacPorts from source and used a custom prefix, then you'll need to use the -p