Shizzle

My little notebook

Posts tagged with ‘os x’

How to deactivate one macport variant and switch to another one

January 25, 2009

Lets say for instance you have installed PHP with MySQL support with macports:

sudo port install php5 +mysql5

But later on you decide you want to use SQLite, too, you’ll have to rebuild PHP with SQLite extensions, like this.

sudo port install php5 +mysql5 +sqlite

Now you have to deactivate the MySQL-only build and activate the one with SQLite bindings. I couldn’t find it anywhere in in the macports manual so here it goes.

Get a list of your current PHP5 builds with

$ sudo port activate php5
Password:
---> The following versions of php5 are currently installed:
---> php5 @5.2.8_1+apache2+macosx
---> php5 @5.2.8_1+apache2+macosx+mysql5 (active)
---> php5 @5.2.8_1+apache2+macosx+mysql5+sqlite
Error: port activate failed: Registry error: Please specify the full version as recorded in the port registry.

Then copy and paste the currently activated port and use the deactivate command.

sudo port deactivate php5 @5.2.8_1+apache2+macosx+mysql5
---> Deactivating php5 @5.2.8_1+apache2+macosx+mysql5

Then copy and paste the one you would like to use and use the activate command:

sudo port activate php5 @5.2.8_1+apache2+macosx+mysql5+sqlite
---> Activating php5 @5.2.8_1+apache2+macosx+mysql5+sqlite

That’s it.

1 Comment

Installing miranda on Mac OS X

January 22, 2009

EDIT: It seems that miranda is again distributed as a .tgz archive, therefore revert back to the original instructions here.

This is little walk-through for installing the Miranda programming language on OS X. There are the original instructions here, but they things have changed a little since that document was written. Hence this little write-up.

Firstly, download the OS X tarball from the Miranda downloads page or the direct download link.

Open your OS X Terminal (search for it in Spotlight) and go to the directory the tarball was downloaded to.

Then type 

sudo tar xpf mira-2032-MacOSX.tar -C /

This installs bunch of files in your /usr directory, hence the required su access. That’s it. Just run

mira 

and off you go. If you know about a nice IDE or editor with syntax highlighting please post it in the comments.

No Comments

[Fixed] Eclipse editor text bouncing up and down under OS X

October 15, 2008


Eclipse squashing lines

Originally uploaded by Lenniboy

I used to have terrible problems with Eclipse on my MacBook running OS X. Editor text was bouncing up and down and all my lines were squashing. Have a look at the photo if you think I’m crazy.

Finally I have managed to find out what has caused this behaviour: It is the font size, which was set to 9.5. I’m not sure if the small size or the .5 bit that is to blame but but as soon as I set it to 11pt everything was fine.

I’m happy I found this because I was very short of changing over to XCode.

No Comments

Switch to our mobile site