
3rd June 2009, 03:40
|
|
Junior Member
|
|
Join Date: Jun 2009
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Perfect system Centos 5.3 with ISPConfig 2 fails at mod_ruby
Don't know if this is a recent development or what, but I've followed the instructions for the "Centos 5.3 and ISPConfig 2" to the letter, but when i get to installing the mod_ruby part, I get errors during the make.
I'm using the ./configure.rb with apr headers (as per the instructions), but I've noticed someone else in these forums who had issues with his config, so he used apxs instructions instead. I thought el5 had to use apr as apxs didn't work well with Centos 5.3. If I'm wrong, please someone tell me the difference and if it matters. I'd like to try the other option if possible.
My ./configure with apr runs fine. It's just when I do the make I get errors.
In particular these:
apachelib.c: In function .ap_chdir_file.:
apachelib.c: 149: take care: the returnvalue of .chdir ., declared with .warn_unused_result. attribut, is ignored
apachelib.c: 154: take care: the returnvalue of .chdir ., declared with .warn_unused_result. attribut, is ignored
apachelib.c: In function .rb_init_apache. : apachelib.c: 374: error: .OPT_INCNOEXEC. undeclared (first use in this function)
apachelib.c: 374: error: (Each undeclared identifire is reported only once
apachelib.c: 374: error: for each function it appears in.)
make: *** [apachelib.o] error 1
Maybe there was an unexpected revision to httpd or httpd-devel recently? There's another fellow with the same problem in the Centos 5 forums who posted just yesterday. Maybe something just recently changed.
Any help would be greatly appreciated.
Thanks
-Mike
|

3rd June 2009, 16:56
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,600 Times in 2,449 Posts
|
|
What are the outputs of and ?
|

3rd June 2009, 18:05
|
|
Junior Member
|
|
Join Date: Aug 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hey,
I get the exact same result, this is my output to your question.
[root@eugames mod_ruby-1.3.0]# getenforce
Permissive
[root@eugames mod_ruby-1.3.0]# uname -a
Linux eugames.local 2.6.18-128.el5 #1 SMP Wed Jan 21 10:44:23 EST 2009 i686 i68 i386 GNU/Linux
|

3rd June 2009, 19:11
|
|
Junior Member
|
|
Join Date: Jun 2009
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
I'm getting the following:
uname -a
Linux server.designwizardry.com 2.6.18-128.1.10.el5 #1 SMP Thu May 10:39:21 EDT 2009 i686 i386 GNU/Linux
getenforce
Disabled
-Mike
|

4th June 2009, 17:29
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,600 Times in 2,449 Posts
|
|
Is your Ruby version the same as in the tutorial?
|

4th June 2009, 17:43
|
|
Junior Member
|
|
Join Date: Jun 2009
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
The guide didn't say which specific version to install, I think it assumed the latest:
it just said to install the following prerequisits:
yum install httpd-devel ruby ruby-devel
Checking my versions though, they are:
httpd-devel-2.2.3-22.el5.centos.1.i386
ruby-1.8.5-5.el5_2.6.i386
ruby-devel-1.8.5-5.el5_2.6.i386
-Mike
|

5th June 2009, 13:44
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,600 Times in 2,449 Posts
|
|
Maybe a problem with your gcc version.
What's the output of ?
|

5th June 2009, 16:28
|
|
Junior Member
|
|
Join Date: Jun 2009
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
which gcc yields:
/usr/bin/gcc
FYI: yum install gcc yields:
Package gcc-4.1.2-44.el5.i386 already installed and latest version
|

6th June 2009, 10:34
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,600 Times in 2,449 Posts
|
|
What's the output of
Code:
ls -l /usr/bin/gcc*
|

6th June 2009, 16:48
|
|
Junior Member
|
|
Join Date: Jun 2009
Posts: 4
Thanks: 0
Thanked 5 Times in 2 Posts
|
|
mod_ruby 1.3.0 fails on CentOS 5.3 during perfect server build
I am also having the same issue below is my commandline information:
-rwxr-xr-x 2 root root 196644 Jan 21 05:53 /usr/bin/gcc
-rwxr-xr-x 1 root root 2018 Jan 6 2007 /usr/bin/gccmakedep
Please note that the error message is as follows while running the make program. I have tried with root and with my super account.
I also built another server just to make sure I did not do anything wrong and had the exact same issue. I am running this server in VMWare ESX3.5.
[super@hostpanel01 mod_ruby-1.3.0]# ./configure.rb --with-apr-includes=/usr/include/apr-1
checking for a BSD compatible install... /usr/bin/install -c
checking whether we are using gcc... yes
checking Ruby version... 1.8.5
checking for static Apache module support... no
checking for dynamic Apache module support... yes
creating Makefile
creating libruby.module
creating doc/Makefile
[super@hostpanel01 mod_ruby-1.3.0]# make
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -fno-strict-aliasing -fPIC -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fno-strict-aliasing -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux/i386-linux -I/usr/include/httpd -I/usr/include/apr-1 -c mod_ruby.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -fno-strict-aliasing -fPIC -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fno-strict-aliasing -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux/i386-linux -I/usr/include/httpd -I/usr/include/apr-1 -c ruby_config.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -fno-strict-aliasing -fPIC -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fno-strict-aliasing -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux/i386-linux -I/usr/include/httpd -I/usr/include/apr-1 -c apachelib.c
apachelib.c: In function âap_chdir_fileâ:
apachelib.c:149: warning: ignoring return value of âchdirâ, declared with attribute warn_unused_result
apachelib.c:154: warning: ignoring return value of âchdirâ, declared with attribute warn_unused_result
apachelib.c: In function ârb_init_apacheâ:
apachelib.c:374: error: âOPT_INCNOEXECâ undeclared (first use in this function)
apachelib.c:374: error: (Each undeclared identifier is reported only once
apachelib.c:374: error: for each function it appears in.)
make: *** [apachelib.o] Error 1
[super@hostpanel01 mod_ruby-1.3.0]#
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 07:11.
|
|
Recent comments
9 hours 4 min ago
11 hours 31 min ago
23 hours 26 min ago
1 day 2 hours ago
1 day 6 hours ago
1 day 12 hours ago
1 day 21 hours ago
1 day 23 hours ago
2 days 7 hours ago
2 days 9 hours ago