View Single Post
  #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