From: nobu.nokada@... Date: 2001-12-06T17:19:51+09:00 Subject: [ruby-talk:27658] Re: require with ruby embedding in c At Thu, 6 Dec 2001 16:12:37 +0900, Bob Cunius wrote: > ### C File > > #include "ruby.h" > > int main() > { > ruby_init(); > ruby_script("getrbval"); ruby_init_loadpath(); > rb_load_file("getrbval.rb"); > ruby_run(); > return 0; > } > the ruby interpretter complains that it cannot find find the required > file 'net/http' or any other file i try to include. What am I doing > wrong? The files are included correctly if i just run the script from > the bash shell. I'm using i686-linux glibc2.1 You have to call ruby_init_loadpath() to initialize $LOAD_PATH unless you'd call ruby_options(). Nobu Nakada