osx-snow-leopard

Is anyone doing iPhone SDK 2.x.x dev on Snow Leopard?

六眼飞鱼酱① 提交于 2019-12-30 06:50:11
问题 There seems not to be an SDK 2.x.x for Snow Leopard. Or am I mistaken? BTW, I'm loving the built-in Clang!! Kudos to the Xcode team! 回答1: You can write applications targeting iPhone OS 2.x for Snow Leopard. Just make sure you are not using any iPhone OS 3.0 specific API:s. You can also write applications that target both 2.x and uses 3.0 features if available. Two things to keep in mind if you do: Link any iPhone OS 3.0 frameworks weakly. Be sure to check the [UIDevice currentDevice]

Installing Phing & PHPUnit on MAMP

回眸只為那壹抹淺笑 提交于 2019-12-30 05:35:10
问题 I'm having problems running phpunit under MAMP on OS X 10.6. I've installed phpunit via PEAR and it is exists in the MAMP directory but when I run phpunit in terminal nothing happens. I'm guessing that this is a path problem but as a os x newbie, I don't know how to fix it. This is what happens when I try to run it from /Applications/MAMP/bin/php5.3/bin $ phpunit -bash: /usr/bin/phpunit: No such file or directory $ ./phpunit $ The problem looks very similar to this How to Install phpunit 3.5

Mac OSX 10.6 compiler: a puzzling experience with 32 vs 64 bit

一世执手 提交于 2019-12-30 01:17:34
问题 I have trouble understanding the gcc compiler provided by OSX 10.6 snow leopard, mainly because of my lack of experience with 64 bits environments. $ cat >foo.c main() {} $ gcc foo.c -o foo $ file foo foo: Mach-O 64-bit executable x86_64 $ lipo -detailed_info foo input file foo is not a fat file Non-fat file: foo is architecture: x86_64 However, my architecture is seen as an intel i386 type (I have one of the latest Intel Core2 duo MacBook) $ arch i386 and the compiler targets i686-apple

Mac Terminal - How to start Android Virtual Device Manager on CLI?

蹲街弑〆低调 提交于 2019-12-29 04:36:27
问题 I am currently developing a mobile web application and I don't have a test device yet so I'm using the android-emulator to check the site. On my mac, I have installed the stand-alone Android SDK. Every time I want to use the AVD Manager, I have to execute the following on my terminal: monitor This command (being executed on the installed android sdk path) will open the Android Device Monitor and from here, I go to its menu bar and select Window Virtual Device Manager just to open the AVD

How to deploy to Snow Leopard with ARC enabled

对着背影说爱祢 提交于 2019-12-28 13:52:46
问题 I have an OSX app that I would like to migrate to ARC. Everything works fine if I set the base SDK to 10.7. But when I set it to 10.6 it does not work ( because it does not find _objc_release etc.). So how do I deploy my app to 10.6 with ARC enabled? 回答1: You set the SDK to 10.7 but the Deployment Target to 10.6. Keep in mind: While it's possible to build programs using ARC that run on Mac OS X 10.6 and iOS 4, zeroing weak references are not available on those OSes. All weak references must

Uninstalling rails and gems, getting error "cannot uninstall, check 'gem list -d …'

妖精的绣舞 提交于 2019-12-28 10:12:23
问题 I'm going to start with the usual noob line, "I'm new to rails". Oh, and I'm running Mac OSX 10.6.4 I've been following a bunch of guides to get set up, specifically these two here and here. The guides are great, the reason I'm using the second one is because of RVM and the reason I'm using the first is for MYSQL. Anyway, when I started, I wasn't following the directions completely and so after I installed RVM, for some reason I installed rails with sudo gem install rails -v 2.3.8 because

Uninstalling rails and gems, getting error "cannot uninstall, check 'gem list -d …'

☆樱花仙子☆ 提交于 2019-12-28 10:12:07
问题 I'm going to start with the usual noob line, "I'm new to rails". Oh, and I'm running Mac OSX 10.6.4 I've been following a bunch of guides to get set up, specifically these two here and here. The guides are great, the reason I'm using the second one is because of RVM and the reason I'm using the first is for MYSQL. Anyway, when I started, I wasn't following the directions completely and so after I installed RVM, for some reason I installed rails with sudo gem install rails -v 2.3.8 because

How to uninstall postgresql on my Mac (running Snow Leopard)

拟墨画扇 提交于 2019-12-28 09:14:21
问题 Upgraded 10.6 from 10.5 and now postgres 8.1 is whacked. To make things worse I tried installing 8.4 which I'm pretty sure just made things ten times worse. Anyhow, the exception I'm getting when I try to fire postgres up and just createuser is this: createuser: could not connect to database postgres: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? HOW do I fully get rid of postgres on

How to uninstall postgresql on my Mac (running Snow Leopard)

自闭症网瘾萝莉.ら 提交于 2019-12-28 09:14:02
问题 Upgraded 10.6 from 10.5 and now postgres 8.1 is whacked. To make things worse I tried installing 8.4 which I'm pretty sure just made things ten times worse. Anyhow, the exception I'm getting when I try to fire postgres up and just createuser is this: createuser: could not connect to database postgres: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? HOW do I fully get rid of postgres on

Python: Unable to Render Tex in Matplotlib

人盡茶涼 提交于 2019-12-28 02:05:26
问题 I recently upgraded my laptop to Snow Leopard, updated TeX to Version 3.1415926 (TeX Live 2011/MacPorts 2011_5), and installed Python 2.7.3. After all these installs, I ran macport selfupdate and macport upgrade outdated. However, now when I try to use TeX in matplotlib, I receive the following: LaTeX was not able to process the following string:'lp' Here is the full report generated by LaTeX: This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011/MacPorts 2011_5) restricted \write18