-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ngx_openresty-1.10.24 does not build under OSX #3
Comments
Note, 1.10.39 does work. Maybe this is already fixed. |
On Wed, Jan 4, 2012 at 11:25 PM, Justin Hart
Thank you for the report. Could you please try the latest devel
Thanks! |
On Thu, Jan 5, 2012 at 10:20 AM, agentzh agentzh@gmail.com wrote:
If the problem persists, please check that if you have multiple
--with-ld-opt="-L/path/to/pcre/lib" ... Regards, |
Okay, given that 1.0.10.39 works for you, I'm closing this ticket :) |
hello,
|
On Sun, Jan 29, 2012 at 5:36 PM, Norman Khine
Thank you for the information :) Best regards, |
With ngx_openresty-1.2.1.14, this issue is occurring again. I followed the recommended steps for pcre and adding to
|
Hello On Thu, Sep 20, 2012 at 9:04 PM, JT Archie notifications@github.com wrote:
It is very likely that your PCRE header files and library files do not match. Please ensure that your PCRE installation is sane. Alternatively you Best regards, |
That was it. Thanks. |
Thanks @agentzh, --with-pcre worked for me as well. |
Thanks @nkhine. I was using |
thanks @nkhine |
I can't believe I have spent entire day on this bug. I have tried all the fixes suggested above,but this error msg. tells me that openresty is not configured properly. - nginx: [emerg] unknown directive "echo" in /usr/local/etc/nginx/nginx.conf:45 |
@laghatea That error message means the ngx_echo module is not included in the nginx server you're trying to start. Because ngx_echo module is enabled in ngx_openresty by default, it is very likely that you're starting the wrong nginx server (maybe you have multiple nginx installations in the same box?). Note that by default, the nginx executable installed by openresty is located at |
Hey there are some tips for issues like this. I use the CONFIGURE to build the openresty:
And the get the ERROR:
And just use:
Reinstall ! Done! Good Luck. |
Seems like same error in nginx itself |
Please read the official documentation for instructions of installing OpenResty on Mac OS X: http://openresty.org/#Installation Essentially, it's as simple as
where we assume that your system has 4 spare CPU cores. Good luck! |
I have installed pcre, and configure command is:
still return error: meanwhile it has a warning: WARNING! If you wish to build 64-bit library, then you have to |
then I let nginx build the PCRE source,
return same error. |
@grasses A quick google search found this solution: |
@grasses I've tested on my macbook (Mac OS X 10.10.4) the aforementioned work-around works: export KERNEL_BITS=64
./configure --with-cc-opt='-I/usr/local/Cellar/pcre/8.37/include/' \
--with-ld-opt='-L/usr/local/Cellar/pcre/8.37/lib' \
--with-openssl=$HOME/work/openssl-1.0.2d -j9
make -j9
sudo make install BTW, only use |
@grasses It seems that this is a known issue with recent versions of OpenSSL on Mac OS X. And it only happens when you try to use the I'll incorporate the work-around directly into OpenResty's build system so that the users will no longer have to worry about the details. Thanks for the report! |
…en the ./configure option --with-pcre=PATH was used and the openssl source was recent enough. thanks grasses for the report in #3.
@agentzh |
@grasses Glad it works for you now. You're welcome :) |
* 'master' of https://github.com/openresty/ngx_openresty: (181 commits) bumped version to 1.9.3.1. bumped version to 1.9.3.1rc1. updated the tests to reflect recent changes. upgraded the nginx core to 1.9.3. bugfix: ./configure --help: fixed the usage text for the --with-debug option. thanks Kipras Mancevičius for the report. bugfix: link failures with openssl might happen on 64-bit Mac OS X when the ./configure option --with-pcre=PATH was used and the openssl source was recent enough. thanks grasses for the report in openresty#3. upgraded ngx_postgres to 1.0rc7. fixed a compilation error when both the dtrace static probes and --with-threads are specified. updated the test suite to reflect recent changes; also bumped version to 1.9.2.1 RC1. removed the --with-rtsig_module option from the usage info of ./configure. ./configure: added --with-threads to usage; also added --with-threads test to dist-check. upgraded the nginx core to 1.9.2. updated tests to reflect recent changes. bumped version to 1.7.10.2. upgraded resty-cli to 0.03. Updated repository link in the README ./configure: fixed the --without-http_rewrite_module option by disabling NDK automatically; also automatically disable the ngx_encrypted_session module when NDK is disabled. util/dist-check: the nogzip build now also disables ssl and pcre. updated tests to reflect recent changes. bumped version to 1.7.10.2rc1. ...
Check pcre and openssl path by "brew info pcre" and "brew info openssl"; then according to the result, specify the path for both of them in configure command: ./configure --with-cc-opt="-I/usr/local/Cellar/pcre/8.37/include -I/usr/local/opt/openssl/include" --with-ld-opt="-L/usr/local/Cellar/pcre/8.37/lib -L/usr/local/opt/openssl/lib" |
I had to From the LuaJit project installation page :
|
@bsyk Thanks for the info. Maybe we should set the environment automatically in OpenResty's build system. |
…T to the current Mac OS X version unless the env is already set. thanks bsyk for the report in #3.
@bsyk Fixed in git master. |
when I insert ./configure |
@lavenkin Seems like you are in the wrong current working directory. Try the following commands (tested on my Macbook Pro): brew install pcre
wget https://openresty.org/download/ngx_openresty-1.9.7.1rc2.tar.gz
tar -xvf ngx_openresty-1.9.7.1rc2.tar.gz
cd ngx_openresty-1.9.7.1rc2/
./configure --with-cc-opt="-I/usr/local/include" --with-ld-opt="-L/usr/local/lib" -j5
make -j5
sudo make install |
I'm using OX EI Capitan 10.11.2, use brew install openssl and pcre, then configure generate error, then using brew link --force openssl(don't know it helps), then compile specify path like follows.. ./configure --with-cc-opt='-I/usr/local/Cellar/pcre/8.38/include/ -I/usr/local/Cellar/openssl/1.0.2e_1/include/' --with-ld-opt='-L/usr/local/Cellar/pcre/8.38/lib -L/usr/local/Cellar/openssl/1.0.2e_1/lib' -j2 then make works fine. |
@wynelu, I use brew and: |
@agentzh, Yes It works! |
$: ln -s /usr/local/Cellar/pcre/8.38 /usr/local/opt/pcre |
When linking the final objs/nginx,
Undefined symbols for architecture x86_64:
"_pcre_free_study", referenced from:
_ngx_http_lua_ngx_re_match in ngx_http_lua_regex.o
_ngx_http_lua_ngx_re_gmatch in ngx_http_lua_regex.o
_ngx_http_lua_ngx_re_sub_helper in ngx_http_lua_regex.o
_ngx_http_lua_cleanup_pcre_study_data in ngx_http_lua_regex.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [objs/nginx] Error 1
this was configured with a plain './configure' line.
The text was updated successfully, but these errors were encountered: