Blog Archives

Installning PHP5, Apache2 and MySQL 5 on OSX using MacPorts

Hi!

I know, its the longest title of a post.. ever. But… This is something I deal with everytime I reinstall one of my macs, and for the sake of saving some time I thought of writing it down here.

I expect you have OS X 10.8 installed (or higher), but this should also work with OS X 10.7.

MacPorts

Installing…

Before you can use MacPorts you need to install XCode and “Command Line Tools”. You can do this by opening XCode, opening the Xcode menu and choosing “Preferences…” (pic 1). In the new window that opens, choose “Downloads” (pic 2) and select “install” next to “Command Line Tools”.

Posted in 10.8, Apache, Apple, Development, Mac, MacPorts, OSX, PHP, Tutorials, XCode Tagged with: , , , , , , , , , , ,

Bash Completion on OS X

Hi!

This is a issue fix quite often.. and its really annoying to get it right.
So… I am giving it a try to solve it once and for all, at least for myself.

Whenever I install a Mac for myself, I always use MacPorts (http://www.macports.com) for futher software (such as apache, ant, php ect). So I also use it for bash completion. The thing though is that the bash completion from MacPorts comes without any completions, or so it seems. So how do we get them working? Well… lets take it from the top.

Posted in Apple, Development, Mac, OSX Tagged with: , , , ,

Using PHP to check and read a remote GIT file

Hi!

I have been strugeling a bit with this issue during my build of a CI-system. I would like the user to select a git repostirory and branch and let the user install it, however, some settings might need to be set and wanted to read the ANT files “build.properties” and “replace.properties” and show them in the client.

While reading the files, I didn’t want to checkout full projects to do so… so I had do digg around a bit. In the end my colleuge found this page:
http://stackoverflow.com/questions/4135049/how-do-i-check-if-a-file-exists-in-a-remote/4138345#4138345

Posted in Development, PHP Tagged with: , , , , ,

Writing the XCode Cookbook

Hi!
As some of you might know, I am writing an XCode Cookbook. This is a book which will contain only tutorials on how to do different things within XCode. So, no tutorials like “Adding Facebook to my iPhone app”, but more in the style like “Adding custom location to the iOS Simulator” or “Managing multiple targets within my project”.

I have a list of about 50-60 tutorials, but I need more. I need about 40 tutorials (3-4 chapters) more, so I am looking for tips; and since you, my readers, come here for such things, who better to ask but YOU!

Posted in Apple, Cocoa Touch, Development, Mac, Objective-c, OSX, XCode Tagged with: , , , , , , , ,

MacPorts 2 & XCode 4.3

Well, to sum it up… this has been a “pain in the ass” for me. The last few days I have had some trouble running OS X 10.8 (Mountain Lion) preview… which is not that weird since it is a developers preview. The main problem was that MacPorts didn’t work since 10.8 uses Darwin 12 and Lion (with MacPorts 2 installation) uses Darwin 11.

So, I managed to screw things up so badly that I spend whole yesterday evening copying files manually to a USB drive using the “Install Disk” for Lion. Now I formatted my MacBook Air and Mac Mini and installed Lion once again.

Posted in 10.7, Apple, Development, Mac, OSX, Tools, Tutorials, XCode Tagged with: , , , , , , , ,

Categories