Opened 8 years ago

Closed 8 years ago

Last modified 8 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 mdounin 8 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 8 years ago by nicolai.reuschling.name/openid

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.

Changed 8 years ago by mdounin

comment:2 Changed 8 years ago by mdounin

  • Status changed from new to accepted

Attached patch should fix it.

comment:3 Changed 8 years ago by mdounin

  • Priority changed from critical to minor

comment:4 Changed 8 years ago by mdounin

  • Resolution set to fixed
  • Status changed from accepted to closed

The patch committed as r4003.

comment:5 Changed 8 years ago by is

In [4044/nginx]:

(The changeset message doesn't reference this ticket)

Note: See TracTickets for help on using tickets.