Inline::Ruby, modules loaded with require not found without explicit path

[email protected] (Aria) Sun, 11 Mar 2018 03:23:55 -0700
Newsgroups perl.inline
Message-ID <CAJUCjA_qc9gU0+iJvTP=13Nsc16e4g3iQs2qgmfY6LwC1qGUNg@mail.gmail.com>
--001a1140990a3271a10567206c75
Content-Type: text/plain; charset="UTF-8"

Hi,

I'm running Inline::Ruby on two different linux systems (32 bit centos 64
bit ubuntu) and I'm having the same issue on both.

That being that Ruby modules loaded with require (or load) are not found
without explicit path.

I get a
<LoadError: cannot load such file --  (name from the require)>

error referencing whatever I tried to require.

I'm using require as show in the docs, ex:

 use Inline Ruby;

 my $obj = SomeClass->new;

 __END__
 __Ruby__

 # Pretend SomeClass is defined in an external library
 require 'SomeClass'


If I specify the entire path in the require it will work and load, however
this is not practical to do for every gem and its dependencies.

Ruby is 2.4.1 ...

Inline::Ruby does compile fine and pass the make test

thanks for any help I've been unable to resolve this...

cheers

--001a1140990a3271a10567206c75
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div><br></div><div>I&#39;m running Inline::Ruby on two=
 different linux systems (32 bit centos 64 bit ubuntu) and I&#39;m having t=
he same issue on both.</div><div><br></div><div>That being that Ruby module=
s loaded with require (or load) are not found without explicit path.<br></d=
iv><div><br></div><div>I get a</div><div>&lt;LoadError: cannot load such fi=
le --=C2=A0 (name from the require)&gt;</div><div><br></div><div>error refe=
rencing whatever I tried to require.</div><div><br></div><div>I&#39;m using=
 require as show in the docs, ex:</div><div><br></div><div><pre class=3D"m_=
-2625769874403678614gmail-sh_perl m_-2625769874403678614gmail-sh_sourceCode=
"> <span class=3D"m_-2625769874403678614gmail-sh_keyword">use</span> Inline=
 Ruby<span class=3D"m_-2625769874403678614gmail-sh_symbol">;</span>

 <span class=3D"m_-2625769874403678614gmail-sh_keyword">my</span> <span cla=
ss=3D"m_-2625769874403678614gmail-sh_variable">$obj</span> <span class=3D"m=
_-2625769874403678614gmail-sh_symbol">=3D</span> SomeClass<span class=3D"m_=
-2625769874403678614gmail-sh_symbol">-&gt;</span>new<span class=3D"m_-26257=
69874403678614gmail-sh_symbol">;</span>

 __END__
 __Ruby__

 <span class=3D"m_-2625769874403678614gmail-sh_comment"># Pretend SomeClass=
 is defined in an external library</span>
 <span class=3D"m_-2625769874403678614gmail-sh_keyword">require</span> <spa=
n class=3D"m_-2625769874403678614gmail-sh_string">&#39;SomeClass&#39;</span=
></pre><br></div><div>If I specify the entire path in the require it will w=
ork and load, however this is not practical to do for every gem and its dep=
endencies.</div><div><br></div><div>Ruby is 2.4.1 ...</div><div><br></div><=
div>Inline::Ruby does compile fine and pass the make test</div><div><br></d=
iv><div>thanks for any help I&#39;ve been unable to resolve this...</div><d=
iv><br></div><div>cheers</div><div><br></div><div><br></div><div><br></div>=
</div>

--001a1140990a3271a10567206c75--