osx-leopard

How to set up PEAR on Mac OS X 10.5 Leopard

眉间皱痕 提交于 2019-11-27 13:14:01
问题 I'm ultimately trying to install PEAR so I can easily install PHPUnit. I want to set up a Mac, Apache, MySQL, PHP, PHPUnit development environment so I can test locally. I already have Apach, MySQL and PHP working. Now all I need is PHPUnit, which means I need PEAR to install it. I have searched all over, and there are a few variations of "the tutorial" on how to install PEAR on Mac OS X 10.5. However, I can't seem to get any of them to work! Has anyone had success with this? I'm not totally

How do I install Bash >= 3.2.25 on Mac OS X 10.5.8?

谁说胖子不能爱 提交于 2019-11-27 11:48:06
问题 I'm following Michael Hartl's Rails tutorial, so far I've installed Git 1.7.5.4 x86_64 (I'm running OSX 10.5.8) and I'm trying to install rvm After I run the following: $ curl -kL get.rvm.io | bash -s stable I get: BASH 3.2.25 required (you have 3.2.17(1)-release) I've tried changing the shell, using chsh -s /opt/local/bin/bash but I get shell '/opt/local/bin/bash' does not exist Not sure where to go from here but I'd appreciate any guidance. Thanks! 回答1: Homebrew is generally a bit nicer

NSTableView with custom cells

心已入冬 提交于 2019-11-27 10:57:35
问题 it seems I've been searching for a long time and haven't found a great, easy, answer to my problem. I'm using XCode with Cocoa/ObjC and am trying to create an NSTableView which will load values from an NSDictionary/Array into different sections of a cell. For example, I'm trying to get an NSImage, NSTextField and other items into a custom cell (along with a background image). However, I can't find a simple answer to how to create this.. I've been coding for the iPhone with UITableViews for a

How do you install lxml on OS X Leopard without using MacPorts or Fink?

浪尽此生 提交于 2019-11-27 06:19:28
I've tried this and run in to problems a bunch of times in the past. Does anyone have a recipe for installing lxml on OS X without MacPorts or Fink that definitely works? Preferably with complete 1-2-3 steps for downloading and building each of the dependencies. Simon Willison Thanks to @jessenoller on Twitter I have an answer that fits my needs - you can compile lxml with static dependencies, hence avoiding messing with the libxml2 that ships with OS X. Here's what worked for me: cd /tmp curl -O http://lxml.de/files/lxml-3.6.0.tgz tar -xzvf lxml-3.6.0.tgz cd lxml-3.6.0 python setup.py build -

Detecting when a space changes in Spaces in Mac OS X

家住魔仙堡 提交于 2019-11-27 05:23:07
问题 Let's say I want to write a simple Cocoa app to make the Spaces feature of Leopard more useful. I would like to configure each space to have, say, different screen resolutions keyboard layouts volume (for audio) So there are two parts to my question: I suppose there are ways to modify these three things independently of Spaces, right? If so, how? How can I detect in my app when a space change occurs, and when that happens, determine what space the user just switched to? Does Leopard send out

Can I get Xcode for Leopard still?

瘦欲@ 提交于 2019-11-27 04:20:23
问题 I just tried to upgrade my xcode tools on my mac running 10.5.8, but I didn't realize that the latest version of xcode will only run on snow leopard. I can't find the older version of xcode that would work on my work machine. Where can I get a leopard compatible version of xcode? 回答1: Xcode downloads for Leopard (10.5) are no longer shown on the main Xcode page. However, prior versions are available from the Downloads for Apple Developers page. Once you have logged in, you can enter "Xcode 3

Multiple versions of Python on OS X Leopard

戏子无情 提交于 2019-11-27 04:05:13
I currently have multiple versions of Python installed on my Mac, the one that came with it, a version I downloaded recently from python.org, an older version used to run Zope locally and another version that Appengine is using. It's kind of a mess. Any recommendations of using one version of python to rule them all? How would I go about deleted older versions and linking all of my apps to a single install. Any Mac specific gotchas I should know about? Is this a dumb idea? Ned Deily There's nothing inherently wrong with having multiple versions of Python around. Sometimes it's a necessity when

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

我是研究僧i 提交于 2019-11-27 03:01:39
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 do in Xcode. I'm assuming it is simply a case of changing a path variable or some such but I am stumped

How do I uninstall python from OSX Leopard so that I can use the MacPorts version?

非 Y 不嫁゛ 提交于 2019-11-27 00:30:34
问题 I want to use the macports version of python instead of the one that comes with Leopard. 回答1: I have both installed: $ which python /usr/bin/python $ which python2.5 /opt/local/bin/python2.5 I also added the following line to my .profile : export PATH=/opt/local/bin:/opt/local/sbin:$PATH 回答2: Don't. Apple ships various system utilities that rely on the system Python (and particularly the Python "framework" build); removing it will cause you problems. Instead, modify your PATH environ variable

What is the “Illegal Instruction: 4” error and why does “-mmacosx-version-min=10.x” fix it?

柔情痞子 提交于 2019-11-26 14:32:57
I get Illegal Instruction: 4 errors with binaries compiled with GCC 4.7.2 under Mac OS X 10.8.2 ("Mountain Lion"), when those binaries are run under Mac OS X 10.7.x ("Lion") and earlier versions. The binaries work properly under Mac OS X 10.8.x. I added -mmacosx-version-min=10.5 to my compile flags and this seems to help resolve the issue for 10.5.x, 10.6.x and 10.7.x clients, whatever that issue is. Which gets to my question(s): What is the Illegal Instruction: 4 error? Why does -mmacosx-version-min=10.x fix this specific error on 10.x and greater clients? I'd like to apply this fix to my