ruby_init_loadpath() vs Win32

P

Phlip

If I set RUBYLIB to "C:\phlip\tools\ruby-1.9.1-p0\" before running an
embedded project - linked via Visual Studio to freshly-built LIBs in
that build tree - I get $: load paths with site_ruby off in evil-land:

["C:\\phlip\\tools\\ruby-1.9.1-p0\\",
"C:/WINDOWS/system32/lib/ruby/site_ruby/1.9.1",
"C:/WINDOWS/system32/lib/ruby/site_ruby/1.9.1/i386-msvcr80",
"C:/WINDOWS/system32/lib/ruby/site_ruby"... ]

site_ruby is neither there nor in the build tree. Then, naturally,
require 'rubygems' fails, and so on.

Please go easy on me, because I only have 10 years experience with
Ruby and 20 with C++...
 
L

Luis Lavena

If I set RUBYLIB to "C:\phlip\tools\ruby-1.9.1-p0\" before running an
embedded project - linked via Visual Studio to freshly-built LIBs in
that build tree - I get $: load paths with site_ruby off in evil-land:

["C:\\phlip\\tools\\ruby-1.9.1-p0\\",
 "C:/WINDOWS/system32/lib/ruby/site_ruby/1.9.1",
 "C:/WINDOWS/system32/lib/ruby/site_ruby/1.9.1/i386-msvcr80",
 "C:/WINDOWS/system32/lib/ruby/site_ruby"... ]

site_ruby is neither there nor in the build tree. Then, naturally,
require 'rubygems' fails, and so on.

Please go easy on me, because I only have 10 years experience with
Ruby and 20 with C++...

Are you linking to a shared library of ruby or statically linked?

Is VARIABLE_LIBPATH defined?

If not, then it grabs the path of where the shared library is located.

Perhaps that could lead to something?

(guessing after quick looking at the C code)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,813
Messages
2,569,696
Members
45,484
Latest member
MasqueradeOfSilence

Latest Threads

Top