User Tools

Site Tools


redhat_opensrf_trunk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
redhat_opensrf_trunk [2010/03/10 14:04] – created leedredhat_opensrf_trunk [2022/02/10 13:34] (current) – external edit 127.0.0.1
Line 22: Line 22:
 useradd -m -s /bin/bash opensrf useradd -m -s /bin/bash opensrf
 passwd opensrf  # only necessary if you want to log in to this user directly</code> passwd opensrf  # only necessary if you want to log in to this user directly</code>
-  - As the **opensrf** user, download and patch the source files for OpenSRF trunk:<code bash>+  - As the **opensrf** user, download the source files for OpenSRF trunk:<code bash>
 cd && svn checkout svn://svn.open-ils.org/OpenSRF/trunk OpenSRF-trunk cd && svn checkout svn://svn.open-ils.org/OpenSRF/trunk OpenSRF-trunk
-wget http://esilibrary.com/~ldickens/rhel-evg/opensrf-rhel.diff 
-cd /home/opensrf/OpenSRF-trunk 
-patch -p0 < ../opensrf-rhel.diff 
 </code> </code>
   - As the **root** user, install the prerequisites:<code bash>   - As the **root** user, install the prerequisites:<code bash>
 +cd /home/opensrf/OpenSRF-trunk
 make -f src/extras/Makefile.install rhel make -f src/extras/Makefile.install rhel
 </code> </code>
 +This will install a number of packages required by OpenSRF on your system, including some Perl modules from CPAN. You can say “no” to the initial CPAN configuration prompt to allow it to automatically configure itself to download and install Perl modules from CPAN. The CPAN installer will ask you a number of times whether it should install prerequisite modules - say “yes”.
   - Build OpenSRF:   - Build OpenSRF:
     - As the **opensrf** user, configure and compile OpenSRF. You can include the ''--enable-python'' and ''--enable-java'' configure options if you want to include support for Python and Java, respectively:<code bash>     - As the **opensrf** user, configure and compile OpenSRF. You can include the ''--enable-python'' and ''--enable-java'' configure options if you want to include support for Python and Java, respectively:<code bash>
Line 118: Line 117:
  
 You might want to add these to start when the machine boots:<code bash> You might want to add these to start when the machine boots:<code bash>
-echo /etc/init.d/memcached start >> /etc/rc.local +useradd -m -s /bin/bash ejabberd 
-chkconfig --level 345 memcached on</code>+chown ejabberd:ejabberd -R /opt/ejabberd 
 +cp /opt/ejabberd/bin/ejabberd.init /etc/init.d/ejabberd 
 +vi /etc/init.d/ejabberd 
 +</code> 
 +Now add these lines to the top of /etc/init.d/ejabberd immediately below the #!/bin/sh:<code bash> 
 +# chkconfig: 2345 95 20 
 +# description: ejabberd start/stop init script 
 +# Script to start and stop ejabberd 
 +# processname: ejabberd 
 +</code> 
 +Now finish adding these programs to autostart:<code bash> 
 +chkconfig --level 2345 ejabberd on 
 +chkconfig --level 2345 memcached on</code>
  
 Starting OpenSRF with the ''start_all'' option starts the OpenSRF router, Perl services, and C services. As the **opensrf** user, start OpenSRF (**NOTE**: use the ''-l'' flag only if you wish to force the hostname for the ''<hosts>'' section in ''opensrf.xml'' to be ''localhost''):<code bash> Starting OpenSRF with the ''start_all'' option starts the OpenSRF router, Perl services, and C services. As the **opensrf** user, start OpenSRF (**NOTE**: use the ''-l'' flag only if you wish to force the hostname for the ''<hosts>'' section in ''opensrf.xml'' to be ''localhost''):<code bash>
redhat_opensrf_trunk.1268247877.txt.gz · Last modified: 2022/02/10 13:33 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.