Mario Orlandi's Snippets

13/02/2012

Mac port upgrade hints

Filed under: Uncategorized — Tags: , — morlandi @ 12:23

Python

To make python 2.6 the default (i.e. the version you get when you run
'python'), please run:

$ sudo port select --set python python26

PostgreSQL 8.4

###########################################################
# A startup item has been generated that will aid in
# starting postgresql84-server with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo port load postgresql84-server
###########################################################
--->  Installing postgresql84-server @8.4.10_0

To create a database instance, after install do
 sudo mkdir -p /opt/local/var/db/postgresql84/defaultdb
 sudo chown postgres:postgres /opt/local/var/db/postgresql84/defaultdb
 sudo su postgres -c '/opt/local/lib/postgresql84/bin/initdb -D /opt/local/var/db/postgresql84/defaultdb'

memcached, nginx, apache2, rsync

###########################################################
# A startup item has been generated that will aid in
# starting memcached with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo port load memcached
...
# sudo port load apache2
# sudo port load nginx
# sudo port load rsync

###########################################################

Theme: Silver is the New Black. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.