jueves, 21 de junio de 2012

Instalar en CentOS

3 comentarios
 
Recientemente hemos llevado a cabo una instalación sobre CentOS 5.8   Como hay bastantes diferencias en los paquetes respecto a Debian, compartimos aquí las notas al respecto:


# INSTALL DEPENDENCIES

yum install python-devel
yum install make gcc gcc-c++ zlib-devel glibc glibc-devel gettext httpd subversion

wget ftp://ftp.muug.mb.ca/mirror/fedora/archive/extras/6/i386/xlhtml-0.5-6.fc6.i386.rpm
rpm -i xlhtml-0.5-6.fc6.i386.rpm

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.i386.rpm
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
rpm -i rpmforge-release-0.5.2-2.el5.rf.*.rpm
yum update
yum --enablerepo=rpmforge install antiword catdoc libxslt python-lxml poppler-utils patch lynx

yum --enablerepo=rpmforge install sudo less tnef ghostscript-fonts ghostscript-gtk exim

wget http://elders.princeton.edu/data/puias/unsupported/5/i386/msttcorefonts-2.0-1.noarch.rpm
rpm -i msttcorefonts-2.0-1.noarch.rp


# INSTALL ZOPE

wget -c http://www.zope.org/Products/Zope/2.9.4/Zope-2.9.4-final.tgz
tar -zxf Zope-2.9.4-final.tgz
cd Zope-2.9.4-final
vi configure # Añadir 2.4.3 a ACCEPTABLE
./configure --prefix=/path/a/zope294
make
make install

mkdir /path/a/kmkey
zope294/bin/mkzopeinstance.py -d kmkey/zope -u admin:$PASSWORD
zope294/bin/mkzopeinstance.py -d kmkey/zope2 -u admin:$PASSWORD
zope294/bin/mkzeoinstance.py kmkey/zeo 8100


# INSTALL POSTGRES AND RELSTORAGE

yum install postgresql84 postgresql84-devel postgresql84-server postgresql84-contrib
yum --enablerepo=rpmforge install python-psycopg2
/etc/init.d/postgresql initdb
/etc/init.d/postgresql start

wget http://pypi.python.org/packages/source/R/RelStorage/RelStorage-1.4.0c3.tar.gz
tar xzf RelStorage-1.4.0c3.tar.gz
cd RelStorage-1.4.0c3
export PYTHONPATH="/usr/local/zope/lib/python/"
python2.4 setup.py install --install-lib=/usr/local/zope/lib/python
cd /usr/local/zope/lib/python/ZODB
patch < $HOME/RelStorage-1.4.0c3/poll-invalidation-zodb-3-7.patch

echo -e "Write zope postgresql password "
read -e PASSWORD
su postgres <
psql -c "CREATE USER zope WITH password '$PASSWORD' createdb" template1
psql -c "\i /usr/share/pgsql/contrib/tsearch2.sql" template1
ENDSU

su zope <
createdb kmkey_zodb
ENDSU

su postgres <
psql -c "update pg_database set encoding=16 where datname='kmkey_zodb'" template1
ENDSU


# INSTALL OPENOFFICE

wget http://download.services.openoffice.org/files/stable/3.3.0/OOo_3.3.0_Linux_x86_install-rpm_en-US.tar.gz
tar xvzf OOo_3.3.0_Linux_x86_install-rpm_en-US.tar.gz
cd OOO330_m20_native_packed-1_en-US.9567/
rpm -i *rpm

Leer más...