Installation Error

I am using Centos 5 64 bin os and try to install virtualmin by /bin/sh install.sh installation process is start After few sec i got flowing error and installation stop working complete output on ssh is as follow

Continue? (y/n) y
Checking for HTTP client…found /usr/bin/curl -s -O
Checking for perl…found /usr/bin/perl
Loading log4sh logging library…
INFO - Started installation log in /root/virtualmin-install.log
INFO - Checking for fully qualified hostname…
INFO - Hostname OK: fully qualified as ns5.sarvlabs.com
INFO - Installing serial number and license key into /etc/virtualmin-license
INFO - Loading OS selection library…
INFO - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded.
INFO - Loading OS list…
INFO - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = “UTF-8”,
LANG = “”
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
INFO - Operating system name: CentOS Linux
INFO - Operating system version: 5
INFO - Configuring package manager for CentOS Linux 5…
INFO - Disabling SELinux during installation…
/usr/sbin/setenforce: SELinux is disabled
INFO - setenforce 0 failed: 1

INFO - Download of http://software.virtualmin.com/gpl/rhel/5/x86_64/virtualmin-release-latest.noarch.rpm Succeeded.

Running updatedb so locate works…this will take a little while.

Attempting to import various system RPM-GPG-KEY files…Errors may occur,

if you’ve already imported them. It is safe to ignore these errors.
/var/tmp/rpm-tmp.26579: line 30: [: Failed to set locale, defaulting to C 3: integer expression expected
/var/tmp/rpm-tmp.26579: line 33: [[: Failed to set locale, defaulting to C 3: syntax error in expression (error token is “to set locale, defaulting to C 3”)

INFO - Succeeded.
INFO - Installing dependencies using command: /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix bind spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-domxl php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay

…in progress, please wait…

-Failed to set locale, defaulting to C
|Error: Missing Dependency: httpd = 2.2.3-53.el5.centos.3 is needed by package httpd-devel-2.2.3-53.el5.centos.3.i386 (installed)
/usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix bind spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-domxl php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay failed. Error (if any): 0

Displaying the last 15 lines of /root/virtualmin-install.log to help troubleshoot this problem:
—> Package rubygems.noarch 0:0.9.2-1.el5 set to be updated
–> Processing Dependency: ruby-rdoc for package: rubygems
–> Running transaction check
–> Processing Dependency: httpd = 2.2.3-53.el5.centos.3 for package: httpd-devel
—> Package httpd-devel.x86_64 1:2.2.3-53.el5.vm set to be updated
—> Package httpd-manual.x86_64 1:2.2.3-53.el5.vm set to be updated
—> Package ruby-rdoc.x86_64 0:1.8.5-19.el5_6.1 set to be updated
–> Finished Dependency Resolution

httpd-devel-2.2.3-53.el5.centos.3.i386 from installed has depsolving problems
–> Missing Dependency: httpd = 2.2.3-53.el5.centos.3 is needed by package httpd-devel-2.2.3-53.el5.centos.3.i386 (installed)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

FATAL - Fatal Error Occurred: Something went wrong during installation: 0
FATAL - Cannot continue installation.
FATAL - Attempting to remove virtualmin repository configuration, so the installation can be
FATAL - re-attempted after any problems have been resolved.
FATAL - Removing temporary directory and files.
FATAL - If you are unsure of what went wrong, you may wish to review the log
FATAL - in /root/virtualmin-install.log
[root@ns5 ~]#

Hmm, it looks like you may have a mix of 32 bit and 64 bit Apache packages installed, and that’s confusing the installer.

Try running this command:

rpm -e httpd httpd-devel httpd-manual

And then re-run the installer and see if that works.

-Eric