LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-03-2010, 12:43 PM   #1
bluethundr
Member
 
Registered: Jun 2003
Location: Summit, NJ
Distribution: CentOS 5.4
Posts: 122

Rep: Reputation: 15
Post make fails on nginx-0.8.49


Greetings


I am attempting to compile nginx-0.8.49 with the upstream fair module. The configure script seems to run ok with the following options:

Code:
#./configure --add-module=../upfair

but when I run make it fails with this error:

Code:
objs/src/os/unix/ngx_process.o: In function `ngx_process_get_status':
/mnt/store/src/nginx/SOURCES/nginx-0.8.49/src/os/unix/ngx_process.c:490: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
/mnt/store/src/nginx/SOURCES/nginx-0.8.49/src/os/unix/ngx_process.c:490: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
make[1]: Leaving directory `/mnt/store/src/nginx/SOURCES/nginx-0.8.49'
I believe the above `sys_nerr' is deprecated; /en/docs/sys_errlist.html is actually normal. This is according to what I've found on the web and according to what I've heard in #nginx on freenode.

Given this information, what I _really_ think is the problem may be the fact that make install produces this error:

Code:
root@LCENT01:/mnt/store/src/nginx/SOURCES/nginx-0.8.49]#make install
make -f objs/Makefile install
make[1]: Entering directory `/mnt/store/src/nginx/SOURCES/nginx-0.8.49'
test -d '/usr/local/nginx' || mkdir -p '/usr/local/nginx'
test -d '/usr/local/nginx/sbin' 		|| mkdir -p '/usr/local/nginx/sbin'
test ! -f '/usr/local/nginx/sbin/nginx' 		|| mv '/usr/local/nginx/sbin/nginx' 			'/usr/local/nginx/sbin/nginx.old'
cp objs/nginx '/usr/local/nginx/sbin/nginx'
test -d '/usr/local/nginx/conf' 		|| mkdir -p '/usr/local/nginx/conf'
cp conf/koi-win '/usr/local/nginx/conf'
cp conf/koi-utf '/usr/local/nginx/conf'
cp conf/win-utf '/usr/local/nginx/conf'
test -f '/usr/local/nginx/conf/mime.types' 		|| cp conf/mime.types '/usr/local/nginx/conf'
cp conf/mime.types '/usr/local/nginx/conf/mime.types.default'
test -f '/usr/local/nginx/conf/fastcgi_params' 		|| cp conf/fastcgi_params '/usr/local/nginx/conf'
cp conf/fastcgi_params 		'/usr/local/nginx/conf/fastcgi_params.default'
test -f '/usr/local/nginx/conf/fastcgi.conf' 		|| cp conf/fastcgi.conf '/usr/local/nginx/conf'
cp conf/fastcgi.conf '/usr/local/nginx/conf/fastcgi.conf.default'
test -f '/usr/local/nginx/conf/uwsgi_params' 		|| cp conf/uwsgi_params '/usr/local/nginx/conf'
cp conf/uwsgi_params 		'/usr/local/nginx/conf/uwsgi_params.default'
test -f '/usr/local/nginx/conf/scgi_params' 		|| cp conf/scgi_params '/usr/local/nginx/conf'
cp conf/scgi_params 		'/usr/local/nginx/conf/scgi_params.default'
test -f '/usr/local/nginx/conf/nginx.conf' 		|| cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf'
cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf.default'
test -d '/usr/local/nginx/logs' 		|| mkdir -p '/usr/local/nginx/logs'
test -d '/usr/local/nginx/logs' || 		mkdir -p '/usr/local/nginx/logs'
test -d '/usr/local/nginx/html' 		|| cp -r html '/usr/local/nginx'
test -d '/usr/local/nginx/logs' || 		mkdir -p '/usr/local/nginx/logs'
make[1]: Leaving directory `/mnt/store/src/nginx/SOURCES/nginx-0.8.49'
And if I try to start nginx this is what I get:

Code:
[root@LCENT01:/home/bluethundr]#service nginx start
Starting nginx:                                           [FAILED]
I am on CentOS 55 x86_64

Code:
[root@LCENT01:/home/bluethundr]#uname -a
Linux LCENT01 2.6.18-194.11.3.el5xen #1 SMP Mon Aug 30 17:42:28 EDT 2010 i686 i686 i386 GNU/Linux
[root@LCENT01:/home/bluethundr]#cat /etc/redhat-release 
CentOS release 5.5 (Final)
I would greatly appreciate any advice and effort that could help me get this going. Thanks in advance!!
 
Old 10-04-2010, 02:08 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,910

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Hi,

This is not an error from make, but a warning. And I cannot see an error from "make install" also.

You cannot use "service nginx start" since you've compiled nginx from source, unless you edit /etc/init.d/nginx to match your installation directory structure.
According to this you can use the following command, to test your installation:
Code:
/usr/local/nginx/sbin/nginx -t -c /path/to/nginx.conf  -g "pid /var/run/nginx.pid; worker_processes 2;"
Just change /path/to/nginx.conf to the actual path of the config file

Regards
 
Old 10-04-2010, 11:38 AM   #3
bluethundr
Member
 
Registered: Jun 2003
Location: Summit, NJ
Distribution: CentOS 5.4
Posts: 122

Original Poster
Rep: Reputation: 15
Thumbs up success with nginx

Quote:
Originally Posted by bathory View Post
Hi,

This is not an error from make, but a warning. And I cannot see an error from "make install" also.

You cannot use "service nginx start" since you've compiled nginx from source, unless you edit /etc/init.d/nginx to match your installation directory structure.
According to this you can use the following command, to test your installation:
Code:
/usr/local/nginx/sbin/nginx -t -c /path/to/nginx.conf  -g "pid /var/run/nginx.pid; worker_processes 2;"
Just change /path/to/nginx.conf to the actual path of the config file

Regards
hey bathory,

apologies thought that

Code:
make[1]: Leaving directory `/mnt/store/src/nginx/SOURCES/nginx-0.8.49'
was an error as it was my misimpression that[1] was failure and that [0] would have been success.

it was apparently installed correctly, thanks for posting the command line that got me to realize that!

Code:
[root@VIRTCENT01 nginx-0.8.49]# /usr/sbin/nginx/nginx -t -c /etc/nginx/nginx.conf  -g "pid /var/run/nginx.pid; worker_processes 2;"
the configuration file /etc/nginx/nginx.conf syntax is ok
configuration file /etc/nginx/nginx.conf test is successful
 
  


Reply

Tags
make, nginx


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
driver make fails android6011 Linux - General 2 04-11-2008 11:14 AM
make menuconfig fails Fredstar Linux - Newbie 4 10-07-2006 03:05 PM
make modules_install fails bhomass Debian 1 12-08-2005 05:51 PM
Kernel compile fails with make-kpkg, not with make cspos Debian 37 11-09-2005 09:11 AM
make modules fails? shanenin Linux - Software 2 12-27-2003 10:18 PM


All times are GMT -5. The time now is 09:17 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration