64-bit Debian 3.1 Install Issue

Discussion in 'Installation/Configuration' started by naruto, Aug 27, 2006.

  1. naruto

    naruto New Member

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

    till Super Moderator Staff Member ISPConfig Developer

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

    naruto New Member

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

    naruto New Member

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

    till Super Moderator Staff Member ISPConfig Developer

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

    naruto New Member

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

    naruto New Member

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

    till Super Moderator Staff Member ISPConfig Developer

    Is this a debian kernel or did you compile your kernel manually?

    I do not think that this is related to the OpenSSL problem.
     
  9. naruto

    naruto New Member

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

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    uname -a
    ?
     
  11. naruto

    naruto New Member

    Hi falko:

    uname -a (Server is being tested unded local enviroment)


    Code:
    Linux server.example.com 2.6.8-12-em64t-p4-smp #1 SMP Sat Jul 15 10:28:16 UTC 2006 x86_64 GNU/Linux
     
  12. falko

    falko Super Moderator Howtoforge Staff

    That's a normal Debian kernel. How did you install it?
     
  13. naruto

    naruto New Member

    Thanks for your answer falko. I thought I was forgotten ...:(

    Well I installed it from apt (apt-get install ....., I found it first with apt-cache search. - in apt source list is also the address you point to use in php5 how to)

    I'm searching everywhere and it seems I must recompile my kernel. I read your how to on kernel compilation but all source kernel files are from 2.4.x versions and my (according to apt) kernel source is 2.6.8 generic amd64. (can't find it)

    Would you please guide me on what kernel I must use in my server?
    I did install my kernel because it iwas suppossed to get whole advantange of two Xeon 3.0Ghz em64, ht, blabla configuration. But maybe it also work with something else without this kind of conflicts.

    Thank you so much.
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    I think if you compile your own kernel and you follow falkos kernel compile guide, all kernel modules will be replaced by the correct versions for this kernel and your problem might be solved.
     
  15. naruto

    naruto New Member

    Solved

    I solved all issues !!!!!

    This is what I found. (Maybe it is obvious but might help someone)

    When I first intalled debian, I used a i386 distribution of the net install and then I changed my kernel to one
    who could fit my 64 bit hardware system configuration.

    This is called 32 bit userspace in a 64 bit kernel, which often gives lots of conflicts until you recompile your kernel, or force some 32 bit
    behaviour of the programs installed. (I need to aplied both to make work openssl and iptables)

    Another solution (which I didn't test) is to install affected programs, from a 64 bit distribution apt source (e.g: http://ftp.us.debian.org/debian-amd64/) or
    from the amd64 site (amd64.debian.net)

    Maybe works but probably you'll get some errors at download (apt-get) because they are marked as unstable.


    As conclusion, upgrading to a 64 bit kernel doesn't change your first system architecture -i386, (Maybe is possible but can't find how) unless
    you start with a 64 bit distribution. When you have everyting running in 64 bit no conflicts appear and everything goes just fine.

    This is what I did and after a good installation, I followed falko's debian how to and Ispconfig manual with no errors. (dns, mail, ftp access, php,
    webmail (squirrel, uebimiau), user access...everything what I've tested so far, is working as expected)

    Unfortunately, having a good install from a amd64 net install wasn't as easy as i386. Whole distribution is marked as unstable and when downloading files
    with apt, it shows some errors. You must do some tricks to let apt works (at least in my case)


    Just to help those recompiling a debian kernel, I followed falko's how to with some important notes found here: http://www.linuxquestions.org/questions/showthread.php?t=206992

    It says that you must use debian kernel source instead of general sources because debian includes some special patches. Also I used the command --intrd
    (refer to the above link ) because falko's way to compile didn't generate a intrd.img file.
    I tried to use the latest i386 general source kernel with no positive solutions. After using debian kernel source it works.



    Nice to see falko and till's opinions about this. Maybe they can add something or just correct me if this is wrong.

    Thanks for your help and for your great system Till and Falko.


    Hope this could aid someone.
     

Share This Page