acq:installing_python
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
acq:installing_python [2008/03/09 14:17] – let's create our own file for paster to read from dbs | acq:installing_python [2022/02/10 13:34] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Installing the acq-admin environment====== | ||
+ | The following instructions are based on Debian Etch, but should be easily adapted for other distributions. These instructions assume that you've already followed the instructions for installing OpenSRF and Evergreen relevant to your distribution to satisfy all prerequisites. | ||
+ | =====Step 1: Installing the OpenSRF Python environment===== | ||
+ | |||
+ | - Install Python headers for compiling pyxmpp & python_memcached (as root):< | ||
+ | # apt-get install python-dev</ | ||
+ | - Upgrade to the latest version of [[http:// | ||
+ | # easy_install --upgrade setuptools</ | ||
+ | - Check out the development branch of OpenSRF (as normal user):< | ||
+ | $ svn co svn:// | ||
+ | - Uncomment the Python build flag in '' | ||
+ | OSRF_INSTALL_PYTHON=1</ | ||
+ | - Build everything (as normal user):< | ||
+ | make</ | ||
+ | - Install everything (as root):< | ||
+ | make install</ | ||
+ | |||
+ | =====Step 2: Installing the Evergreen Python environment===== | ||
+ | |||
+ | - Check out the acq-experiment branch of Evergreen (as normal user):< | ||
+ | $ svn co svn:// | ||
+ | - There is one additional PostgreSQL prerequisite - the **pgxml** functions from the PostgreSQL contrib directory must be added to your Evergreen database:< | ||
+ | # replace with your username / database name / database version as required | ||
+ | psql -U evergreen -d evergreen -f / | ||
+ | </ | ||
+ | - In '' | ||
+ | - Build everything (as normal user):< | ||
+ | make</ | ||
+ | - Install everything (as root):< | ||
+ | make install</ | ||
+ | |||
+ | The install step of the acq-experiment branch creates an extra Web directory, ''/ | ||
+ | |||
+ | (Aside: acq-experiment and trunk now require the Perl JSON::XS module, available as libjson-xs-perl in Debian testing but not yet available in Debian Etch (stable). Add the testing sources to your ''/ | ||
+ | # apt-get update | ||
+ | # apt-get install -t testing libjson-xs-perl</ | ||
+ | |||
+ | =====Step 3: Setting up the Evergreen acquisition Web===== | ||
+ | |||
+ | - Install the Pylons framework (as root):< | ||
+ | # easy_install Pylons</ | ||
+ | - Install the Python libxml2 and libxslt modules (as root):< | ||
+ | # apt-get install python-libxml2 python-libxslt1</ | ||
+ | - Install the Python mxDateTime class for handling ISO 8601 date formats (as root):< | ||
+ | # apt-get install python-egenix-mxdatetime</ | ||
+ | - Install the Python dnspython module (as root):< | ||
+ | # apt-get install python-dnspython</ | ||
+ | - Install '' | ||
+ | # apt-get install dnsmasq | ||
+ | # echo address=/ | ||
+ | # echo nameserver 127.0.0.1 >> / | ||
+ | |||
+ | - In the directory ''/ | ||
+ | ... | ||
+ | [server: | ||
+ | use = egg: | ||
+ | host = 0.0.0.0 | ||
+ | #host = 216.154.195.227 | ||
+ | port = 5000 | ||
+ | ... | ||
+ | </ | ||
+ | - Add open-ils.acq to / | ||
+ | - Add something like the following in with the rest of the service configs:< | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | - Enable open-ils.acq for your server in the < | ||
+ | < | ||
+ | </ | ||
+ | - Start the opensrf router, Perl applications, | ||
+ | # su - opensrf | ||
+ | $ osrf_ctl.sh / | ||
+ | $ osrf_ctl.sh / | ||
+ | $ osrf_ctl.sh / | ||
+ | </ | ||
+ | - Start the acquisitions and administration Web interface as the '' | ||
+ | # su - opensrf | ||
+ | $ cd / | ||
+ | $ paster serve --reload localdev.ini | ||
+ | </ | ||
+ | serving on 0.0.0.0: | ||
+ | </ | ||
+ | |||
+ | ======Accessing the acquisitions and administration web====== | ||
+ | Open the IP address of your Evergreen server in a Web browser, including port 5000 in the URL. For example, if the IP address is 211.211.211.211, | ||
+ | |||
+ | The URLs of interest to a Pylons application can be found in the '' | ||
+ | |||
+ | Start with http://< | ||
+ | oilsweb.lib.AuthException: | ||
+ | </ | ||
+ | |||
+ | Start a '' | ||
+ | srfsh# login admin open-ils staff 0 BR1-circ | ||
+ | </ | ||
+ | |||
+ | You will be given an authentication token. Pass that token as a GET parameter named '' | ||
+ | |||
+ | http:// | ||
+ | |||
+ | This should grant you access to the oilsweb kingdom. |