Announce: ruby-perl gem released

Hi all,

we released today a new gem I think may be of general interest:

https://rubygems.org/gems/ruby-perl

For rubyists:

ruby-perl lets you evaluate and run Perl code within the same binary,
without any heavy-weight forking of sub-processes. Enjoy the
compactness, robustness and maintainability of Perl!

For perlists:

Run your Perl application over industry-standard, enterprise-grade MRI
Ruby, Rack and Passenger!

Check out the post on our blog for more background info:
http://blog.zephirworks.com/47768566

Cheers,
Andrea

On Fri, Apr 1, 2011 at 7:27 AM, Andrea C.
[email protected] wrote:

we released today a new gem I think may be of general interest:
ruby-perl | RubyGems.org | your community gem host
GitHub - zephirworks/ruby-perl: Run Perl code from any Ruby application, or run Perl web apps on Ruby.

very nice. yet after installing, i get,

$ rperl
/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.0.7/lib/ffi/library.rb:75:in
`block in ffi_lib’: Could not open library
‘/usr/lib/perl/5.8/CORE/libperl.so’:
/usr/lib/perl/5.8/CORE/libperl.so: cannot open shared object file: No
such file or directory (LoadError)

$ locate libperl.so
/usr/lib/libperl.so
/usr/lib/libperl.so.5.8
/usr/lib/libperl.so.5.8.8

$ lsb_release -a
LSB Version:
core-2.0-ia32:core-3.0-ia32:core-3.1-ia32:core-3.2-ia32:core-4.0-ia32:core-2.0-noarch:core-3.0-noarch:core-3.1-noarch:core-3.2-noarch:core-4.0-noarch:cxx-3.0-ia32:cxx-3.1-ia32:cxx-3.2-ia32:cxx-4.0-ia32:cxx-3.0-noarch:cxx-3.1-noarch:cxx-3.2-noarch:cxx-4.0-noarch:desktop-3.1-ia32:desktop-3.2-ia32:desktop-4.0-ia32:desktop-3.1-noarch:desktop-3.2-noarch:desktop-4.0-noarch:graphics-2.0-ia32:graphics-3.0-ia32:graphics-3.1-ia32:graphics-3.2-ia32:graphics-4.0-ia32:graphics-2.0-noarch:graphics-3.0-noarch:graphics-3.1-noarch:graphics-3.2-noarch:graphics-4.0-noarch:languages-3.2-ia32:languages-4.0-ia32:languages-3.2-noarch:languages-4.0-noarch:multimedia-3.2-ia32:multimedia-4.0-ia32:multimedia-3.2-noarch:multimedia-4.0-noarch:printing-3.2-ia32:printing-4.0-ia32:printing-3.2-noarch:printing-4.0-noarch
Distributor ID: Ubuntu
Description: Ubuntu 8.04.4 LTS
Release: 8.04
Codename: hardy

thanks for rperl.
best regards -botp

On Fri, Apr 1, 2011 at 3:31 AM, botp [email protected] wrote:

`block in ffi_lib’: Could not open library
‘/usr/lib/perl/5.8/CORE/libperl.so’:
/usr/lib/perl/5.8/CORE/libperl.so: cannot open shared object file: No
such file or directory (LoadError)

$ locate libperl.so
/usr/lib/libperl.so
/usr/lib/libperl.so.5.8
/usr/lib/libperl.so.5.8.8

Can you send me (or better yet open an issue on github) with the output
of:

perl -V

Thanks for the bug report,
Andrea

On Fri, Apr 1, 2011 at 7:32 AM, Andrea C.
[email protected] wrote:

/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.0.7/lib/ffi/library.rb:75:in
`block in ffi_lib’: Could not open library
‘/usr/lib/perl/5.8/CORE/libperl.so’:
/usr/lib/perl/5.8/CORE/libperl.so: cannot open shared object file: No
such file or directory (LoadError)

$ locate libperl.so
/usr/lib/libperl.so
/usr/lib/libperl.so.5.8
/usr/lib/libperl.so.5.8.8

I think I’ve fixed this issue, I would appreciate it if you could try
again.

Can you send me (or better yet open an issue on github) with the output of:

perl -V

And of course, once rperl is working for you, “rperl -V” will do the
trick too :slight_smile:

Andrea

Is anyone using ruby-perl in a Phuby on Phails application? I also need
to
interface with a CORBA service and was looking at the zomg gem. Has
anyone
managed to call out to an omfg-generated Ruby script from either
ruby-perl
or Phuby on Phails? I would preferably like to use both… perhaps
someone
can write a phzomg interface to omfg-generated IDL wrapped Ruby? How
would I
then call this with ruby-perl? rupephzomg?

On Thu, Mar 31, 2011 at 5:27 PM, Andrea C.

On Fri, Apr 1, 2011 at 8:22 AM, Tony A. [email protected]
wrote:

Is anyone using ruby-perl in a Phuby on Phails application? I also need to
interface with a CORBA service and was looking at the zomg gem. Has anyone
managed to call out to an omfg-generated Ruby script from either ruby-perl
or Phuby on Phails? I would preferably like to use both… perhaps someone
can write a phzomg interface to omfg-generated IDL wrapped Ruby? How would I
then call this with ruby-perl? rupephzomg?

Interesting questions and a clever naming convention.

I didn’t try Phuby on Phails (I should!), but we’re doing something
just as cool.
We use the ST package (ST: PERL package for simulation and test environment | IEEE Conference Publication | IEEE Xplore) for perl (nicknamed PeST),
and now with ruby-perl I can run it with JRuby, which spells out JeST.