osx-leopard

How to set up PEAR on Mac OS X 10.5 Leopard

江枫思渺然 提交于 2019-11-28 20:50:13
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 confident that I have everything set up as it should be, so if you could include the "default" Mac OS X

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

ε祈祈猫儿з 提交于 2019-11-28 19:22:22
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! Homebrew is generally a bit nicer than MacPorts, as it doesn't require lots of sudo action. Here's an article that guided me to upgrading my

NSTableView with custom cells

随声附和 提交于 2019-11-28 17:57:53
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 while now and can't seem to find a similar way with NSTableViews. Any help would be really great!

Mac OS X doesn't allow to name files starting with a dot. How do I name the .htaccess file?

泄露秘密 提交于 2019-11-28 16:21:58
As mentioned in the title, Mac OS X doesn't allow me to name files starting with a dot ( . ). But, I need an .htaccess file. Or, better, how do I use an htaccess file in Mac OS X without giving it a name starting with a dot? I am running Mac OS 10.5.8 and XAMPP 1.7.3. You can't do this with the Finder. Open Terminal.app ( Applications -> Utilities -> Terminal ), and type: > cd /path/to/directory/containing/htaccess > mv current_file_name .htaccess Example (do not take directory names or initial filename literally, of course): Arkhaic You can create files that begin with a "." if you can view

How do I make the apple terminal window auto change colour scheme when I ssh to a specific server

大憨熊 提交于 2019-11-28 15:39:33
When I ssh into a remote production server I would like the colour scheme of my terminal window to change to something brigh and scary, preferably red, to warn me that I am touching a live scary server. How can I make it automatically detect that I have ssh'ed somewhere, and if that somewhere is on a specific list, change the colour scheme? I want to update the Scheme of Terminal.app, not know how I would do this in a pure linux/unix env Put following script in ~/bin/ssh (ensure ~/bin/ looked before /usr/bin/ in your PATH): #!/bin/sh HOSTNAME=`echo $@ | sed s/.*@//` set_bg () { osascript -e

How to install PIL on Mac OSX 10.5.8 for Google App Engine?

穿精又带淫゛_ 提交于 2019-11-28 08:19:02
I need to get PIL installed locally to test GAE's images api in my local environment. I grabbed the PIL 1.1.6 installer for Mac, and when I go to select the destination (when installing), I get the error: You cannot install PIL 1.1.6 on this volume. PIL requires System Python 2.5 to install. I have Python 2.5.x on this machine. NOTE: Added a bounty. I am in real need of a way to test the image API locally on my Mac. That's quite easy: Install MacPorts Install Python 2.5 with sudo port install python25 Install Pil for Python 2.5 with sudo port install py25-pil In the Google App Engine launcher

How to add base SDK for 10.5 in xCode 4

懵懂的女人 提交于 2019-11-28 05:16:32
I've installed xCode 4 last night and tried to compile a software which should support 10.5 and above OSs. It gave the error message "Base SDK missing". I found that 10.5 base SDK is no longer in the menu. Is there any way to get that base SDK? Is there any get around for this problem? Thanks in advance. Dropping the 10.5 SDK is also a problem for software which does not use Xcode for the build system, but expects (perhaps foolishly) for specific SDKs to be in place. To add the SDK back, I re-installed the MacOSX10.5.pkg from the Xcode 3.2.6 download. It is in a hidden folder named "Packages"

Detecting when a space changes in Spaces in Mac OS X

て烟熏妆下的殇ゞ 提交于 2019-11-28 04:35:24
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 some distributed notifications or something? Update: There has to be some public API way of doing this,

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

好久不见. 提交于 2019-11-28 04:34:18
I want to use the macports version of python instead of the one that comes with Leopard. 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 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 in your ~/.bash_profile to put /opt/local/bin first. Use the python_select port to switch python interpreters.

Can I get Xcode for Leopard still?

≯℡__Kan透↙ 提交于 2019-11-27 19:03:20
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? Epsilon Prime 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.1.4" in the search field at the top left and hit Enter. Another alternative is to download it