osx-leopard

Setting GCC 4.2 as the default compiler on Mac OS X Leopard

三世轮回 提交于 2019-12-17 07:06:13
问题 I'm sure there must be a way to do this. As you are probably aware the latest versions of Xcode (and in fact I think all versions of Xcode) on Leopard come with GCC 4.0.1 and GCC 4.2. GCC 4.0.1 is the default system compiler while GCC 4.2 is an optional compiler you can set in the Xcode project settings. Does anyone know how to set GCC 4.2 as the default compiler for all options? Preferably command line use as well as configure scripts still use GCC 4.0.1 rather than GCC 4.2 no matter what I

How can we restore ppc/ppc64 as well as full 10.4/10.5 SDK support to Xcode 4?

时间秒杀一切 提交于 2019-12-17 01:34:11
问题 Since Apple only ships SDK 10.6 with Xcode4, developing PPC applications with Xcode4 became impossible. While it is possible to develop applications with Xcode4 that can also run on 10.5 and maybe even on 10.4 systems (by selecting SDK 10.6, but deployment target 10.5 or 10.4), they will only run on Intel Macs because you need at least SDK 10.5 for building PPC applications. Further there are some rare cases, where you really need to build against an SDK prior to 10.6 for full platform

How to open .m files in octave on OSX 10.6.8

℡╲_俬逩灬. 提交于 2019-12-13 19:57:51
问题 This file ex1.m, I "open with" octave, but it doesn't do anything. the first few lines of code are.... %% Machine Learning Online Class - Exercise 1: Linear Regression % Instructions % ------------ % % This file contains code that helps you get started on the % linear exercise. You will need to complete the following functions % in this exericse: % % warmUpExercise.m % plotData.m % gradientDescent.m % computeCost.m % gradientDescentMulti.m % computeCostMulti.m % featureNormalize.m % normalEqn

Reinstall /Library/Python on OS X Leopard

痞子三分冷 提交于 2019-12-13 04:22:25
问题 I accidentally removed /Library/Python on OS X Leopard. How can I reinstall that? 回答1: /Library/Python contains your python site-packages, which is the local software you've installed using commands like python setup.py install . The pieces here are third-party packages, not items installed by Apple - your actual Python installation is still safe in /System/Library/etc... In other words, the default OS leaves these directories mostly blank... nothing in there is critical (just a readme and a

Unable to use PIL after installing using pythononmac.org package (Mac OS Leopard)

邮差的信 提交于 2019-12-13 03:56:59
问题 I'm trying to use PIL for a Google App Engine project. I've installed PIL using the installer from pythononmac.org but it doesn't seem to do anything, or at least neither I nor Python can find the files. I'm running Python 2.5.1. 回答1: The installers found on that page were designed to be used with the python 2.5 installer found there. Note that most of the packages are now out-of-date. The PIL installer uses the site-packages library in the framework used by the 2.5 Python on that page and by

I can't install any gem or updates in Leopard

眉间皱痕 提交于 2019-12-13 01:46:54
问题 bogon:~ Zhulin$ ruby -v ruby 1.8.6 (2009-06-08 patchlevel 369) [universal-darwin9.0] bogon:~ Zhulin$ rails -v Rails 1.2.6 bogon:~ Zhulin$ gems -v -bash: gems: command not found bogon:~ Zhulin$ sudo gem install heroku Password: ERROR: While executing gem ... (Gem::RemoteSourceException) HTTP Response 302 fetching http://gems.rubyforge.org/yaml bogon:~ Zhulin$ gem -v 1.0.1 bogon:~ Zhulin$ gem list *** LOCAL GEMS *** actionmailer (1.3.6) actionpack (1.13.6) actionwebservice (1.2.6) activerecord

For Windows there is Win32 API, what about for Mac?

风格不统一 提交于 2019-12-12 14:57:56
问题 For Windows there is Win32 API, what about for Mac? On Wikipedia http://en.wikipedia.org/wiki/Cocoa_(API) it is said that Cocoa is "one of" the API... what about the full story? 回答1: At what level? The low level API is largely but not entirely FreeBSD, and below that there is still a Mach API (some things still use Mach ports for IPC, I believe; at least, launchd supports them). At the upper level are two APIs: Cocoa and Carbon. Cocoa is the native API; Carbon is intended for programs ported

Glassfish v4.0 cannot work on Mac OSX 10.6.8 + JDK 7.0 U40

感情迁移 提交于 2019-12-11 12:08:03
问题 I had been using 2010 Macbook Pro for a while and had updated the Mac OSX to the latest version, and I had been suffering the slow speed for a long time. So last night I googled and do some cleanup , such as fix disk permissions, but the Mac was still slow. And someone suggest to re-install MacOSX. I was thinking it was the new version of Mac OSX's problem, I had the same kind of problems happen on the 1st version IPad either. After I reinstalled, the computer became much more faster. But I

Why does Applescript run in Script Editor, but error when saved as Application?

喜欢而已 提交于 2019-12-11 01:58:54
问题 My applescript needs to detect its own filename, and the following runs fine on Snow Leopard (10.6) set my_name to name of me as string display dialog "Name: " & my_name It displays "Name: AppleScript Editor" when I run it from AppleScript Editor, and it displays "Name: NewTest" when I save it as an application called NewTest. When I run it on a Leopare (10.5) machine, it complains "Can't make name of <> into type string." When I remove the "as string" portion, it runs under Script Editor,

iphone development-leopard or snow leopard?

落爺英雄遲暮 提交于 2019-12-11 01:56:42
问题 i am planning start my iphone development, and i have a iMac with tiger 10.4 OS version, planning to upgrade to Leopard 10.5.6 OS X, but i heard apple going to release the Snow Leopard in september, will development environment shift to snow leopard instead of leopard,and Leopard 10.5.7 no longer be used to development?is now a good timing to upgrade? 回答1: Yes, because even if you buy Leopard now it will only cost you $29 to upgrade to Snow Leopard. When you join the iPhone Developer Program