In Memoriam: Tai'lahr

OpenUru.org, along with the rest of the Mystonline community, is mourning the loss of Tai'lahr on October 16th, 2019.

Rest in Peace, friend.

Difference between revisions of "MOSS/Distribution Specific Instructions"

From OpenUru
Jump to navigation Jump to search
m
(More MacOS X)
Line 34: Line 34:
 
  sudo port install libpqxx zlib
 
  sudo port install libpqxx zlib
  
Download and install PostgreSQL 8.49-1 or similar in .dmg format from http://www.enterprisedb.com/products-services-training/pgdownload#osx ; this will set up user accounts.  Be certain to follow the included README for a prerequisite step involving shared memory.
+
Download and install PostgreSQL in .dmg format from http://www.enterprisedb.com/products-services-training/pgdownload#osx ; this will set up user accounts.  You can use Version 8.x on PowerPC or Intel 32-bit, but if you need 64-bit you'll have to download version 9 or later.  Be certain to follow the included README for a prerequisite step involving shared memory.
  
 
== Database Setup ==
 
== Database Setup ==
Line 60: Line 60:
  
 
== Additional Notes ==
 
== Additional Notes ==
 +
 +
=== MacOS X ===
 +
 +
The bootstrap.sh file does not currently work because libtoolize is named glibtoolize under MacOS.  A patch has been submitted.  With the patched boostrap, you'll just need to <code>export LIBTOOLIZE=glibtoolize</code>.
 +
 +
If you use the PostgreSQL package from EnterpriseDB then by default it is installed to /Library/PostgreSQL/<version>/<bin, data, doc, include, lib, etcetera>.  You will need to use the <code>--with-postgres=PREFIX</code> option when you run <code>./configure</code>.  Configure will then expect libpqxx to be installed in the same place as PostgreSQL, so if you installed libpqxx from MacPorts then you'll need to use the <code>--with-libpqxx=PREFIX</code> option to point at /opt/local .  So, your command line may look like this:
 +
./configure --with-postgres=/Library/PostgreSQL/9.0 --with-libpqxx=/opt/local
 +
  
 
[[Category:MOSS]]
 
[[Category:MOSS]]

Revision as of 00:17, 20 October 2011

This document is meant to collect any known distribution-specific instructions for installing MOSS. There are two main parts: installing the prerequisite packages, and setting up the PostgreSQL database. Feel free to add any other notes you may find useful.


Prerequisite Packages

NetBSD pkgsrc

Only PostgreSQL and the autotools are needed. You can build the packages or use the prebuilt packages with pkg_add.

pkg_add automake
pkg_add libtool
pkg_add libpqxx

I recommend starting with libpqxx because it seems to lag the postgresql-client package, and installing libpqxx will get the correct client.

pkg_add postgresqlNN-server

Get the version number to match the client installed for pqxx.

Now follow the instructions:

  • copy /usr/pkg/share/examples/rc.d/pgsql to /etc/rc.d/pgsql
  • chmod 555 /etc/rc.d/pgsql
  • append pgsql=YES to /etc/rc.conf

MacOS X

First, you will need the MacOS X developer tools installed.

Second, you will need to install libpqxx, zlib, and postgresql. Here is one approach:

You can use [MacPorts] to install libpqxx and zlib:

sudo port install libpqxx zlib

Download and install PostgreSQL in .dmg format from http://www.enterprisedb.com/products-services-training/pgdownload#osx ; this will set up user accounts. You can use Version 8.x on PowerPC or Intel 32-bit, but if you need 64-bit you'll have to download version 9 or later. Be certain to follow the included README for a prerequisite step involving shared memory.

Database Setup

NetBSD pkgsrc

Copy moss_uuidgen.so to /usr/pkg/lib/postgresql/

The database user is pgsql. It has root access to the DB by default. Connect from localhost (the default).

Create the database:

su -m pgsql -c "psql postgres"
create database moss with encoding='UTF8';
\c moss
create role moss with login;
\q
su -m pgsql -c "psql postgres -f moss.sql"

Then set db_user=moss in moss_backend.cfg.

MacOS X

http://assets.openuru.org/wiki/icons/wip_30x30.PNG

Content to be advised.


Additional Notes

MacOS X

The bootstrap.sh file does not currently work because libtoolize is named glibtoolize under MacOS. A patch has been submitted. With the patched boostrap, you'll just need to export LIBTOOLIZE=glibtoolize.

If you use the PostgreSQL package from EnterpriseDB then by default it is installed to /Library/PostgreSQL/<version>/<bin, data, doc, include, lib, etcetera>. You will need to use the --with-postgres=PREFIX option when you run ./configure. Configure will then expect libpqxx to be installed in the same place as PostgreSQL, so if you installed libpqxx from MacPorts then you'll need to use the --with-libpqxx=PREFIX option to point at /opt/local . So, your command line may look like this:

./configure --with-postgres=/Library/PostgreSQL/9.0 --with-libpqxx=/opt/local