<br><br><div class="gmail_quote">21 августа 2010 г. 14:37 пользователь m.ponomarchuk <span dir="ltr"><<a href="mailto:m.ponomarchuk@gmail.com">m.ponomarchuk@gmail.com</a>></span> написал:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Достался сервер с CentOS и nginx.<br>
Задача - мониторить nginx.<br>
Надо доставить модуль stub_status.<br>
Проверка показала.<br>
/opt/nginx/sbin/nginx -V<br>
nginx version: nginx/0.7.64<br>
built by gcc 4.1.2 20080704 (Red Hat 4.1.2-46)<br>
configure arguments: --prefix=/opt/nginx --with-pcre=/tmp/pcre-8.00 --add-module=/opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/nginx <br>
<br>
Делаю<br>
wget <a href="http://sysoev.ru/nginx/nginx-0.7.65.tar.gz" target="_blank">http://sysoev.ru/nginx/nginx-0.7.65.tar.gz</a><br>
tar -xvf nginx-0.7.65.tar.gz<br>
<br>
./configure --prefix=/opt/nginx --with-pcre=/tmp/pcre-8.00 --add-module=/opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/nginx--with-http_stub_status_module <br>
<br>
Ход сборки конфига<br>
[root@srv-4-0 nginx-0.7.65]# ./configure --prefix=/opt/nginx --with-pcre=/tmp/pcre-8.00 --add-module=/opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/nginx --with-http_stub_status_module<br>
checking for OS<br>
+ Linux 2.6.18-164.15.1.el5 x86_64<br>
checking for C compiler ... found<br>
+ using GNU C compiler<br>
+ gcc version: 4.1.2 20080704 (Red Hat 4.1.2-46)<br>
checking for gcc -pipe switch ... found<br>
checking for gcc variadic macros ... found<br>
checking for C99 variadic macros ... found<br>
checking for unistd.h ... found<br>
checking for inttypes.h ... found<br>
checking for limits.h ... found<br>
checking for sys/filio.h ... not found<br>
checking for sys/param.h ... found<br>
checking for sys/mount.h ... found<br>
checking for sys/statvfs.h ... found<br>
checking for crypt.h ... found<br>
checking for Linux specific features<br>
checking for epoll ... found<br>
checking for sendfile() ... found<br>
checking for sendfile64() ... found<br>
checking for sys/prctl.h ... found<br>
checking for prctl(PR_SET_DUMPABLE) ... found<br>
checking for sched_setaffinity() ... found<br>
checking for crypt_r() ... found<br>
checking for sys/vfs.h ... found<br>
checking for nobody group ... found<br>
checking for poll() ... found<br>
checking for /dev/poll ... not found<br>
checking for kqueue ... not found<br>
checking for crypt() ... not found<br>
checking for crypt() in libcrypt ... found<br>
checking for O_DIRECT ... found<br>
checking for F_NOCACHE ... not found<br>
checking for directio() ... not found<br>
checking for statfs() ... found<br>
checking for statvfs() ... found<br>
checking for dlopen() ... not found<br>
checking for dlopen() in libdl ... found<br>
checking for sched_yield() ... found<br>
configuring additional modules<br>
adding module in /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/nginx <br>
+ ngx_http_passenger_module was configured<br>
checking for system md library ... not found<br>
checking for system md5 library ... not found<br>
checking for OpenSSL md5 crypto library ... found<br>
checking for zlib library ... found<br>
creating objs/Makefile<br>
checking for int size ... 4 bytes<br>
checking for long size ... 8 bytes<br>
checking for long long size ... 8 bytes<br>
checking for void * size ... 8 bytes<br>
checking for uint64_t ... found<br>
checking for sig_atomic_t ... found<br>
checking for sig_atomic_t size ... 4 bytes<br>
checking for socklen_t ... found<br>
checking for in_addr_t ... found<br>
checking for in_port_t ... found<br>
checking for rlim_t ... found<br>
checking for uintptr_t ... uintptr_t found<br>
checking for system endianess ... little endianess<br>
checking for size_t size ... 8 bytes<br>
checking for off_t size ... 8 bytes<br>
checking for time_t size ... 8 bytes<br>
checking for setproctitle() ... not found<br>
checking for pread() ... found<br>
checking for pwrite() ... found<br>
checking for strerror_r() ... found but is not working<br>
checking for gnu style strerror_r() ... found<br>
checking for localtime_r() ... found<br>
checking for posix_memalign() ... found<br>
checking for memalign() ... found<br>
checking for mmap(MAP_ANON|MAP_SHARED) ... found<br>
checking for mmap("/dev/zero", MAP_SHARED) ... found<br>
checking for System V shared memory ... found<br>
checking for struct msghdr.msg_control ... found<br>
checking for ioctl(FIONBIO) ... found<br>
checking for struct tm.tm_gmtoff ... found<br>
checking for struct dirent.d_namlen ... not found<br>
checking for struct dirent.d_type ... found<br>
<br>
Configuration summary<br>
+ using PCRE library: /tmp/pcre-8.00<br>
+ OpenSSL library is not used<br>
+ md5: using system crypto library<br>
+ sha1 library is not used<br>
+ using system zlib library<br>
<br>
nginx path prefix: "/opt/nginx"<br>
nginx binary file: "/opt/nginx/sbin/nginx"<br>
nginx configuration prefix: "/opt/nginx/conf"<br>
nginx configuration file: "/opt/nginx/conf/nginx.conf"<br>
nginx pid file: "/opt/nginx/logs/nginx.pid"<br>
nginx error log file: "/opt/nginx/logs/error.log"<br>
nginx http access log file: "/opt/nginx/logs/access.log"<br>
nginx http client request body temporary files: "client_body_temp"<br>
nginx http proxy temporary files: "proxy_temp"<br>
nginx http fastcgi temporary files: "fastcgi_temp"<br>
<br>
Пытаюсь собрать<br>
<br>
make<br>
make -f objs/Makefile<br>
make[1]: Entering directory `/root/nginx-0.7.65'<br>
cd /tmp/pcre-8.00 \<br>
&& if [ -f Makefile ]; then make distclean; fi \<br>
&& CC="gcc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \<br>
./configure --disable-shared<br>
/bin/sh: line 0: cd: /tmp/pcre-8.00: No such file or directory<br>
make[1]: *** [/tmp/pcre-8.00/Makefile] Error 1<br>
make[1]: Leaving directory `/root/nginx-0.7.65'<br>
make: *** [build] Error 2<br>
<br>
Ребят - что ему не нравится?<br>
<br>
_______________________________________________<br>
nginx-ru mailing list<br>
<a href="mailto:nginx-ru@nginx.org" target="_blank">nginx-ru@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx-ru" target="_blank">http://nginx.org/mailman/listinfo/nginx-ru</a><br>
</blockquote></div><br><br><div>--with-pcre=/tmp/pcre-8.00<br clear="all"><br></div><div>/bin/sh: line 0: cd: /tmp/pcre-8.00: No such file or directory<br>make[1]: *** [/tmp/pcre-8.00/Makefile] Error 1<br></div><div><br>
</div><div>Фирштейн?</div><div><br>-- <br>Петровский Александр / Alexander Petrovsky,<br><br>ICQ: 350342118<br>Jabber: <a href="mailto:juise@jabber.ru">juise@jabber.ru</a><br>Phone: +7 914 8 820 815<br>
</div>