For one, the environment variable ARCHFLAGS has to be set. That's not exactly your everyday gem install command. with-pgsql-include=/opt/ local/include/postgresql83 with-pgsql-lib=/opt/ local/lib/postgresql83 \ I have to admit, the previous installation steps were nothing to cry about however, it was this step that made me want to put together this little walkthrough. Upon completion of installation, you can find the application in /Applications/MacPorts/pgAdmin3 PostgreSQL Libraries for Ruby via Gems It's a nice GUI to some things that you may find yourself wanting to do, like created databases and whatnot. PgAdmin III is a PostgreSQL management and administrations piece of software. Sudo su postgres -c '/opt/local/lib/postgresql83/bin/initdb -D /opt/local/var/db/postgresql83/defaultdb' Start PostgreSQL Automaticallyīy running the next command, you can have PostgreSQL lunch automatically so that it's always available to you sudo launchctl load -w /Library/LaunchDaemons/ Sudo chown postgres:postgres /opt/ local/var/db/postgresql83/defaultdb This will setup a new database for you to play with sudo mkdir -p /opt/ local/var/db/postgresql83/defaultdb Configurationįirst, execute these lines of code. At the end of installation processes, macports will display a message for you that contains some commands for you to get started with. Now pay special attention to the installation script. This will install the client and server needed for you to run this on your machine. To install the database software, simply run the following command in Terminal sudo port install \ So now that you have all of those dependencies out of the way, let's get to installing us some PostgreSQL. Now I don't want to go too deep into this, so I'm going to assume that if you are reading this, that you have the following installed I have always used MySQL, but I wanted to give PostgreSQL a whirl. Installing PostgreSQL on Leopard using MacPorts Friday, March 21, 2008
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |