Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th August 2006, 20:28
naruto naruto is offline
Junior Member
 
Join Date: Aug 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Question 64-bit Debian 3.1 Install Issue

Hello.

I'm having some problems with my linux distribution. I followed perfect setup for debian and everything went ok.

On Ispconfig Install, I get:
Code:
Configured for linux-x86_64.
making all in crypto...
make[1]: Entering directory `/home/downloads/install_ispconfig/compile_aps/openssl-0.9.8b/crypto'
( echo "#ifndef MK1MF_BUILD"; \
echo '  /* auto-generated by crypto/Makefile for crypto/cversion.c */'; \
echo '  #define CFLAGS "gcc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int -DMD5_ASM"'; \
echo '  #define PLATFORM "linux-x86_64"'; \
echo "  #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
echo '#endif' ) >buildinf.h
gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int -DMD5_ASM   -c -o cryptlib.o cryptlib.c
cc1: sorry, unimplemented: 64-bit mode not compiled in
make[1]: *** [cryptlib.o] Error 1
make[1]: Leaving directory `/home/downloads/install_ispconfig/compile_aps/openssl-0.9.8b/crypto'
make: *** [build_crypto] Error 1
ERROR: Could not make OpenSSL
cd: could not get current directory: getcwd: cannot access parent directories: No such file or directory
cd: could not get current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
mv: cannot stat `binaries/aps.tar.gz': No such file or directory
job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
mv: cannot stat `binaries/spamassassin.tar.gz': No such file or directory
job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
mv: cannot stat `binaries/uudeview.tar.gz': No such file or directory
job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
mv: cannot stat `binaries/clamav.tar.gz': No such file or directory
job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
mv: cannot stat `binaries/cronolog': No such file or directory
job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
mv: cannot stat `binaries/cronosplit': No such file or directory
job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
mv: cannot stat `binaries/ispconfig_tcpserver': No such file or directory
job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
mv: cannot stat `binaries/zip': No such file or directory
job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
mv: cannot stat `binaries/unzip': No such file or directory
job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
tar: spamassassin.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
mv: cannot stat `spamassassin': No such file or directory
job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
tar: uudeview.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
mv: cannot stat `uudeview': No such file or directory
job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
tar: clamav.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
mv: cannot stat `clamav': No such file or directory
job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
tar: aps.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
./setup2: line 816: ispconfig_tmp/php/bin/php: No such file or directory
job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
ERROR: The PHP binary coming with ISPConfig does not work properly on your system! The installation routine stops here!
job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
I tried the following but still the same:
http://www.howtoforge.com/forums/showthread.php?t=127
Although it is not my error, I change ./configure line. yum program seems to be only to fedora (I don't know. It is listed on unstable packages. Would work anyway?) libmysqlclient or zlib ?? My problem starts with something called cryptlib..don't know if are related.

http://www.howtoforge.com/forums/showthread.php?t=286
yum program again.

http://www.howtoforge.com/forums/showthread.php?t=1626
Suse installation. yast2 for debian seems an unfinished project

There are some others posts but they are involved with zilb, other errors or other distributions. Also my compile file is slightly different. Maybe it is due to recent versions.

Code:
PATH="/home/admispconfig/ispconfig/tools/clamav/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/libexec"

OPENSSL=openssl-0.9.8b
APACHE=apache_1.3.37
MOD_SSL=mod_ssl-2.8.28-1.3.37
PHP=php-5.1.4
CLAMAV=clamav-0.88.4
CLAMASSASSIN=clamassassin-1.2.3
UUDEVIEW=uudeview-0.5.20
SPAMASSASSIN=Mail-SpamAssassin-3.1.3
CRONOLOG=cronolog-1.6.2
ZIP=zip-2.3
UNZIP=unzip-5.50

APPLICATION_NAME=ispconfig
INSTALL_ROOT=/root/${APPLICATION_NAME}
INSTALL_ROOT_TMP=${INSTALL_ROOT}_tmp
COMPILE_DIR=`pwd`
ARCH=`uname -m`

if [ $ARCH == "x86_64" ]; then
  WITH_OPENSSL="--with-openssl"
  if echo "$dist" | grep -q "fedora" || echo "$dist" | grep -q "suse" || echo "$dist" | grep -q "centos" ; then
    mkdir -p /usr/local/lib/mysql &> /dev/null
    ln -s /usr/include/mysql /usr/local/lib/mysql/include &> /dev/null
    ln -s /usr/lib64/mysql /usr/local/lib/mysql/lib &> /dev/null
    WITH_MYSQL="--with-mysql=/usr/local/lib/mysql"
    WITH_ZLIB_DIR="--with-zlib-dir=/usr/lib64"
  elif echo "$dist" | grep -q "mdk" || echo "$dist" | grep -q "mdr" ; then
    mkdir -p /usr/local/lib/mysql &> /dev/null
    ln -s /usr/include/mysql /usr/local/lib/mysql/include &> /dev/null
    ln -s /usr/lib64 /usr/local/lib/mysql/lib &> /dev/null

    WITH_MYSQL="--with-mysql=/usr/local/lib/mysql"
    WITH_ZLIB_DIR="--with-zlib-dir=/usr/lib64"
  else
    WITH_MYSQL="--with-mysql=/usr"
    WITH_ZLIB_DIR=""
  fi
else
  WITH_OPENSSL="--with-openssl=${INSTALL_ROOT}/openssl"
  WITH_MYSQL="--with-mysql=/usr"
  WITH_ZLIB_DIR=""
fi

error ()
{
  echo "ERROR: $1"
  if [ -d ${INSTALL_ROOT} ]
  then
    rm -fr ${INSTALL_ROOT}
  fi
  if [ -d ${INSTALL_ROOT_TMP} ]


fi

error ()
{
  echo "ERROR: $1"
  if [ -d ${INSTALL_ROOT} ]
  then
    rm -fr ${INSTALL_ROOT}
  fi
  if [ -d ${INSTALL_ROOT_TMP} ]
  then
    rm -fr ${INSTALL_ROOT_TMP}
  fi
  cd ${COMPILE_DIR}
  rm -fr ${OPENSSL}
  rm -fr ${APACHE}
  rm -fr ${MOD_SSL}
  rm -fr ${PHP}
  rm -fr ${CLAMAV}
  rm -fr ${CLAMASSASSIN}
  rm -fr ${SPAMASSASSIN}
  rm -fr ${UUDEVIEW}
  rm -fr ${CRONOLOG}
  rm -fr ${ZIP}
  rm -fr ${UNZIP}
  exit 1
}

tar xvfz ${OPENSSL}.tar.gz || error "Could not unpack OpenSSL"
tar xvfz ${APACHE}.tar.gz || error "Could not unpack Apache"
tar xvfz ${MOD_SSL}.tar.gz || error "Could not unpack mod_ssl"
tar xvfz ${PHP}.tar.gz || error "Could not unpack PHP"
tar xvfz ${CLAMAV}.tar.gz || error "Could not unpack ClamAV"
tar xvfz ${CLAMASSASSIN}.tar.gz || error "Could not unpack ClamAssassin"
tar xvfz ${SPAMASSASSIN}.tar.gz || error "Could not unpack SpamAssassin"
tar xvfz ${UUDEVIEW}.tar.gz || error "Could not unpack uudeview"
tar xvfz ${CRONOLOG}.tar.gz || error "Could not unpack cronolog"
tar xvfz ${ZIP}.tar.gz || error "Could not unpack zip"

cd ${OPENSSL}
./config --prefix=${INSTALL_ROOT}/openssl || error "Could not configure OpenSSL"
make || error "Could not make OpenSSL"
make install || error "Could not install OpenSSL"

cd ../${MOD_SSL}
./configure --with-apache=../${APACHE} --with-ssl=${INSTALL_ROOT}/openssl --prefix=${INSTALL_ROOT}/httpd --enable-module=so || error "Could not configure Ap$
cd ../${APACHE}
make || error "Could not make Apache"
make certificate TYPE=custom  || error "Could not make certificate for Apache"
make install || error "Could not install Apache"

cd ../${PHP}
./configure --with-apxs=${INSTALL_ROOT}/httpd/bin/apxs --enable-track-vars --enable-sockets --enable-mbstring=all --with-config-file-path=${INSTALL_ROOT}/ph$
make || error "Could not make PHP"
make install || error "Could not install PHP"
ln -s ${INSTALL_ROOT}/php/bin/php ${INSTALL_ROOT}/php/php
I did not post all file because it is too long

Thank you for your time and your great system.
Reply With Quote
Sponsored Links
  #2  
Old 28th August 2006, 10:43
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,461
Thanks: 813
Thanked 5,248 Times in 4,113 Posts
Default

Please saerch with apt for the openssl devel packages and install them. There might be a package for openssl devel 32bit downwards compatibility, install this package too.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 28th August 2006, 18:27
naruto naruto is offline
Junior Member
 
Join Date: Aug 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy

Hello Till. thanks for your time.

This is what I did.

I searched on apt (maybe there is another way to do it so I post whole process.)

Code:
server:# apt-cache search openssl devel
libaws-dev - Ada Web Server development files
libqssl-dev - qssl development files
libssl-dev - SSL development libraries, header files and documentation
libapache-mod-php4 - server-side, HTML-embedded scripting language (apache 1.3 module)
libapache2-mod-php4 - server-side, HTML-embedded scripting language (apache 2.0 module)
php4-cgi - server-side, HTML-embedded scripting language (CGI binary)
php4-cli - command-line interpreter for the php4 scripting language
I installed all first listed dev packages with no positive results. (libssl-dev was already installed)
Same Error =
Code:
gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int -DMD5_ASM   -c -o cryptlib.o cryptlib.c
cc1: sorry, unimplemented: 64-bit mode not compiled in
make[1]: *** [cryptlib.o] Error 1
Maybe I must add another address to apt source list? Another way to search?

thanks.
Reply With Quote
  #4  
Old 29th August 2006, 03:27
naruto naruto is offline
Junior Member
 
Join Date: Aug 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Lost

This is what i've tried so far.

I changed openssl tar file included in compile_aps(openssl-0.9.8b.tar.gz ), with corresponding version on my machine(openssl-0.9.7e.tar.gz ). I modified compile file to use this version on setup, but I got same error.

I read somewhere that current gcc compiler (version) would be the problem so I tried to find something. I found lib64gcc1 - GCC support library (64bit) , I installed it and tried again with no positive result.

Finally I read something about "gcc doesn't like -m64 option" so I tried to compile openssl without Ispconfig (following steps in compile file). I changed that option on a file inside openssl but it generate another, more complex, error.

I'm not sure if tweaking openssl files is going to do the trick. Maybe it is related with gcc. Please help....
Reply With Quote
  #5  
Old 29th August 2006, 08:27
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,461
Thanks: 813
Thanked 5,248 Times in 4,113 Posts
Default

Normally it is not nescessary to change anything in the ISPCOnfig compile script as ISPConfig compiles fine on all supported linux distributions 32 and 64 bit.

Which result do you get for:

apt-cache search libssl
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 29th August 2006, 16:37
naruto naruto is offline
Junior Member
 
Join Date: Aug 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy

Hi Till, thanks for your answer.

Code:
server:~# apt-cache search libssl
dcmtk - The OFFIS DICOM toolkit command line utilities
libdcmtk0 - The OFFIS DICOM toolkit runtime libraries
libdcmtk0-dev - The OFFIS DICOM toolkit development libraries and headers
libssl-dev - SSL development libraries, header files and documentation
libssl0.9.6 - SSL shared libraries (old version)
libssl0.9.7 - SSL shared libraries
libssl-dev and libssl0.97 are already in newest version.
I installed libssl0.9.6 but same error appeared.

It always get stuck here (lines on compile file):

Code:
cd ${OPENSSL}
./config --prefix=${INSTALL_ROOT}/openssl || error "Could not configure OpenSSL"
make || error "Could not make OpenSSL"
make install || error "Could not install OpenSSL"
Maybe something about make command????????
Reply With Quote
  #7  
Old 30th August 2006, 09:00
naruto naruto is offline
Junior Member
 
Join Date: Aug 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I finally did it.

I tweaked compile file to force openssl configuration on a linux generic32.

Changed line
Code:
./config --prefix=.......
to
Code:
./Configure linux-generic32 --prefix=......
I'm testing now Isp config. Everything works (dns, ftp, mail, ...) except some issue on iptables related, again , on my kernel.

Code:
iptables v1.2.11: can't initialize iptables table `filter': Module is wrong version
Some time ago someone post similar issue (http://www.howtoforge.com/forums/showthread.php?t=5665) but it seemed to be fixed without no much effort. This is not my case (unfortunately )

I'm using it on a real machine (no VM) and Ispconfig firewall is off.

Do you know what I should do? get rid of my kernel maybe?? (hope not)
tweaking openssl will make my system unstable??

Thanks
Reply With Quote
  #8  
Old 30th August 2006, 11:27
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,461
Thanks: 813
Thanked 5,248 Times in 4,113 Posts
Default

Quote:
Originally Posted by naruto
Do you know what I should do? get rid of my kernel maybe?? (hope not)
Is this a debian kernel or did you compile your kernel manually?

Quote:
tweaking openssl will make my system unstable??
I do not think that this is related to the OpenSSL problem.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 30th August 2006, 15:39
naruto naruto is offline
Junior Member
 
Join Date: Aug 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Till.

I suppose it is a debian kernel. I downloaded it from apt 2.6.8-12-em64t-p4-smp just to make work my two Xeon Processors.

Any ideas? thanks
Reply With Quote
  #10  
Old 30th August 2006, 15:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,732 Times in 2,569 Posts
 
Default

What's the output of
Code:
uname -a
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HowTo install ISPConfig on a STRATO-Server with Debian 3.1 TobiasTM Tips/Tricks/Mods 12 15th July 2008 10:08
Debian 3.1 install - Autoresponder not working jockstrap Installation/Configuration 4 15th July 2006 12:58
2.6.12 debian install problems s2angel Installation/Configuration 6 31st December 2005 13:21
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 14:42
Why install from source instead of debian packages? TheMike HOWTO-Related Questions 3 27th July 2005 10:40


All times are GMT +2. The time now is 17:54.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.