Error Installing Passenger with nginx

Sergey A. Osokin osa at FreeBSD.org.ru
Thu Aug 18 14:09:45 UTC 2011


On Thu, Aug 18, 2011 at 03:16:43PM +0200, Abdul A. wrote:
> Sergey A. Osokin wrote in post #1017276:
> > On Thu, Aug 18, 2011 at 09:50:07AM +0200, Abdul A. wrote:
> >> src/os/unix/ngx_errno.c: In function 'ngx_strerror_init':
> >> I went in and manually changed file called ngx_auto_config.h, line 107
> >> an issue with nginx code?
> >>   -g -O2 -O3 -c -o ev.lo ev.c
> >> ev.c:3387:5: error: 'ev_io' has no member named 'reqevents'
> >> ev.c: In function 'ev_once':
> >> ev.c:3567:7: error: 'ev_io' has no member named 'reqevents'
> >> make: 1254-004 The error code from the last command is 1.
> >
> > You should try to build libev separately.
> >
> > Download original source from
> > http://dist.schmorp.de/libev/Attic/libev-3.9.tar.gz, build
> > and install libev.  Then try to rebuild nginx with installed
> > libev.
> 
> Thanks for the pointer.
> 
> I've been successfull in building libev separately. How to configure 
> nginx (its actually passenger I believe) to use the installed copy?

Patch for passenger-3.0.8 included.

Also, I changed default prefix to libev library from "/usr" to "/usr/local".
You should change these prefixes to right path.

--
Sergey A. Osokin
osa at FreeBSD.ORG
osa at FreeBSD.ORG.ru
-------------- next part --------------
--- passenger-3.0.8/build/config.rb.bak	2011-08-18 13:29:34.000000000 +0400
+++ passenger-3.0.8/build/config.rb	2011-08-18 13:29:57.000000000 +0400
@@ -40,4 +40,4 @@
 EXTRA_LDFLAGS  = ""
 
 # Whether to use the vendored libev or the system one.
-USE_VENDORED_LIBEV = boolean_option("USE_VENDORED_LIBEV", true)
\ No newline at end of file
+USE_VENDORED_LIBEV = boolean_option("USE_VENDORED_LIBEV", false)
--- passenger-3.0.8/build/agents.rb.bak	2011-08-18 13:29:34.000000000 +0400
+++ passenger-3.0.8/build/agents.rb	2011-08-18 13:29:57.000000000 +0400
@@ -67,7 +67,7 @@
 		"#{PlatformInfo.portability_cflags} #{EXTRA_CXXFLAGS} " <<
 		"#{LIBCOMMON} " <<
 		"#{LIBBOOST_OXT} " <<
-		"#{LIBEV_LIBS} " <<
+		"-L/usr/local/lib -lev " <<
 		"#{PlatformInfo.curl_libs} " <<
 		"#{PlatformInfo.zlib_libs} " <<
 		"#{PlatformInfo.portability_ldflags} " <<
@@ -77,4 +77,4 @@
 
 task 'common:clean' do
 	sh "rm -f #{AGENT_OUTPUT_DIR}PassengerWatchdog #{AGENT_OUTPUT_DIR}PassengerLoggingAgent"
-end
\ No newline at end of file
+end
--- passenger-3.0.8/build/common_library.rb.bak	2011-08-18 13:29:34.000000000 +0400
+++ passenger-3.0.8/build/common_library.rb	2011-08-18 13:29:57.000000000 +0400
@@ -233,7 +233,7 @@
 
 if USE_VENDORED_LIBEV
 	LIBEV_SOURCE_DIR = File.expand_path("../ext/libev", File.dirname(__FILE__)) + "/"
-	LIBEV_CFLAGS = "-Iext/libev"
+	LIBEV_CFLAGS = ""
 	LIBEV_LIBS = LIBEV_OUTPUT_DIR + ".libs/libev.a"
 	
 	task :libev => LIBEV_OUTPUT_DIR + ".libs/libev.a"
@@ -260,8 +260,8 @@
 		end
 	end
 else
-	LIBEV_CFLAGS = string_option('LIBEV_CFLAGS', '-I/usr/include/libev')
-	LIBEV_LIBS   = string_option('LIBEV_LIBS', '-lev')
+	LIBEV_CFLAGS = string_option('LIBEV_CFLAGS', '-I/usr/local/include')
+	LIBEV_LIBS   = string_option('LIBEV_LIBS', '-L/usr/local/lib -lev')
 	task :libev  # do nothing
 end
 


More information about the nginx mailing list