PDA

View Full Version : mod_ruby / httpd


seabird
18th April 2012, 10:29 PM
Hi everyone,

trying to get ruby installed and am encountering an error. Not sure if it is anything I did wrong or just incompatible? my steps:

#yum install ruby ruby-devel -y
#cd /tmp
#wget http://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
#make
#make install
#vi /etc/httpd/conf.d/ruby.conf
******start file**********
LoadModule ruby_module modules/mod_ruby.so
RubyAddPath /1.8
******save*******

systemctl restart httpd.service

Having done these steps give me this error in /var/log/messages:
Apr 18 23:08:38 server httpd[6214]: httpd: Syntax error on line 220 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/ruby.conf: Cannot load /etc/httpd/modules/mod_ruby.so into server: /etc/httpd/modules/mod_ruby.so: undefined symbol: ruby_dln_librefs


any help is appreciated

creataphysics
19th April 2012, 01:49 PM
Can you show us line 220 of httpd.conf?

seabird
19th April 2012, 02:51 PM

offcourse I can. Standard httpd.conf:
Include conf.d/*.conf

DBelton
19th April 2012, 03:03 PM
here is what I used to install it here:


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
make
make install

nano /etc/httpd/conf.d/ruby.conf

The following line is the only one within the ruby.conf:

LoadModule ruby_module modules/mod_ruby.so


I don't have the RubyAddPath like you show above

seabird
19th April 2012, 10:47 PM
ok, moving back to 16 for now. That way I can move my main server, then I will do some more testing on F17. Need my backup server for now.