Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
installing_prerequisites_on_gentoo [2010/10/29 10:25] – old revision restored eby | installing_prerequisites_on_gentoo [2010/10/29 14:39] – eby |
---|
**As the root user**, add the following USE flags to ''/etc/make.conf'':<code> | **As the root user**, add the following USE flags to ''/etc/make.conf'':<code> |
USE="-ldap apache2 mpm-prefork perl postgres gif jpeg png urandom web" | USE="-ldap apache2 mpm-prefork perl postgres gif jpeg png urandom web" |
| APACHE2_MPMS="prefork" |
</code> | </code> |
| |
===== Add the opensrf user ===== | ===== Add the opensrf user ===== |
The ''opensrf'' user is required to start the OpenSRF services that constitute Evergreen. | The ''opensrf'' user is required to start the OpenSRF services that constitute Evergreen. |
- **As the root user**, issue the following command to create the user and set the password (substitute your preferred password for //password//): <code>useradd -m -p password opensrf</code> | - **As the root user**, issue the following command to create the user and set the password: |
| <code>useradd -m -s /bin/bash opensrf |
| passwd opensrf</code> |
| |
===== Compile and runtime environment ===== | ===== Compile and runtime environment ===== |
LDPATH="/openils/lib" | LDPATH="/openils/lib" |
PATH="/openils/bin" | PATH="/openils/bin" |
PERL5LIB="/openils/lib/perl5:/usr/lib/perl5/site_perl/5.8.8/i686-linux:/usr/lib/perl5/vendor_perl/5.8.8/i686-linux/Bundle</code> You might need to adjust the ''PERL5LIB'' variable to reflect your own architecture, and eventually a newer version of Perl. | PERL5LIB="/openils/lib/perl5:/usr/lib/perl5/site_perl/5.12.2/x86_64-linux:/usr/lib/perl5/vendor_perl/5.12.2/x86_64-linux/Bundle"</code> You might need to adjust the ''PERL5LIB'' variable to reflect your own architecture, and eventually a newer version of Perl. |
- Open another new file (''/etc/env.d/89libdbi'') in a text editor. Add the following line to the file:<code> | - Open another new file (''/etc/env.d/89libdbi'') in a text editor. Add the following line to the file:<code> |
LDPATH="/usr/local/lib/dbd"</code> | LDPATH="/usr/local/lib/dbd"</code> |
''libmemcache'' provides a C API for putting and getting cached values from ''memcached''. | ''libmemcache'' provides a C API for putting and getting cached values from ''memcached''. |
The current stable version of ''libmemcache'' in Gentoo (1.2.0) is subject to memory corruption problems; therefore, we install the pre-release unstable version of ''libmemcache'' (1.4.0-rc2). Perform the following steps as **a root user**:<code> | The current stable version of ''libmemcache'' in Gentoo (1.2.0) is subject to memory corruption problems; therefore, we install the pre-release unstable version of ''libmemcache'' (1.4.0-rc2). Perform the following steps as **a root user**:<code> |
echo "dev-libs/libmemcache ~x86" >> /etc/portage/package.keywords | (if /etc/portage directory doesn't exist, create it) |
| echo "dev-libs/libmemcache" >> /etc/portage/package.keywords |
emerge libmemcache | emerge libmemcache |
| emerge libmemcached |
</code> | </code> |
| |
| |
===== Installing PostgreSQL ===== | ===== Installing PostgreSQL ===== |
I installed PostgreSQL 8.2.4 on the advice of Mike Rylander. As PostgreSQL 8.0.13 is currently the "stable" version on Gentoo, I had to tell Gentoo to use the unstable version. Perform the following steps **as the root user**:<code> | Current: postgresql-server-8.4.4-r1 |
echo "dev-db/postgresql ~x86" >> /etc/portage/package.keywords | <code> |
echo "dev-db/libpq ~x86" >> /etc/portage/package.keywords | emerge postgresql-server |
emerge postgresql | emerge --config =dev-db/postgresql-server-8.4.4-r1 |
emerge postgresql --config | rc-update add postgresql-8.4 default |
rc-update add postgresql default | /etc/init.d/postgresql-8.4 start |
/etc/init.d/postgresql start | |
</code> | </code> |
| |
We need to add tsearch2, table functions, and the plpgsql language to the Open-ILS database:<code> | We need to add tsearch2, table functions, and the plpgsql language to the Open-ILS database:<code> |
psql -U postgres evergreen | psql -U postgres evergreen |
pg# \i /usr/share/postgresql/contrib/tsearch2.sql | pg# \i /usr/share/postgresql-8.4/contrib/tsearch2.sql |
pg# \i /usr/share/postgresql/contrib/tablefunc.sql | pg# \i /usr/share/postgresql-8.4/contrib/tablefunc.sql |
pg# \q | pg# \q |
createlang -U postgres plpgsql evergreen | createlang -U postgres plpgsql evergreen |