How to Install GForge Advanced Server on CentOS 5.5 Server

In this post, i will show you on how to install GForge Advanced Server on CentOS 5.5 Server.

    [root@server ~]# wget http://gforge.org/download/install-gforge-as-571-src.zip
    [root@server ~]# unzip install-gforge-as-571-src.zip
    [root@server ~]# cd gforge-as-571-src
    [root@server gforge-as-571-src] yum install php*
    [root@server gforge-as-571-src]# yum install -y postgresql-server postgresql svn wget poppler-utils wv php-pgsql php-gd php-ldap php-xml php-mbstring
    [root@server gforge-as-571-src]# php check-deps.php
    -=# Welcome to GForge DB-Installer v5.0 #=-
    -=# GForge Dependencies Checker #=-
    
    Checking PHP version... Ok (5.1.6)
    Checking... cvs
    /usr/bin/cvs
    Checking... psql
    /usr/bin/psql
    Checking... svn
    /usr/local/bin/svn
    Checking... ssh
    /usr/bin/ssh
    Checking... wget
    /usr/bin/wget
    Checking... pdftotext
    /usr/bin/pdftotext
    Checking... wvText
    /usr/bin/wvText
    Checking... apache
    /etc/init.d/httpd
    Checking PHP support for... PostgreSQL
    Found
    Checking PHP support for... GD
    Found
    Checking PHP support for... LDAP
    Found
    Checking PHP support for... MultiByte
    Found
    Checking classes... DOMDocument
    Found
    
    All dependencies seem to be installed
    Starting postgresql service:                               [  OK  ]
    
    [root@server gforge-as-571-src]# php install-gforge-1-deps.php CENTOS5
    
    -=# Welcome to GForge Pre-Installer v5.0 #=-
    Do you want to perform an (I)nitial installation or an (U)pgrade of the system [I/u]?
    I
    [root@server gforge-as-571-src]# php install-gforge-2-db.php
    [root@server gforge-as-571-src]# php install-gforge-3.php CENTOS5
    [root@server gforge-as-571-src]# crontab crontab.in
    

How to Install the Dependencies for GForge Community Edition and GForge Advanced Server

Question : How install dependencies for GForge Community Edition and GForge Advanced Server?

-=# GForge Dependencies Checker #=-

Checking PHP version... Ok (5.1.6)
Checking... cvs
/usr/bin/cvs
Checking... psql
which: no psql in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
Not Found
Checking... svn
/usr/local/bin/svn
Checking... ssh
/usr/bin/ssh
Checking... wget
which: no wget in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
Not Found
Checking... pdftotext
which: no pdftotext in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
Not Found
Checking... wvText
which: no wvText in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
Not Found
Checking... apache
/etc/init.d/httpd
Checking PHP support for... PostgreSQL
Not Found
Checking PHP support for... GD
Not Found
Checking PHP support for... LDAP
Not Found
Checking PHP support for... MultiByte
Not Found
Checking classes... DOMDocument
Not Found

The following dependencies were not found: psql, wget, pdftotext, wvText, PHP PostgreSQL, PHP GD, PHP LDAP, PHP MultiByte, PHP-Class DOMDocument

Answer : Please run below yum command on your CentOS/RHEL server
Prerequisites
a)How to Prepare Other Yum Repositories For RHEL/CentOS 5
b)How to Resolved Dependencies Related with wvText
Install the dependencies using yum command :

[root@server ~]# yum install -y php* postgresql-server postgresql svn wget poppler-utils wv php-pgsql php-gd php-ldap php-xml php-mbstring

How to Fix “dependencies were not found: PHP MultiByte” in Linux Server

Question : During the installation such as gforge Collaborative development, the following dependencies were not found: PHP MultiByte. How to install PHP MultiByte into my linux server ? What php extention should i use?

Answer : You just need to run below yum command to install PHP MultiByte on your linux server such as CentOS or RHEL. This will PHP with mbstring support.

    [root@server ~]# yum install php-mbstring
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * addons: centos.maulvi.net
     * base: centos.maulvi.net
     * extras: centos.maulvi.net
     * updates: centos.maulvi.net
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package php-mbstring.i386 0:5.1.6-27.el5_5.3 set to be updated
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ==========================================================================================
     Package                Arch           Version                       Repository      Size
    ==========================================================================================
    Installing:
     php-mbstring           i386           5.1.6-27.el5_5.3              base           995 k
    
    Transaction Summary
    ==========================================================================================
    Install       1 Package(s)
    Upgrade       0 Package(s)
    
    Total download size: 995 k
    Is this ok [y/N]: y
    Downloading Packages:
    php-mbstring-5.1.6-27.el5_5.3.i386.rpm                             | 995 kB     00:33
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing     : php-mbstring                                                       1/1
    
    Installed:
      php-mbstring.i386 0:5.1.6-27.el5_5.3
    
    Complete!
    

How to Resolved Dependencies Related with wvText

wvText converts word documents into plain text, with formatting prominently similar to the original document. It commonly used as a dependencies software for some documentation system such as gforge server. To resolve wvText, you just need to run this yum command on your linux terminal.

1. Prepare the epel repository to enable you to use yum install for wv.

64 Bit Operating System

[root@myserver tmp]# wget http://download.fedora.redhat.com/pub/epel/5/x86_64/
epel-release-5-4.noarch.rpm

32 Bit Operating System:

[root@myserver tmp]# wget http://download.fedora.redhat.com/pub/epel/5/i386/
epel-release-5-4.noarch.rpm
[root@server tmp]# rpm -Uvh epel-release-5-4.noarch.rpm

2. Run Yum install command :

[root@server ~]# yum install wv
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: centos.maulvi.net
 * base: centos.maulvi.net
 * epel: mirror.neu.edu.cn
 * extras: centos.maulvi.net
 * updates: ossm.utm.my
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package wv.i386 0:1.2.4-4.el5 set to be updated
--> Processing Dependency: libgsf-1.so.114 for package: wv
--> Running transaction check
---> Package libgsf.i386 0:1.14.1-6.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================
 Package                              Arch                               Version
==========================================================================================
Installing:
 wv                                   i386                               1.2.4-4.el5
Installing for dependencies:
 libgsf                               i386                               1.14.1-6.1

Transaction Summary
==========================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)

Total download size: 383 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): libgsf-1.14.1-6.1.i386.rpm                                  | 116 kB     00:01
(2/2): wv-1.2.4-4.el5.i386.rpm                                     | 120 kB     01:04
http://mirror.neu.edu.cn/fedora/epel/5/i386/wv-1.2.4-4.el5.i386.rpm: [Errno 4] Socket Error: timed out
Trying other mirror.
(2/2): wv-1.2.4-4.el5.i386.rpm                                     | 267 kB     00:05
------------------------------------------------------------------------------------------
Total                                                     4.4 kB/s | 383 kB     01:27
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : libgsf                                                             1/2
  Installing     : wv                                                                 2/2

Installed:
  wv.i386 0:1.2.4-4.el5

Dependency Installed:
  libgsf.i386 0:1.14.1-6.1

Complete!

How to Resolved Dependencies for pdftotext if Not Found

In certain condition, pdftotext is required to be installed on linux operation system. Pdftotext utility can convert Portable Document Format (PDF) files to plain text. It reads the PDF file, and writes a text file. In linux, this commonly use as the dependencies and it compulsary for some system like Gforge Community Edition and Gforge Advance Server. I just found the solution on how to resolved the dependencies issue while trying to install Gforge Advance Server. You just need to run below command.

    [root@server ~]# yum install poppler-utils
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * addons: centos.maulvi.net
     * base: centos.maulvi.net
     * epel: mirror.neu.edu.cn
     * extras: centos.maulvi.net
     * updates: ossm.utm.my
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package poppler-utils.i386 0:0.5.4-4.4.el5_6.17 set to be updated
    --> Processing Dependency: poppler = 0.5.4-4.4.el5_6.17 for package: poppler-utils
    --> Processing Dependency: libpoppler.so.1 for package: poppler-utils
    --> Running transaction check
    ---> Package poppler.i386 0:0.5.4-4.4.el5_6.17 set to be updated
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ==========================================================================================
     Package                Arch          Version                      Repository        Size
    ==========================================================================================
    Installing:
     poppler-utils          i386          0.5.4-4.4.el5_6.17           updates           73 k
    Installing for dependencies:
     poppler                i386          0.5.4-4.4.el5_6.17           updates          3.0 M
    
    Transaction Summary
    ==========================================================================================
    Install       2 Package(s)
    Upgrade       0 Package(s)
    
    Total download size: 3.1 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/2): poppler-utils-0.5.4-4.4.el5_6.17.i386.rpm                   |  73 kB     00:01
    (2/2): poppler-0.5.4-4.4.el5_6.17.i386.rpm                         | 3.0 MB     00:58
    ------------------------------------------------------------------------------------------
    Total                                                      52 kB/s | 3.1 MB     01:01
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing     : poppler                                                            1/2
      Installing     : poppler-utils                                                      2/2
    
    Installed:
      poppler-utils.i386 0:0.5.4-4.4.el5_6.17
    
    Dependency Installed:
      poppler.i386 0:0.5.4-4.4.el5_6.17
    
    Complete!