#1  
Old 11th June 2009, 15:08
-crisstm- -crisstm- is offline
Banned
 
Join Date: Jul 2008
Posts: 78
Thanks: 3
Thanked 1 Time in 1 Post
Default ruby errors

i install centos 5.3 x86_64 and i have one error after install ruby cmd make

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

after that i cannot use apache because doesn't find mod_ruby.so file
can anyone help me?
Reply With Quote
Sponsored Links
  #2  
Old 12th June 2009, 14:25
-crisstm- -crisstm- is offline
Banned
 
Join Date: Jul 2008
Posts: 78
Thanks: 3
Thanked 1 Time in 1 Post
 
Smile solution

i found solution

cd /tmp
wget http://www.modruby.net/archive/mod_ruby-1.3.0.tar.gz
tar zxvf mod_ruby-1.3.0.tar.gz
cd mod_ruby-1.3.0/
./configure.rb --with-apr-includes=/usr/include/apr-1
then open /tmp/mod_rubyx.x.x folder
and there you have one file named apachelib.h
open that file put this '#define OPT_INCNOEXEC 32' after '#define APACHELIB_H'
and all working fine with make and make install comand. no error output anymore
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ruby on Rails with fcgi and apache TechG1rl HOWTO-Related Questions 5 26th November 2007 18:51
Change Document Root for Ruby on Rails vhost Delphinus General 12 8th September 2007 11:31
ispconfig installation errors kcmohan Installation/Configuration 1 9th April 2007 20:14
Install Errors DarkLord00 Installation/Configuration 12 25th February 2007 17:49
PHP Errors in the "WEB-FTP" module crudolphy General 9 27th December 2005 20:17


All times are GMT +2. The time now is 07:36.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.