<div dir="ltr"><div>how can I compile them as external modules (shared objects) ?<br><br></div>Joel Parker<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 30, 2017 at 10:22 AM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<div><div class="h5"><br>
On Tue, May 30, 2017 at 10:14:32AM -0500, Joel Parker wrote:<br>
<br>
> I am running centos7 and am compiling the lua module and the ndk http<br>
> module. Everything seems to be configured correctly but after I do a make<br>
> and make install, the modules directory doesn't exist and there are no sign<br>
> of the shared libraries :<br>
><br>
> ndk_http_module.so<br>
> ngx_http_ula_module.so<br>
><br>
> Here is my configure command :<br>
><br>
> ./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx<br>
> --conf-path=/etc/nginx/nginx.<wbr>conf --error-log-path=/var/log/<wbr>nginx/error.log<br>
> --http-log-path=/var/log/<wbr>nginx/access.log --pid-path=/var/run/nginx.pid<br>
> --lock-path=/var/run/nginx.<wbr>lock<br>
> --http-client-body-temp-path=/<wbr>var/cache/nginx/client_temp<br>
> --http-proxy-temp-path=/var/<wbr>cache/nginx/proxy_temp<br>
> --http-fastcgi-temp-path=/var/<wbr>cache/nginx/fastcgi_temp<br>
> --http-uwsgi-temp-path=/var/<wbr>cache/nginx/uwsgi_temp<br>
> --http-scgi-temp-path=/var/<wbr>cache/nginx/scgi_temp --user=nginx --group=nginx<br>
> --with-http_ssl_module --with-http_realip_module<br>
> --with-http_addition_module --with-http_sub_module --with-http_dav_module<br>
> --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module<br>
> --with-http_gzip_static_module --with-http_random_index_<wbr>module<br>
> --with-http_secure_link_module --with-http_stub_status_module<br>
> --with-http_auth_request_<wbr>module --with-mail --with-mail_ssl_module<br>
> --with-file-aio --with-ipv6 --with-stream --with-stream_ssl_module<br>
> --add-module='/root/proxy/ngx_<wbr>devel_kit-0.3.0'<br>
> --add-module='/root/proxy/lua-<wbr>nginx-module-0.10.8'<br>
> --with-ld-opt='-Wl,-rpath,/<wbr>usr/local/lib' --with-cc-opt='-O2 -g -pipe<br>
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector<br>
> --param=ssp-buffer-size=4 -m64 -mtune=generic'<br>
><br>
> In the directory /root/proxy/<br>
> ngx_devel_kit-0.3.0<br>
> lua-nginx-module-0.10.8<br>
><br>
> I exported these two variables:<br>
><br>
> export LUA_LIB=/usr/local/lib<br>
> export LUA_INC=/usr/local/include<br>
><br>
> and these directories do include the headers and libs.<br>
><br>
> The configure command fails without error and finds the directories under<br>
> /root/proxy. The make and make install generate no errors but the shared<br>
> objects are nowhere to be found.<br>
><br>
> Here is nginx version: nginx version: nginx/1.11.2<br>
> OS: Centos 7<br>
><br>
> nothing found in :<br>
><br>
> /etc/nginx/ (not even modules folder)<br>
> /usr/share/ (no nginx folder)<br>
> /usr/app/ (doesn't exist on Centos 7)<br>
><br>
> what am I doing wrong ?<br>
<br>
</div></div>The configure line you are using instructs nginx to compile all<br>
modules statically into nginx itself.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Maxim Dounin<br>
<a href="http://nginx.org/" rel="noreferrer" target="_blank">http://nginx.org/</a><br>
______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br>
</font></span></blockquote></div><br></div>