osx-snow-leopard

Trouble finding the default packages shipped with Python on Snow Leopard

本秂侑毒 提交于 2019-12-24 00:22:01
问题 I have two questions. First, how can I find out what Python modules (and their versions) come with Mac OS-X 10.6.8 Snow Leopard? Second, what is the deal with Snow Leopard and Tix ? I absolutely cannot understand this. If I import Tix , no errors. If I interactively type >>> help(Tix) I get megabytes of info on using Tix. If I go any further this happens... >>> root = Tix.Tk() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/System/Library/Frameworks/Python

Using the pkg-config macro PKG_CHECK_MODULES failing

强颜欢笑 提交于 2019-12-23 07:27:15
问题 I'm sure this is a fairly simple problem. I have a very simple configure.ac file which I am using to just learn how autoconf & pkg-config work together. The confgure.ac file looks like: AC_PREREQ(2.61) AC_INIT(autoconf_test, 1.0, nowhere@dev.null) PKG_CHECK_MODULES(libusbmuxd, libusbmuxd >= 0.1.4) I can then execute autoconf from the command line and it does produce a configure script. However, when I run the configure script, I get the following error: ./configure: line 1618: syntax error

How do you set up OpenCV with QT in OSX?

橙三吉。 提交于 2019-12-23 05:26:07
问题 I want to use the new C++ OpenCV interface to create Qt applications in Qt Creator on OS X Snow Leopard. How can I do this? Good explanations of this are very hard to come by online. 回答1: I actually did this, and it was fairly easy. You can download QtSDK from the qt-website as a dmg, installing that is just click-and-play. After this I used MacPorts, MacPorts is a package-manager (like aptitude, portage, pacman, etc) for osx. http://www.macports.org/, download it, and again: click-and-play.

Xcode 3.2.1 crashes on startup on OS X 10.6.2

亡梦爱人 提交于 2019-12-23 04:32:05
问题 I have uninstalled it via the devtools uninstall command and reinstalled 3 times to no avail. This all started when I downloaded iphone_sdk_3.1.3_with_xcode_3.2.1__snow_leopard__10m2003a.dmg from the DEV portal and installed. I've trashed my com.apple.xcode.plist file, uninstalled all xcode plugins as well as Growlcode and I still can't solve this. Here is the error information: Process: Xcode [1096] Path: /Developer/Developer Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple

Xcode 3.2.1 crashes on startup on OS X 10.6.2

╄→尐↘猪︶ㄣ 提交于 2019-12-23 04:31:31
问题 I have uninstalled it via the devtools uninstall command and reinstalled 3 times to no avail. This all started when I downloaded iphone_sdk_3.1.3_with_xcode_3.2.1__snow_leopard__10m2003a.dmg from the DEV portal and installed. I've trashed my com.apple.xcode.plist file, uninstalled all xcode plugins as well as Growlcode and I still can't solve this. Here is the error information: Process: Xcode [1096] Path: /Developer/Developer Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple

Having trouble installing PIL in Snow Leopard

混江龙づ霸主 提交于 2019-12-23 04:23:07
问题 I followed these instructions: http://proteus-tech.com/blog/cwt/install-pil-in-snow-leopard/ And everything went as described. However, at the end, I tried running: python selftest.py to verify that everything is working properly, but I get: *** The _imaging C module is not installed I then run the python interpreter and tried: import _imaging and get this error: Traceback (most recent call last): File "", line 1, in ImportError: dlopen(/Library/Python/2.6/site-packages/PIL/_imaging.so, 2):

Delete text from multiple files

戏子无情 提交于 2019-12-23 04:19:06
问题 I want to delete text from multiple files. It could be from 10 to 1000 files, so deleting it by hand is too much work. I found a couple of SO questions, such as: Delete specific lines in multiple Text Files with freeware App? but none of them helped To do find and replace, I could write a perl command, but it lacks options. For example, I want to delete the first four lines in all files. Does anyone know a solution? Or maybe an app? I would prefer something without VBScript. 回答1: sed(1) or

How to make Emacs pickup the correct python in Snow Leopard?

Deadly 提交于 2019-12-23 03:52:06
问题 Related to my previous question: Pymacs not starting on Emacs24 Carbon Ropemacs won't load, since emacs isn't seeing the correct site-packages directory (see the previous question for example output). I'm using Snow Leopard, with the dev version of emacs24 installed through homebrew. $ emacs --version GNU Emacs 24.0.93.1 Python is also installed through homebrew, and preferred by setting it at the front of my path. $ python --version Python 2.7.2 I use zsh as my login shell. If I type M-!

How to make Emacs pickup the correct python in Snow Leopard?

给你一囗甜甜゛ 提交于 2019-12-23 03:52:00
问题 Related to my previous question: Pymacs not starting on Emacs24 Carbon Ropemacs won't load, since emacs isn't seeing the correct site-packages directory (see the previous question for example output). I'm using Snow Leopard, with the dev version of emacs24 installed through homebrew. $ emacs --version GNU Emacs 24.0.93.1 Python is also installed through homebrew, and preferred by setting it at the front of my path. $ python --version Python 2.7.2 I use zsh as my login shell. If I type M-!

Move all .jpeg from directory structure into one folder on Mac OS X

别来无恙 提交于 2019-12-22 14:14:12
问题 Recently my iPhoto database got all screwed up and I need to extract all of the originals from a folder structure to a central folder on the desktop. Instead of going one by one through all of the folders, I would like to move all of them through a bash command or script. Any suggestions. I looked into rsync but I think that only takes the folders structure. 回答1: find /path/to/original/folder -type f -name "*.jpg" -exec mv {} /path/to/new/folder \; 来源: https://stackoverflow.com/questions