Installation fails on Ubuntu 8.04 LTS

Discussion in 'Installation/Configuration' started by dtech, Jun 17, 2008.

  1. dtech

    dtech New Member

    Hello,
    I've followed the exact howtoforge perfect-server configuration for my ubuntu 8.04 server installation, but the installation of ispconfig fails.
    Don't know if it matters, but the system it is a VPS under xen.
    I've installed gcc 3.4 as recommended in this thread, but that didn't do anything.
    I get the following errors:
    Code:
    gcc -DMONOLITH -I.. -I../include  -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DH                                              AVE_DLFCN_H -DOPENSSL_NO_KRB5 -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=in                                              t   -c -o s_server.o s_server.c
    /tmp/ccEOrYwF.s: Assembler messages:
    /tmp/ccEOrYwF.s:435: Error: Incorrect register `%rax' used with `l' suffix
    /tmp/ccEOrYwF.s:443: Error: Incorrect register `%rbx' used with `l' suffix
    /tmp/ccEOrYwF.s:463: Error: Incorrect register `%rdx' used with `l' suffix
    /tmp/ccEOrYwF.s:464: Error: Incorrect register `%rbx' used with `l' suffix
    make[1]: *** [s_server.o] Error 1
    make[1]: Leaving directory `/root/install_ispconfig/compile_aps/openssl-0.9.7m/a                                              pps'
    make: *** [sub_all] Error 1
    ERROR: Could not make OpenSSL
    cd: error retrieving current directory: getcwd: cannot access parent directories                                              : No such file or directory
    mv: cannot stat `binaries/aps.tar.gz': No such file or directory
    mv: cannot stat `binaries/spamassassin.tar.gz': No such file or directory
    mv: cannot stat `binaries/uudeview.tar.gz': No such file or directory
    mv: cannot stat `binaries/clamav.tar.gz': No such file or directory
    mv: cannot stat `binaries/cronolog': No such file or directory
    mv: cannot stat `binaries/cronosplit': No such file or directory
    mv: cannot stat `binaries/ispconfig_tcpserver': No such file or directory
    mv: cannot stat `binaries/zip': No such file or directory
    mv: cannot stat `binaries/unzip': 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
    mv: cannot stat `spamassassin': 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
    mv: cannot stat `uudeview': 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
    mv: cannot stat `clamav': 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 888: ispconfig_tmp/php/bin/php: No such file or directory
    ERROR: The PHP binary coming with ISPConfig does not work properly on your syste                                              m! The installation routine stops here!
    
    Can anyone help me? :confused:
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You are running a 64Bit kernel on a 32Bit Userland or the other way round. Please make sure that the architecture for kernel and userland are identical.
     
  3. dtech

    dtech New Member

    I don't know exactly what that means, but from what I make up from wikipedia is that the userland is the environment where software is in and the kernel is "the OS".
    Afaik both are x86_64. I just installed everything with apt-get so I don't think anything 64-bit is installed. As far as I can see (I don't have access to the host OS) both the OS host and the guest are x86_64 too.
    How exactly can I check which userland is used and what do I have to do to correct it?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    uname -a

    and the content of the file:

    /etc/apt/sources.list
     
  5. dtech

    dtech New Member

    uname -a:
    Code:
    Linux _hostname_ 2.6.22-14-xen #1 SMP Sun Oct 14 23:20:20 GMT 2007 x86_64 GNU/Linux
    /etc/apt/sources.list:
    Code:
    deb     http://ubuntu.apt-get.eu/ubuntu     gutsy main restricted universe mu$
    deb-src http://ubuntu.apt-get.eu/ubuntu     gutsy main restricted universe
    deb     http://ubuntu.apt-get.eu/ubuntu     gutsy-updates main restricted uni$
    deb-src http://ubuntu.apt-get.eu/ubuntu     gutsy-updates main restricted uni$
    deb http://security.ubuntu.com/ubuntu gutsy-security main restricted universe
    deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted univ$
    
    I see now too that "gutsy" (7.10) seems to be selected instead of "hoardy" (8.01). This is very strange since it is a standard image from my host. It might be there is an error in their image, especially since 8.01 has only been available very shortly.
    Might this be fixed by placing the good repository's, apt-get update and apt-get upgrade?
     
  6. dtech

    dtech New Member

    I've gotten a fresh image and changed the apt configuration from the start.
    Code:
    make[1]: Leaving directory `/root/install_ispconfig/compile_aps/openssl-0.9.7m/test'
    making links in tools...
    make[1]: Entering directory `/root/install_ispconfig/compile_aps/openssl-0.9.7m/tools'
    make[1]: Nothing to be done for `links'.
    make[1]: Leaving directory `/root/install_ispconfig/compile_aps/openssl-0.9.7m/tools'
    generating dummy tests (if needed)...
    make[1]: Entering directory `/root/install_ispconfig/compile_aps/openssl-0.9.7m/test'
    make[1]: Nothing to be done for `generate'.
    make[1]: Leaving directory `/root/install_ispconfig/compile_aps/openssl-0.9.7m/test'
    
    Configured for linux-x86_64.
    making all in crypto...
    make[1]: Entering directory `/root/install_ispconfig/compile_aps/openssl-0.9.7m/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 -DOPENSSL_NO_KRB5 -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int"'; \
            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 -DOPENSSL_NO_KRB5 -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int   -c -o cryptlib.o cryptlib.c
    In file included from /usr/include/features.h:354,
                     from /usr/include/stdio.h:28,
                     from cryptlib.c:59:
    /usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or directory
    cryptlib.c: In function 'CRYPTO_get_new_dynlockid':
    cryptlib.c:221: warning: value computed is not used
    cryptlib.c: In function 'CRYPTO_destroy_dynlockid':
    cryptlib.c:263: warning: value computed is not used
    make[1]: *** [cryptlib.o] Error 1
    make[1]: Leaving directory `/root/install_ispconfig/compile_aps/openssl-0.9.7m/crypto'
    make: *** [sub_all] Error 1
    ERROR: Could not make OpenSSL
    cd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    mv: cannot stat `binaries/aps.tar.gz': No such file or directory
    mv: cannot stat `binaries/spamassassin.tar.gz': No such file or directory
    mv: cannot stat `binaries/uudeview.tar.gz': No such file or directory
    mv: cannot stat `binaries/clamav.tar.gz': No such file or directory
    mv: cannot stat `binaries/cronolog': No such file or directory
    mv: cannot stat `binaries/cronosplit': No such file or directory
    mv: cannot stat `binaries/ispconfig_tcpserver': No such file or directory
    mv: cannot stat `binaries/zip': No such file or directory
    mv: cannot stat `binaries/unzip': 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
    mv: cannot stat `spamassassin': 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
    mv: cannot stat `uudeview': 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
    mv: cannot stat `clamav': 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 888: ispconfig_tmp/php/bin/php: No such file or directory
    ERROR: The PHP binary coming with ISPConfig does not work properly on your system! The installation routine stops here!
    
    Do I have such a strange installation?
     
    Last edited: Jun 18, 2008
  7. dtech

    dtech New Member

    I'm a little bit further. But I still get an error. Here's what I did:
    Code:
    # Remove gcc 4.2
    apt-get remove gcc g++
    
    # Install gcc 3.4
    apt-get install gcc-3.4 g++-3.4
    
    # Make symbolic links
    ln -s /usr/bin/gcc-3.4 /usr/bin/gcc
    ln -s /usr/bin/g++-3.4 /usr/bin/g++
    
    # Install AMD64 libraries
    apt-get install libc-amd64 libc6-dev-amd64
    
    It seemed to go on a bit longer, but I get the following error now:
    Code:
    gcc -DMONOLITH -I.. -I../include  -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int   -c -o openssl.o openssl.c
    rm -f openssl
    + gcc -o openssl -DMONOLITH -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int openssl.o verify.o asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o x509.o genrsa.o gendsa.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o spkac.o smime.o rand.o engine.o ocsp.o prime.o ../libssl.a ../libcrypto.a -ldl
    /usr/bin/ld: cannot find -lgcc_s_64
    collect2: ld returned 1 exit status
    make[1]: *** [openssl] Error 1
    make[1]: Leaving directory `/root/install_ispconfig/compile_aps/openssl-0.9.7m/apps'
    make: *** [sub_all] Error 1
    ERROR: Could not make OpenSSL
    cd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    mv: cannot stat `binaries/aps.tar.gz': No such file or directory
    mv: cannot stat `binaries/spamassassin.tar.gz': No such file or directory
    mv: cannot stat `binaries/uudeview.tar.gz': No such file or directory
    mv: cannot stat `binaries/clamav.tar.gz': No such file or directory
    mv: cannot stat `binaries/cronolog': No such file or directory
    mv: cannot stat `binaries/cronosplit': No such file or directory
    mv: cannot stat `binaries/ispconfig_tcpserver': No such file or directory
    mv: cannot stat `binaries/zip': No such file or directory
    mv: cannot stat `binaries/unzip': 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
    mv: cannot stat `spamassassin': 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
    mv: cannot stat `uudeview': 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
    mv: cannot stat `clamav': 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 888: ispconfig_tmp/php/bin/php: No such file or directory
    ERROR: The PHP binary coming with ISPConfig does not work properly on your system! The installation routine stops here!
    
     
  8. falko

    falko Super Moderator Howtoforge Staff

  9. dtech

    dtech New Member

    Doesn't work either.
    Code:
    root@host:~# apt-file update
    Can't get http://ubuntu.apt-get.eu/ubuntu/dists/hardy-updates/Contents-i386.gz
    Can't get http://security.ubuntu.apt-get.eu/ubuntu/dists/hardy-security/Contents-i386.gz
    
    
    http://archive.ubuntu.com/ubuntu/dists/hardy-updates/ neither has the file, so it's not a apt-get.eu problem.
     
  10. falko

    falko Super Moderator Howtoforge Staff

    What'S in /etc/apt/sources.list, and what's the output of
    Code:
    uname -a
    ?

    What does
    Code:
    dig ubuntu.apt-get.eu
    show?
     
  11. dtech

    dtech New Member

    Code:
    root@host:~# cat /etc/apt/sources.list
    deb http://ubuntu.apt-get.eu/ubuntu/ hardy main restricted
    deb http://ubuntu.apt-get.eu/ubuntu/ hardy-updates main restricted
    deb http://ubuntu.apt-get.eu/ubuntu/ hardy universe
    deb http://ubuntu.apt-get.eu/ubuntu/ hardy multiverse
    deb http://security.ubuntu.apt-get.eu/ubuntu hardy-security main restricted
    
    root@host:~# uname -a
    Linux dds124 2.6.22-14-xen #1 SMP Sun Oct 14 23:20:20 GMT 2007 x86_64 GNU/Linux
    root@host:~# dig ubuntu.apt-get.eu
    
    ; <<>> DiG 9.4.2 <<>> ubuntu.apt-get.eu
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42364
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;ubuntu.apt-get.eu.             IN      A
    
    ;; ANSWER SECTION:
    ubuntu.apt-get.eu.      3561    IN      A       85.92.129.242
    
    ;; Query time: 26 msec
    ;; SERVER: 85.92.145.252#53(85.92.145.252)
    ;; WHEN: Thu Jun 19 21:29:14 2008
    ;; MSG SIZE  rcvd: 51
    
     

Share This Page