Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#5 closed defect (fixed)

Installation script fails on ArchLinux with Linux 3.0 kernel

Reported by: nicolai.reuschling.name/openid Owned by: somebody
Priority: minor Milestone:
Component: nginx-core Version: 1.0.x
Keywords: configure linux Cc:
uname -a: Linux 217-11-57-229 3.0-ARCH #1 SMP PREEMPT Sat Aug 6 16:18:35 CEST 2011 x86_64 AMD Phenom(tm) II X4 965 Processor AuthenticAMD GNU/Linux
nginx -V: 1.0.5

Description

I wanted to run nginx with passenger (mod_rails) on ArchLinux with Linux 3.x kernel . When I executed the passenger-install-nginx-module script, it stop on configuring nginx 1.0.5. Please note following error:

Compiling and installing Nginx...
# sh ./configure --prefix='/opt/nginx' --with-http_ssl_module --with-cc-opt='-Wno-error' --add-module='/usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/ext/nginx'
checking for OS

+ Linux 3.0-ARCH x86_64

checking for C compiler ... found

+ using GNU C compiler
+ gcc version: 4.6.1 (GCC)

checking for gcc -pipe switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
auto/os/linux: line 21: 3.0-ARCH: syntax error: invalid arithmetic operator (error token is ".0-ARCH")

Attachments (1)

patch-nginx-linux-version.txt (948 bytes ) - added by Maxim Dounin 13 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 by nicolai.reuschling.name/openid, 13 years ago

There seems to be a problem with the regex calculating the Linux version. It does not correctly match the return of 'uname -r' on ArchLinux. I somewhat fixed it myself now, but I believe that this might occur to some other users as well.

by Maxim Dounin, 13 years ago

comment:2 by Maxim Dounin, 13 years ago

Status: newaccepted

Attached patch should fix it.

comment:3 by Maxim Dounin, 13 years ago

Priority: criticalminor

comment:4 by Maxim Dounin, 13 years ago

Resolution: fixed
Status: acceptedclosed

The patch committed as r4003.

comment:5 by is, 13 years ago

In [4044/nginx]:

(The changeset message doesn't reference this ticket)

Note: See TracTickets for help on using tickets.