loading nginx on 64bit os
mdounin at mdounin.ru
Sun Jan 20 23:38:48 MSK 2008
On Sun, Jan 20, 2008 at 08:54:43PM +0100, Stefanita rares Dumitrescu wrote:
>Adrian Perez wrote:
>> El Fri, 18 Jan 2008 09:36:41 -0800
>> Cliff Wells <cliff at develix.com> escribi??:
>>> Why do you need to specify libdir? Are you running a hybrid 32/64-bit
>>> > if anyone got it to work on 64bit linux based os, please give me the
>>> > hint i need to get the show rolling.
>>> I'm running 64-bit (Opteron) on Gentoo, but didn't do anything special
>>> to make it work.
>> Gentoo on x86-64 systems follows the FHS strictly, so /lib is a
>> symlink to /lib64 and /usr/lib to /usr/lib64... that's why you don't
>> need anything special to link against 64-bit libraries. Other distros
>> do the opposite (i.e. linking /lib to /lib32 and so on) because that
>> is ??supposed to be more compatible??.
>> I haven't used pure 64-bit systems, but it is supposed that /lib
>> and /usr/lib are not symlinks but true directories in that case. (At
>> least that's what I read in the FHS...)
>cd /usr \
> && make clean \
> && CFLAGS="-O2 -fomit-frame-pointer -pipe " CC="gcc" \
> ./configure \
> && make libz.a
>make: Entering directory `/usr'
>make: *** No rule to make target `clean'. Stop.
>make: Leaving directory `/usr'
>make: *** [/usr/libz.a] Error 2
>make: Leaving directory `/root/kit/nginx-0.6.25'
>make: *** [build] Error 2
>./configure works fine. i do :
>./configure --prefix=/usr/local/nginx \
There is no zlib sources in /usr, I suppose. So remove '--with-zlib=/usr'
from configure and try again.
More information about the nginx