>>>>> "D" == Dave Thomas <Dave / thomases.com> writes:

D> RUBY_INSTALL_NAME = ruby
D> LIBRUBYARG = $(LIBRUBY_A)  <--------------------------------!
D> OBJS = mod_ruby.o ruby_config.o apachelib.o eruby.o


aestivum% head -1 Makefile.RB
#!/var/postgres/local/bin/ruby
aestivum% 

 Otherwise it use env to search ruby, and in my case it will retrieve
1.4.4


aestivum% cat Makefile
# Generated automatically by Makefile.RB.
 
CC = gcc
 
CFLAGS = -fPIC -I/var/postgres/local/lib/ruby/1.5/i686-linux -I/usr/include/apache-1.3 \
         -DLINUX=2 -DEAPI -DTARGET="apache" -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -g -O2 -fPIC
LIBS = -ldl -lcrypt -lm 
XLDFLAGS = 
LDSHARED = gcc -shared
DLDFLAGS = 
INSTALL_DLLIB = ruby -r ftools -e 'File.install ARGV[0], ARGV[1], 0555, true'
 
RUBY_INSTALL_NAME = ruby
LIBRUBYARG = -L/var/postgres/local/lib -l$(RUBY_INSTALL_NAME)
OBJS = mod_ruby.o ruby_config.o apachelib.o eruby.o
TARGET = mod_ruby.so
 
.c.o:
        $(CC) $(CFLAGS) -c $<
 
all: $(TARGET)
 
install: $(TARGET)
        $(INSTALL_DLLIB) $(TARGET) /usr/lib/apache/1.3
 
clean:
        rm -f $(TARGET) $(OBJS) *~
 
distclean: clean
        rm -f config.h mod_ruby.imp Makefile
 
$(TARGET): $(OBJS)
        $(LDSHARED) $(DLDFLAGS) $(XLDFLAGS) -o $(TARGET) $(OBJS) $(LIBRUBYARG) $(LIBS)
 
mod_ruby.o: mod_ruby.c mod_ruby.h ruby_config.h apachelib.h eruby.h config.h
ruby_config.o: ruby_config.c mod_ruby.h ruby_config.h
apachelib.o: apachelib.c apachelib.h
eruby.o: eruby.c eruby.h config.h
aestivum% 



aestivum% grep mod_ruby /var/log/apache/error.log
[Sun Jun  4 06:24:57 2000] [notice] Apache/1.3.12 (Unix) Debian/GNU mod_ruby/0.1.8 Ruby/1.5.4(2000-06-01) configured -- resuming normal operations
aestivum% 


Guy Decoux