I’m trying to compile in the nginx_upload_progress module into an RPM.
using the SPEC file provided with v1.2.7 from the Nginx repos. I
the upload_progress module, opened up the source tar archive, copied the
module to nginx-1.2.7/nginx-upload-progress-module, and added this line
my SPEC file:


When run the rpmbuild process, it looks to me like it is successfully
finding and compiling the module (excerpts from the build log):

gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror
-O2 -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I
objs -I src/http -I src/http/modules -I src/mail



Checking for unpackaged file(s): /usr/lib/rpm/check-files
Wrote: /root/rpmbuild/SRPMS/nginx-1.2.7-1.el6.ngx.src.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/nginx-1.2.7-1.el6.ngx.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/nginx-debug-1.2.7-1.el6.ngx.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.tN7cRa

  • umask 022
  • cd /root/rpmbuild/BUILD
  • cd nginx-1.2.7
  • /bin/rm -rf /root/rpmbuild/BUILDROOT/nginx-1.2.7-1.el6.ngx.x86_64
  • exit 0

So, the build completes successfully, but when I install the rpm and run
“nginx -V”, I get:

nginx version: nginx/1.2.7
built by gcc 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx
–http-log-path=/var/log/nginx/access.log --pid-path=/var/run/
–http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx
–with-http_ssl_module --with-http_realip_module
–with-http_sub_module --with-http_dav_module --with-http_flv_module
–with-http_mp4_module --with-http_gzip_static_module
–with-http_random_index_module --with-http_secure_link_module
–with-http_stub_status_module --with-mail --with-mail_ssl_module
–with-file-aio --with-ipv6 --with-cc-opt=’-O2 -g’

… no upload-progress module.

Am I missing a part of the process here?


Posted at Nginx Forum:,237384,237384#msg-237384

Never mind, I guess there are two configure statements in the spec file.
added the module to both and it’s working fine.

Posted at Nginx Forum:,237384,237409#msg-237409

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs