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)
-   -   Installation fails on Ubuntu 8.04 LTS (http://www.howtoforge.com/forums/showthread.php?t=24277)

dtech 17th June 2008 17:17

Installation fails on Ubuntu 8.04 LTS
 
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:

till 17th June 2008 18:23

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.

dtech 17th June 2008 19:55

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?

till 17th June 2008 20:11

Please post the output of:

uname -a

and the content of the file:

/etc/apt/sources.list

dtech 17th June 2008 20:20

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?

dtech 18th June 2008 16:25

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?

dtech 18th June 2008 17:10

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!


falko 18th June 2008 18:34

Can you search for gcc_s_64 using apt-file?
http://www.howtoforge.com/apt_file_debian_ubuntu

dtech 18th June 2008 20:19

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.

falko 19th June 2008 16:25

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?


All times are GMT +2. The time now is 01:24.

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