HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   64-bit Debian 3.1 Install Issue (http://www.howtoforge.com/forums/showthread.php?t=6481)

naruto 27th August 2006 20:28

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.

till 28th August 2006 10:43

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.

naruto 28th August 2006 18:27

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.

naruto 29th August 2006 03:27

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....

till 29th August 2006 08:27

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

naruto 29th August 2006 16:37

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????????

naruto 30th August 2006 09:00

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 :mad: , 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

till 30th August 2006 11:27

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.

naruto 30th August 2006 15:39

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

falko 30th August 2006 15:42

What's the output of
Code:

uname -a
?


All times are GMT +2. The time now is 20:10.

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