Problems with new installation on Centos 6.2 64 bit

BooDaddy

Verified User
Joined
Feb 20, 2009
Messages
46
Hello all,
I am moving to a new machine and I am trying to install DA onto a fresh install of CentOS 6.2 64 bit. I have not installed any applications other than what comes in the "base" install, nor have I messed with any configurations, except for doing a simple NIC bonding.

When I run the setup.sh, It runs for a while and eventually errors out with the following:

Code:
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file

*******************************************
*******************************************

Cannot find /usr/local/bin/php
Please recompile php with custombuild, eg:
cd /usr/local/directadmin/custombuild
./build all d

This appears to be a 64-bit system.
a common cause of http/php compile failures is mentioned here:
http://help.directadmin.com/item.php?id=213

If you're running CentOS (not freebsd or debian) and applies to you, then type:

ln -sf /usr/lib64/libexpat.so /usr/lib/libexpat.so
ln -sf /usr/lib64/libm.so /usr/lib/libm.so
ln -sf /usr/lib64/libssl.so /usr/lib/libssl.so
cd /usr/local/directadmin/custombuild
./build all d

*******************************************
*******************************************

I had selected the custombuild option during the initial prompts from the installer script.

I have tried the suggested fixes by performing the linking and then running ./build all d (as suggested in the last stanza of the error above), but it eventually errors out with the following:

Code:
*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file

I am not sure what to do next, or what to even try next.
 
I have confirmed the license is correct for my OS. Its listed as CentOS 6 64-bit in the client portal.

I have also tried all the recommendations that is in that link. I have also tried re-running ./build all d after making the adjustments and I end up with the error:
Code:
checking whether to include mime_magic support... no
checking for MING support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file

[root@server custombuild]#
 
Well that worked. but now I have run into another problem. It seems exim and proftpd werent enabled in the options.conf
So, I enabled them and tried to build them by running ./build exim
but I get alot of errors about not being able to make the files. See below:

Code:
[root@server custombuild]# ./build exim
File already exists:    exim-4.77.tar.gz
File already exists:    exim
File already exists:    exim_freebsd
File already exists:    exim_debian
Found /usr/local/directadmin/custombuild/exim-4.77.tar.gz
Extracting ...
Done.
--2012-01-11 16:57:36--  http://files1.directadmin.com/services/custombuild/Makefile
Resolving files1.directadmin.com... 216.144.254.90
Connecting to files1.directadmin.com|216.144.254.90|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 48561 (47K) [text/plain]
Saving to: `Local/Makefile'

100%[======================================>] 48,561      --.-K/s   in 0.1s    

2012-01-11 16:57:36 (403 KB/s) - `Local/Makefile' saved [48561/48561]

Trying to make exim...

>>> Creating links to source files...
Please install ExtUtils::Embed for /usr/bin/perl
grep: Makefile: No such file or directory
Missing CFLAGS_DYNAMIC inhibits building dynamic module lookup
../scripts/lookups-Makefile: line 115: lookups/Makefile.predynamic: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
grep: Makefile: No such file or directory
../scripts/lookups-Makefile: line 138: lookups/Makefile.predynamic: No such file or directory
make[1]: Entering directory `/usr/local/directadmin/custombuild/exim-4.77/build-Linux-x86_64'
make[1]: *** No targets specified and no makefile found.  Stop.
make[1]: Leaving directory `/usr/local/directadmin/custombuild/exim-4.77/build-Linux-x86_64'
make: *** [all] Error 2

*** The make has failed, would you like to try to make again? (y,n):


And then when I run ./build proftpd I get this following:
Code:
for lang in bg_BG en_US fr_FR it_IT ja_JP ko_KR ru_RU zh_CN zh_TW ; do \
                if [ -f $lang.mo ]; then \
                        if [ ! -d /usr/share/locale/$lang/LC_MESSAGES ]; then \
                                mkdir -p /usr/share/locale/$lang/LC_MESSAGES; \
                                chown ftp:ftp /usr/share/locale/$lang/LC_MESSAGES; \
                                chmod 0755 /usr/share/locale/$lang/LC_MESSAGES; \
                        fi; \
                        /usr/bin/install -c -o ftp -g ftp -m 0644 $lang.mo /usr/share/locale/$lang/LC_MESSAGES/proftpd.mo; \
                fi; \
        done
make[1]: Leaving directory `/usr/local/directadmin/custombuild/proftpd-1.3.4a/locale'
cp: cannot stat `/usr/local/directadmin/custombuild/proftpd_boot': No such file or directory
chmod: cannot access `/etc/init.d/proftpd': No such file or directory
error reading information on service proftpd: No such file or directory
./build: line 8425: [: missing `]'
Done proftpd.
pure-ftpd: no process killed
Restarting ProFTPd.
./build: line 8458: /etc/init.d/proftpd: No such file or directory
[root@server custombuild]#
 
Please install ExtUtils::Embed for /usr/bin/perl

this is for exim

for proftpd try ./build update and then try build again.

also

./build: line 8425: [: missing `]'

this is courios, let me know if build update fix it

Regards
 
Well I isntalled the ExtUtils for perl, and did ./build update.
I then launched ./build exim and it looks as if its building it, but its not creating the /etc/init.d upstart jobs.
heres the results:
Code:
cp exim_lock /usr/sbin
cp /usr/sbin/exim_checkaccess /usr/sbin/exim_checkaccess.O
cp exim_checkaccess /usr/sbin

Configuration file /etc/exim.conf already exists

Exim installation complete
Moving exim binary.
cp: cannot stat `/usr/local/directadmin/custombuild/exim_boot': No such file or directory
chmod: cannot access `/etc/init.d/exim': No such file or directory
error reading information on service exim: No such file or directory
Exim 4.77 Installed.
Restarting exim.
./build: line 2887: /etc/init.d/exim: No such file or directory
[root@server custombuild]#


And here I get similar results with ProFTPd. See them below:

Code:
cd lib/ && make install
make[1]: Entering directory `/usr/local/directadmin/custombuild/proftpd-1.3.4a/lib'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/usr/local/directadmin/custombuild/proftpd-1.3.4a/lib'
/usr/bin/install -c -o ftp -g ftp -m 0644 config.h /usr/include/proftpd/config.h
cd include/ && make install
make[1]: Entering directory `/usr/local/directadmin/custombuild/proftpd-1.3.4a/include'
make[1]: Leaving directory `/usr/local/directadmin/custombuild/proftpd-1.3.4a/include'
/usr/bin/install -c -o ftp -g ftp -m 0644 proftpd.pc /usr/lib/pkgconfig/proftpd.pc
test -z "1" || (cd locale/ && make install)
make[1]: Entering directory `/usr/local/directadmin/custombuild/proftpd-1.3.4a/locale'
if [ ! -f bg_BG.po ]; then \
                msginit --no-translator -i proftpd.pot -o bg_BG.po -l bg_BG; \
        fi
if [ -f bg_BG.po -a ! -f bg_BG.mo ]; then \
                 msgfmt -o bg_BG.mo bg_BG.po; \
        fi
if [ ! -f en_US.po ]; then \
                msginit --no-translator -i proftpd.pot -o en_US.po -l en_US; \
        fi
if [ -f en_US.po -a ! -f en_US.mo ]; then \
                 msgfmt -o en_US.mo en_US.po; \
        fi
if [ ! -f fr_FR.po ]; then \
                msginit --no-translator -i proftpd.pot -o fr_FR.po -l fr_FR; \
        fi
if [ -f fr_FR.po -a ! -f fr_FR.mo ]; then \
                 msgfmt -o fr_FR.mo fr_FR.po; \
        fi
if [ ! -f it_IT.po ]; then \
                msginit --no-translator -i proftpd.pot -o it_IT.po -l it_IT; \
        fi
if [ -f it_IT.po -a ! -f it_IT.mo ]; then \
                 msgfmt -o it_IT.mo it_IT.po; \
        fi
if [ ! -f ja_JP.po ]; then \
                msginit --no-translator -i proftpd.pot -o ja_JP.po -l ja_JP; \
        fi
if [ -f ja_JP.po -a ! -f ja_JP.mo ]; then \
                 msgfmt -o ja_JP.mo ja_JP.po; \
        fi
if [ ! -f ko_KR.po ]; then \
                msginit --no-translator -i proftpd.pot -o ko_KR.po -l ko_KR; \
        fi
if [ -f ko_KR.po -a ! -f ko_KR.mo ]; then \
                 msgfmt -o ko_KR.mo ko_KR.po; \
        fi
if [ ! -f ru_RU.po ]; then \
                msginit --no-translator -i proftpd.pot -o ru_RU.po -l ru_RU; \
        fi
if [ -f ru_RU.po -a ! -f ru_RU.mo ]; then \
                 msgfmt -o ru_RU.mo ru_RU.po; \
        fi
if [ ! -f zh_CN.po ]; then \
                msginit --no-translator -i proftpd.pot -o zh_CN.po -l zh_CN; \
        fi
if [ -f zh_CN.po -a ! -f zh_CN.mo ]; then \
                 msgfmt -o zh_CN.mo zh_CN.po; \
        fi
if [ ! -f zh_TW.po ]; then \
                msginit --no-translator -i proftpd.pot -o zh_TW.po -l zh_TW; \
        fi
if [ -f zh_TW.po -a ! -f zh_TW.mo ]; then \
                 msgfmt -o zh_TW.mo zh_TW.po; \
        fi
for lang in bg_BG en_US fr_FR it_IT ja_JP ko_KR ru_RU zh_CN zh_TW ; do \
                if [ -f $lang.mo ]; then \
                        if [ ! -d /usr/share/locale/$lang/LC_MESSAGES ]; then \
                                mkdir -p /usr/share/locale/$lang/LC_MESSAGES; \
                                chown ftp:ftp /usr/share/locale/$lang/LC_MESSAGES; \
                                chmod 0755 /usr/share/locale/$lang/LC_MESSAGES; \
                        fi; \
                        /usr/bin/install -c -o ftp -g ftp -m 0644 $lang.mo /usr/share/locale/$lang/LC_MESSAGES/proftpd.mo; \
                fi; \
        done
make[1]: Leaving directory `/usr/local/directadmin/custombuild/proftpd-1.3.4a/locale'
cp: cannot stat `/usr/local/directadmin/custombuild/proftpd_boot': No such file or directory
chmod: cannot access `/etc/init.d/proftpd': No such file or directory
error reading information on service proftpd: No such file or directory
./build: line 8425: [: missing `]'
Done proftpd.
pure-ftpd: no process killed
Restarting ProFTPd.
./build: line 8458: /etc/init.d/proftpd: No such file or directory
[root@server custombuild]#


I went back a bit in the above copy and paste if that helps. IF you need me to I can dump the stderr and stdin from both build attempts to a file and just attach it here uf that helps any.
 
ditto
Yeah, I doublechecked all those "pre requisites" were indeed installed. THis was a pretty normal install of CentOS 6.2. Did you enable any of the extra repos Like CentOS plus or even ELREPO or RPMForge?

Also, how did you perform the install?
I simply did ./setup.sh as root (I wget'd the file to /root).
Did if install exim and proftpd by default?
 
It was a vps from Linode.com, and I used Linode build of CentOS 6.0 64bit. I did not enable any special. First I did yum update to CentOS 6.2, then I installed the "pre requisites". I performed the install by wget http://www.directadmin.com/setup.sh and set permission on setup.sh to 755 and then I run ./setup.sh -during install I choose custombuild option, but it was another option I don't remember what it was called, that I choosed so that I get questions during install of what versions of php, mysql etc that I wanted.

proftpd was not installed by default if I remember correct, but exim was installed by default. I only had to upgrade exim to newest version. I am sorry I am not able to help. I would recommend you send email to support at directadmin.com

Edit: When upgrading exim in custombuild, it gave a error and I needed to yum install perl-ExtUtils-Embed http://help.directadmin.com/item.php?id=396 and then the upgrade of exim worked fine.
 
Last edited:
ditto,
What repo did you install exim from? I cannot seem to find it in any repos. I have EPEL, RPMForge and CentOSPlus enabled and cant find it :(
 
Exim should be installed with custombuild only. You should not use yum/rpm to install any service (powered and controlled by DirectaAdmin) but bind.

p.s. If you need qualified hands to do the quick installation for you, please feel free to contact me with PM, I'm ready to give you a commercial service (my details can be found by links in my signature below); or you could hire somebody else from these forums.
 
@BooDaddy, Exim was installed by Custombuild, and I upgraded it using Custombuild. Like zEitEr said you should not use yum/rpm to install services that is available by DirectAdmin, that will give you problems.
 
Error Exim and Proftpd whwn custombuild in centos 6.2 64bit

I have same error and i can't fix:


Code:
Exim installation complete
Moving exim binary.
cp: cannot stat `/usr/local/directadmin/custombuild/exim_boot': No such file or directory
chmod: cannot access `/etc/init.d/exim': No such file or directory
error reading information on service exim: No such file or directory
Exim 4.77 Installed.
Restarting exim.
./build: line 3022: /etc/init.d/exim: No such file or directory

and ProFTP too

Code:
chmod: cannot access `/etc/init.d/proftpd': No such file or directory
error reading information on service proftpd: No such file or directory
./build: line ***: [: missing `]'
Done proftpd.
pure-ftpd: no process killed
Restarting ProFTPd.
./build: line ***: /etc/init.d/proftpd: No such file or directory

i have installed all package require:
perl-ExtUtils-Embed
Common pre-install command
.... etc

Who can help me?
 
i have try many time

Code:
/usr/local/directadmin/scripts/exim.sh

=> alert:

Code:
Using installed majordomo.cf
Installing manual pages in /etc/virtual/majordomo/man

To finish the installation, 'su' to root and type:

	    make install-wrapper

If not installing the wrapper, type

	    cd /etc/virtual/majordomo; ./wrapper config-test

(no 'su' necessary) to verify the installation.
./install.sh -o root -g 2 \
		-m 4755 wrapper /etc/virtual/majordomo/wrapper

To verify that all the permissions and etc are correct,
run the command

	     cd /etc/virtual/majordomo; ./wrapper config-test
Starting DA-PopB4Smtp:

and

Code:
cd /usr/local/directadmin/custilmbuild
./build set exim yes
./build exim

Not work too :(
 
Back
Top