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

--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--
0
ariahtcacct
3/11/2018 10:23:55 AM
perl.inline 1281 articles. 0 followers. Follow

1 Replies
77 Views

Similar Articles

[PageSpeed] 15

From: Aria
Sent: Sunday, March 11, 2018 9:23 PM
To: inline@perl.org
Subject: Inline::Ruby, modules loaded with require not found without 
explicit path

> 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.

Not sure if there's anyone on this list who can help. (This is a morbidly 
quiet mailing list, these days.)

If you don't get assistance here you could go to 
https://github.com/shlomif/Inline-Ruby and open an "Issue" there.
The current Inline::Ruby maintainer (shlomif) is still fairly active, so 
you'd stand a good chance of attracting his attention, at least.

Other than that, there might be someone lurking at perlmonks who can help - 
so you could also try going to 
http://www.perlmonks.org/?node=Seekers%20of%20Perl%20Wisdom and posting your 
question there (at the bottom of the page).
Following that, you'd then check for responses at 
http://www.perlmonks.org/?node=Newest%20Nodes

Cheers,
Rob
0
sisyphus1
3/11/2018 11:44:22 AM
Reply: