From: "Mr. Sunblade" Date: 2002-06-01T02:22:25+09:00 Subject: mkmf question - conditional installs Hi all, This is probably an easy one. I have two extensions I'm working on. Both .c files (we'll call them x.c and y.c) are in the same directory. One of these files I want to install *only* if it isn't already installed. So, I wrote my extconf.rb file like this: require 'mkmf' begin require 'x' rescue LoadError create_makefile('x') # Here 'x' is a file end create_makefile('x/y') # Here 'x' is a directory When I try to run "ruby extconf.rb", I get: mkmf.rb:427:in `create_makefile': undefined method `join' for "y.o x.o":String (NameError) from extconf.rb:9 Any ideas? Thanks. Dan