Mac OSX

Creating and running Postgresql on mac

I am using macports for the installation Run sudo port install postgresql92 and then sudo port install postgresql92-server Once the server has been installed, run the following To create a database instance, after install do  sudo mkdir -p /opt/local/var/db/postgresql92/defaultdb sudo chown postgres:postgres /opt/local/var/db/postgresql92/defaultdb sudo su postgres -c ‘/opt/local/lib/postgresql92/bin/initdb -D /opt/local/var/db/postgresql92/defaultdb’ The output you will see The files …

Liferay Portal 6.0.6 com.liferay.portal.NoSuchCompanyException: No Company exists with the primary key 1

I installed a brand new copy of MySQL 5.1 on my mac at home. Downloaded the latest copy of Liferay Portal on Tomcat 6.0.6 and configured the portal-ext.properties to use MySQL as the database. Started the server which promptly created all the necessary tables and started successfully. Access the default liferay URL on http://localhost:8080 and …

Launching an item on startup in mac

Example message taken during port upgrade ############################################################ A startup item has been generated that will aid in# starting apache2 with launchd. It is disabled# by default. Execute the following command to start it,# and to cause it to launch at startup:## sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist###########################################################

Mac Ports upgrade error Can’t map the URL ‘file://.’ to a port description file (“Could not find Portfile in /”)

When I was trying to upgrade my packages using the macports port command, I got the following error Can’t map the URL ‘file://.’ to a port description file (“Could not find Portfile in /“).Please verify that the directory and portfile syntax are correct.To use the current port, you must be in a port’s directory.(you might …