Opened 10 years ago
Closed 10 years ago
#759 closed defect (invalid)
Build fail with custom path to PCRE, Nginx 1.8.0
Reported by: | zubkov-and.ya.ru | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | nginx-core | Version: | |
Keywords: | Cc: | ||
uname -a: | Linux host1 3.10.0-229.1.2.el7.x86_64 #1 SMP Fri Mar 27 03:04:26 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux | ||
nginx -V: | 1.8.0 |
Description
CentOS 7
# ./configure --prefix=/usr/local/nginx18 --with-http_ssl_module --with-http_addition_module --without-select_module --without-poll_module --without-http_charset_module --without-http_ssi_module --without-http_userid_module --without-http_access_module --without-http_autoindex_module --without-http_geo_module --without-http_map_module --without-http_split_clients_module --without-http_fastcgi_module --without-http_uwsgi_module --without-http_scgi_module --without-http_memcached_module --without-http_empty_gif_module --without-http_browser_module --without-mail_pop3_module --without-mail_imap_module --with-pcre=/usr/local/lib/ --without-mail_smtp_module
# make
make -f objs/Makefile
make[1]: Вход в каталог `/distr/nginx-1.8.0'
cd /usr/local/lib/ \
&& if [ -f Makefile ]; then make distclean; fi \
&& CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
./configure --disable-shared
/bin/sh: line 2: ./configure: Нет такого файла или каталога
make[1]: * usr/local/lib//Makefile Ошибка 127
make[1]: Выход из каталога `/distr/nginx-1.8.0'
make: * [build] Ошибка 2
Change History (2)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
The path which you use with the --with-pcre
switch does not points to the PCRE library sources. If you have PCRE already installed, use --with-cc-opt="-I /path/to/include" --with-ld-opt="-L /path/to/lib"
instead. See http://nginx.org/en/docs/configure.html for details.
# cat objs/Makefile
CC = cc
CFLAGS = -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g
CPP = cc -E
LINK = $(CC)
ALL_INCS = -I src/core \
CORE_DEPS = src/core/nginx.h \
CORE_INCS = -I src/core \
HTTP_DEPS = src/http/ngx_http.h \
HTTP_INCS = -I src/http \
objs/nginx: objs/src/core/nginx.o \
objs/ngx_modules.o: $(CORE_DEPS) \
objs/src/core/nginx.o: $(CORE_DEPS) \
objs/src/core/ngx_log.o: $(CORE_DEPS) \
objs/src/core/ngx_palloc.o: $(CORE_DEPS) \
objs/src/core/ngx_array.o: $(CORE_DEPS) \
objs/src/core/ngx_list.o: $(CORE_DEPS) \
objs/src/core/ngx_hash.o: $(CORE_DEPS) \
objs/src/core/ngx_buf.o: $(CORE_DEPS) \
objs/src/core/ngx_queue.o: $(CORE_DEPS) \
objs/src/core/ngx_output_chain.o: $(CORE_DEPS) \
objs/src/core/ngx_string.o: $(CORE_DEPS) \
objs/src/core/ngx_parse.o: $(CORE_DEPS) \
objs/src/core/ngx_inet.o: $(CORE_DEPS) \
objs/src/core/ngx_file.o: $(CORE_DEPS) \
objs/src/core/ngx_crc32.o: $(CORE_DEPS) \
objs/src/core/ngx_murmurhash.o: $(CORE_DEPS) \
objs/src/core/ngx_md5.o: $(CORE_DEPS) \
objs/src/core/ngx_rbtree.o: $(CORE_DEPS) \
objs/src/core/ngx_radix_tree.o: $(CORE_DEPS) \
objs/src/core/ngx_slab.o: $(CORE_DEPS) \
objs/src/core/ngx_times.o: $(CORE_DEPS) \
objs/src/core/ngx_shmtx.o: $(CORE_DEPS) \
objs/src/core/ngx_connection.o: $(CORE_DEPS) \
objs/src/core/ngx_cycle.o: $(CORE_DEPS) \
objs/src/core/ngx_spinlock.o: $(CORE_DEPS) \
objs/src/core/ngx_cpuinfo.o: $(CORE_DEPS) \
objs/src/core/ngx_conf_file.o: $(CORE_DEPS) \
objs/src/core/ngx_resolver.o: $(CORE_DEPS) \
objs/src/core/ngx_open_file_cache.o: $(CORE_DEPS) \
objs/src/core/ngx_crypt.o: $(CORE_DEPS) \
objs/src/core/ngx_proxy_protocol.o: $(CORE_DEPS) \
objs/src/core/ngx_syslog.o: $(CORE_DEPS) \
objs/src/event/ngx_event.o: $(CORE_DEPS) \
objs/src/event/ngx_event_timer.o: $(CORE_DEPS) \
objs/src/event/ngx_event_posted.o: $(CORE_DEPS) \
objs/src/event/ngx_event_accept.o: $(CORE_DEPS) \
objs/src/event/ngx_event_connect.o: $(CORE_DEPS) \
objs/src/event/ngx_event_pipe.o: $(CORE_DEPS) \
objs/src/os/unix/ngx_time.o: $(CORE_DEPS) \
objs/src/os/unix/ngx_errno.o: $(CORE_DEPS) \
objs/src/os/unix/ngx_alloc.o: $(CORE_DEPS) \
objs/src/os/unix/ngx_files.o: $(CORE_DEPS) \
objs/src/os/unix/ngx_socket.o: $(CORE_DEPS) \
objs/src/os/unix/ngx_recv.o: $(CORE_DEPS) \
objs/src/os/unix/ngx_readv_chain.o: $(CORE_DEPS) \
objs/src/os/unix/ngx_udp_recv.o: $(CORE_DEPS) \
objs/src/os/unix/ngx_send.o: $(CORE_DEPS) \
objs/src/os/unix/ngx_writev_chain.o: $(CORE_DEPS) \
objs/src/os/unix/ngx_channel.o: $(CORE_DEPS) \
objs/src/os/unix/ngx_shmem.o: $(CORE_DEPS) \
objs/src/os/unix/ngx_process.o: $(CORE_DEPS) \
objs/src/os/unix/ngx_daemon.o: $(CORE_DEPS) \
objs/src/os/unix/ngx_setaffinity.o: $(CORE_DEPS) \
objs/src/os/unix/ngx_setproctitle.o: $(CORE_DEPS) \
objs/src/os/unix/ngx_posix_init.o: $(CORE_DEPS) \
objs/src/os/unix/ngx_user.o: $(CORE_DEPS) \
objs/src/os/unix/ngx_process_cycle.o: $(CORE_DEPS) \
objs/src/os/unix/ngx_linux_init.o: $(CORE_DEPS) \
objs/src/event/modules/ngx_epoll_module.o: $(CORE_DEPS) \
objs/src/os/unix/ngx_linux_sendfile_chain.o: $(CORE_DEPS) \
objs/src/event/ngx_event_openssl.o: $(CORE_DEPS) \
objs/src/event/ngx_event_openssl_stapling.o: $(CORE_DEPS) \
objs/src/core/ngx_regex.o: $(CORE_DEPS) \
objs/src/http/ngx_http.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/ngx_http_core_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/ngx_http_special_response.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/ngx_http_request.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/ngx_http_parse.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/ngx_http_header_filter_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/ngx_http_write_filter_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/ngx_http_copy_filter_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/modules/ngx_http_log_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/ngx_http_request_body.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/ngx_http_variables.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/ngx_http_script.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/ngx_http_upstream.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/ngx_http_upstream_round_robin.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/ngx_http_parse_time.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/modules/ngx_http_static_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/modules/ngx_http_index_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/modules/ngx_http_chunked_filter_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/modules/ngx_http_range_filter_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/modules/ngx_http_headers_filter_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/modules/ngx_http_not_modified_filter_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/ngx_http_file_cache.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/modules/ngx_http_gzip_filter_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/ngx_http_postpone_filter_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/modules/ngx_http_addition_filter_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/modules/ngx_http_auth_basic_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/modules/ngx_http_limit_conn_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/modules/ngx_http_limit_req_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/modules/ngx_http_referer_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/modules/ngx_http_rewrite_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/modules/ngx_http_ssl_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/modules/ngx_http_proxy_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/modules/ngx_http_upstream_hash_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/modules/ngx_http_upstream_ip_hash_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/modules/ngx_http_upstream_least_conn_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
objs/src/http/modules/ngx_http_upstream_keepalive_module.o: $(CORE_DEPS) $(HTTP_DEPS) \
/usr/local/libpcre.h: /usr/local/libMakefile
/usr/local/libMakefile: objs/Makefile
/usr/local/lib.libs/libpcre.a: /usr/local/libMakefile
manpage: objs/nginx.8
objs/nginx.8: man/nginx.8 objs/ngx_auto_config.h
install: objs/nginx