Mod_ruby make error


(B i g D o g) #1

I have just downloaded the mod_ruby from cvs and when I try to run make I am
getting an error.

[System]
Redhat linux 7.2

[configuration]
./configure.rb --prefix=/usr/local/ruby --mandir=/usr/share/man --enable-eru
by --with-apxs=/var/www/bin/apxs

[make]
gcc -g -O2 -Wall -DLINUX=22 -I. -I/usr/local/ruby/lib/ruby/1.6/i686-linux-gn
u -I/var/www/include -DUSE_ERUBY=1 -c mod_ruby.c
gcc -g -O2 -Wall -DLINUX=22 -I. -I/usr/local/ruby/lib/ruby/1.6/i686-linux-gn
u -I/var/www/include -DUSE_ERUBY=1 -c ruby_config.c
gcc -g -O2 -Wall -DLINUX=22 -I. -I/usr/local/ruby/lib/ruby/1.6/i686-linux-gn
u -I/var/www/include -DUSE_ERUBY=1 -c apachelib.c
gcc -g -O2 -Wall -DLINUX=22 -I. -I/usr/local/ruby/lib/ruby/1.6/i686-linux-gn
u -I/var/www/include -DUSE_ERUBY=1 -c array_header.c
gcc -g -O2 -Wall -DLINUX=22 -I. -I/usr/local/ruby/lib/ruby/1.6/i686-linux-gn
u -I/var/www/include -DUSE_ERUBY=1 -c table.c
gcc -g -O2 -Wall -DLINUX=22 -I. -I/usr/local/ruby/lib/ruby/1.6/i686-linux-gn
u -I/var/www/include -DUSE_ERUBY=1 -c connection.c
gcc -g -O2 -Wall -DLINUX=22 -I. -I/usr/local/ruby/lib/ruby/1.6/i686-linux-gn
u -I/var/www/include -DUSE_ERUBY=1 -c server.c
gcc -g -O2 -Wall -DLINUX=22 -I. -I/usr/local/ruby/lib/ruby/1.6/i686-linux-gn
u -I/var/www/include -DUSE_ERUBY=1 -c request.c
o mod_ruby.so mod_ruby.o ruby_config.o apachelib.o array_header.o table.o
connection.o server.o request.o
-leruby -L/usr/local/ruby/lib -lruby -ldl -lcrypt -lm
make: o: Command not found
make: [mod_ruby.so] Error 127 (ignored)

Does anyone have any ideas how I could fix this?

Thanks in advance,

B i g D o g


(Sean Chittenden) #2

[moving to modruby@modruby.net]

I have just downloaded the mod_ruby from cvs and when I try to run
make I am getting an error.

[System]
Redhat linux 7.2

[configuration]
./configure.rb --prefix=/usr/local/ruby --mandir=/usr/share/man --enable-eru
by --with-apxs=/var/www/bin/apxs

[make]
gcc -g -O2 -Wall -DLINUX=22 -I. -I/usr/local/ruby/lib/ruby/1.6/i686-linux-gn
u -I/var/www/include -DUSE_ERUBY=1 -c mod_ruby.c
gcc -g -O2 -Wall -DLINUX=22 -I. -I/usr/local/ruby/lib/ruby/1.6/i686-linux-gn
u -I/var/www/include -DUSE_ERUBY=1 -c ruby_config.c
gcc -g -O2 -Wall -DLINUX=22 -I. -I/usr/local/ruby/lib/ruby/1.6/i686-linux-gn
u -I/var/www/include -DUSE_ERUBY=1 -c apachelib.c
gcc -g -O2 -Wall -DLINUX=22 -I. -I/usr/local/ruby/lib/ruby/1.6/i686-linux-gn
u -I/var/www/include -DUSE_ERUBY=1 -c array_header.c
gcc -g -O2 -Wall -DLINUX=22 -I. -I/usr/local/ruby/lib/ruby/1.6/i686-linux-gn
u -I/var/www/include -DUSE_ERUBY=1 -c table.c
gcc -g -O2 -Wall -DLINUX=22 -I. -I/usr/local/ruby/lib/ruby/1.6/i686-linux-gn
u -I/var/www/include -DUSE_ERUBY=1 -c connection.c
gcc -g -O2 -Wall -DLINUX=22 -I. -I/usr/local/ruby/lib/ruby/1.6/i686-linux-gn
u -I/var/www/include -DUSE_ERUBY=1 -c server.c
gcc -g -O2 -Wall -DLINUX=22 -I. -I/usr/local/ruby/lib/ruby/1.6/i686-linux-gn
u -I/var/www/include -DUSE_ERUBY=1 -c request.c
o mod_ruby.so mod_ruby.o ruby_config.o apachelib.o array_header.o table.o
connection.o server.o request.o \
        -leruby -L/usr/local/ruby/lib -lruby -ldl -lcrypt -lm
make: o: Command not found
make: [mod_ruby.so] Error 127 (ignored)

Does anyone have any ideas how I could fix this?

That's VERY VERY odd. Well, at worst, you could run the command:

gcc mod_ruby.so mod_ruby.o ruby_config.o apachelib.o array_header.o table.o connection.o server.o request.o -leruby -L/usr/local/ruby/lib -lruby -ldl -lcrypt -lm

and you'd be able to do a make install. My best guess is that one of
your environment variables is munged and for some reason it was trying
to use 'o' instead of 'gcc'. I'm on a FreeBSD system and am having no
problems building mod_ruby via CVS. <:~) If you'd like you can send
me some of your build files in a private email. -sc

···

--
Sean Chittenden