64-bit Debian 3.1 Install Issue

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.

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

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.

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)

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.