loading nginx on 64bit os

Stefanita rares Dumitrescu lists at ruby-forum.com
Mon Jan 21 00:01:47 MSK 2008


Stefanita rares Dumitrescu wrote:
> 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
>>>> system?
>>>> 
>>>> > 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...)
>>> 
>>> Regards,
>> 
>> cd /usr \
>>         && make clean \
>>         && CFLAGS="-O2 -fomit-frame-pointer -pipe " CC="gcc" \
>>                 ./configure \
>>         && make libz.a
>> make[2]: Entering directory `/usr'
>> make[2]: *** No rule to make target `clean'.  Stop.
>> make[2]: Leaving directory `/usr'
>> make[1]: *** [/usr/libz.a] Error 2
>> make[1]: Leaving directory `/root/kit/nginx-0.6.25'
>> make: *** [build] Error 2
>> 
>> 
>> ./configure works fine. i do :
>> 
>> ./configure --prefix=/usr/local/nginx \
>> --conf-path=/etc/nginx.conf \
>> --error-log-path=/var/log/nginx \
>> --lock-path=/tmp/nginx.lock \
>> --user=nobody \
>> --group=nobody \
>> --with-http_ssl_module \
>> --with-http_addition_module \
>> --with-http_sub_module \
>> --with-http_flv_module \
>> --with-http_gzip_static_module \
>> --with-http_stub_status_module \
>> --with-mail \
>> --with-zlib=/usr \
>> --with-debug
>> 
>> once i do make .. the error is below.
> 
> pure 64bit .
> 
>                 src/mail/ngx_mail_proxy_module.c
> gcc -c -O -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter 
> -Wno-unused-function -Wunused-variable -Wunused-value -Werror -g  -I 
> src/core -I src/event -I src/event/modules -I src/os/unix -I /usr -I 
> objs \
>                 -o objs/ngx_modules.o \
>                 objs/ngx_modules.c
> cd /usr \
>         && make clean \
>         && CFLAGS="-O2 -fomit-frame-pointer -pipe " CC="gcc" \
>                 ./configure \
>         && make libz.a
> make[2]: Entering directory `/usr'
> make[2]: *** No rule to make target `clean'.  Stop.
> make[2]: Leaving directory `/usr'
> make[1]: *** [/usr/libz.a] Error 2
> make[1]: Leaving directory `/root/kit/nginx-0.6.25'
> make: *** [build] Error 2

i am stucked.... really.

cd /usr/lib \
        && make clean \
        && CFLAGS="-O2 -fomit-frame-pointer -pipe " CC="gcc" \
                ./configure \
        && make libz.a
make[2]: Entering directory `/usr/lib64'
make[2]: *** No rule to make target `clean'.  Stop.
make[2]: Leaving directory `/usr/lib64'
make[1]: *** [/usr/lib/libz.a] Error 2
make[1]: Leaving directory `/root/kit/nginx-0.6.25'
make: *** [build] Error 2

make stops

[root at mars nginx-0.6.25]# ls -la /usr/lib/libz.a
-rwxr-xr-x 1 root root 108660 Jan  9  2007 /usr/lib/libz.a

libz.a exists , and it's the 64 bit one.

[root at mars nginx-0.6.25]# rpm -qf /usr/lib/libz.a
zlib-devel-1.2.3-3

[root at mars nginx-0.6.25]# yum list |grep zlib
zlib.x86_64                              1.2.3-3 
installed
zlib-devel.x86_64                        1.2.3-3 
installed
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list