3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

macでnginxインストール時のエラー対応方法

Last updated at Posted at 2012-12-07

対象OS:OS X 10.8.2
対象バージョン:1.2.5

nginxインストールしようとしてこんなエラーが出た

Undefined symbols for architecture x86_64:
  "_pcre_free_study", referenced from:
      _ngx_pcre_free_studies in ngx_regex.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [objs/nginx] Error 1
make: *** [build] Error 2

エラーが出たときのconfigure

./configure --conf-path=/etc/nginx/nginx.conf \                                                                                                                                                                                                                                      [~/tmp/nginx-1.2.5]
--prefix=/usr/local/nginx \
--error-log-path=/var/log/nginx/error.log \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--sbin-path=sbin/nginx \
--without-http-cache \
--with-http_ssl_module \
--without-http_access_module \
--without-http_autoindex_module \
--without-http_empty_gif_module \
--without-http_ssi_module \
--without-http_auth_basic_module \
--without-http_browser_module \
--without-http_geo_module \
--without-http_referer_module \
--with-http_gzip_static_module \
--without-http_charset_module \
--without-http_fastcgi_module \
--without-http_geo_module \
--without-http_scgi_module \
--without-http_split_clients_module \
--without-http_userid_module \
--without-http_upstream_ip_hash_module \
--http-proxy-temp-path=/var/tmp/nginx/proxy_temp \
--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp \
--http-client-body-temp-path=/var/tmp/nginx/client_body_temp \
--http-log-path=/var/log/nginx/access.log \
--without-http_proxy_module \
--add-module=../nginx_tcp_proxy_module/ \
--with-debug

以下のオプションを追加してやり直し

--with-ld-opt="-L /usr/local/lib"
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?