Setting up a development environment for RHEL4 and CentOS4
From SIPfoundry sipx, The Open Source SIP PBX for Linux - Calivia
Contents |
RHEL and CentOS
Using yum
Using yum is easier but not readily available on RHEL. Feel free to adjust these instructions to use yum especially if you are on CentOS
JPackage
If using up2date: Import JPackage yum repository and GPG key:
rpm --import http://www.jpackage.org/jpackage.asc echo "yum jpackage16-rhes-4 ftp://jpackage.hmdc.harvard.edu/JPackage/1.6/generic/free/" >> /etc/sysconfig/rhn/sources
- Look here for other mirrors http://www.jpackage.org/mirroring.php
-
I didn't believe this worked, but it does. The yumcommand is not installed on the system yet you really do specifyyumin the config file.
If you are using yum do this instead:
wget -P /etc/yum.repos.d http://www.jpackage.org/jpackage.repo rpm --import http://www.jpackage.org/jpackage.asc
Installing dependencies
If prebuilt dependencies are not available on sipfoundry.org, goto Building dependencies to build your own
yum install \ gcc gcc-c++ autoconf automake libtool subversion doxygen rpm-build redhat-rpm-config zip \ httpd-devel openssl-devel jpackage-utils which unzip \ pcre-devel expat-devel unixODBC-devel \ jakarta-commons-beanutils jakarta-commons-collections\ ant-commons-logging ant-junit ant-trax ant-nodeps \ mod_ssl postgresql-server
sipX specific dependencies:
- For release 3.8 use http://sipxecs.sipfoundry.org/pub/sipXecs/sipxecs-stable-centos.repo
- For release 3.9 use http://sipxecs.sipfoundry.org/temp/sipXecs/sipxecs-unstable-centos.repo
- For the old release 3.6 use http://lambda.sipfoundry.org/pub/sipX/sipx-centos.repo
wget -P /etc/yum.repos.d http://sipxecs.sipfoundry.org/pub/sipXecs/sipxecs-stable-centos.repo yum install \ cgicc-devel xerces-c-devel sipx-w3c-libwww-devel \ java-sun java-1.5.0-sun-devel java-1.5.0-sun-jdbc \ ruby-gems ruby-gems-rake ruby-postgres cppunit
Note: On CentOS 4 / RHEL 4 install xorg-x11-deprecated-libs. This is required by java-sun to satisfy libXp.so.6.
Install additional ruby components:
gem install file-tail --no-rdoc gem install rake --no-rdoc
Where next?
Building from source - If you are setting up a development machine
