Mac compilation openresty undefined symbols for architecture x86_64

Source: Internet
Author: User

./configure--prefix=/usr/local/openresty--with-luajit--with-http_sub_module--add-module=.. /ngx_http_substitutions_filter_module-0.6.4

The Make times are wrong

-wl,-rpath,/usr/local/openresty/luajit/lib-l/applications/ngx_openresty-1.4.3.6/build/luajit-root/usr/local/ Openresty/luajit/lib-lluajit-5.1-lm-pagezero_size 10000-image_base 100000000-lpcre-lssl-lcrypto-lzundefined Symbo ls for architecture x86_64: "_pcre_free_study", referenced from: _ngx_http_lua_regex_free_study_data in Ngx_http_lua  _regex.old:symbol (s) not found for Architecture X86_64clang:error:linker command failed with exit code 1 (use-v to see Invocation) MAKE[2]: * * [Objs/nginx] Error 1make[1]: * * [Build] Error 2make: * * * [ALL] Error 2


Workaround:

# Mdfind Pcre | grep usr/local

Find the directory where Pcre/usr/local/cellar/pcre/8.38/



Modify Parameters:

#./configure--prefix=/usr/local/openresty--with-luajit--with-http_sub_module--add-module=. /ngx_http_substitutions_filter_module-0.6.4--with-cc-opt= "-i/usr/local/cellar/pcre/8.38/include"--with-ld-opt= "-l/usr/local/cellar/pcre/8.38/lib"

Make successful again

Mac compilation openresty undefined symbols for architecture x86_64

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.