Hello fuzzmonkey,

First of all, thanks for the hint about RPerl I had no idea.

To the question, I tried also to install RPerl on my LnuxOS and so far I was not successful. I found though that I need to install Package libgmp3-dev on Debian/derived systems.

I also found out that I need to install m4, only after installing those packages I was able to install Math::BigInt::GMP as the Anonymous Monk pointed out.

So far the process is compiling with no errors, I will keep you posted if I manage to install it.

Update: Looks it is installed after the packages.

Appending installation info to /home/tinyos/perl5/lib/perl5/x86_64-lin +ux-gnu-thread-multi/perllocal.pod WBRASWELL/RPerl-2.450000.tar.gz /usr/bin/make install -- O

After installing the module RPerl I tried to execute the sample of code and I got the following error:

/usr/bin/ld: cannot find -lperl collect2: error: ld returned 1 exit status

So in case you are running Debian/derived system the solution is simply install libperl-dev.

Finally running the script with debugger mode on it prints:

$ rperl -D test.pl in rperl, have $RPerl::DEBUG = 1 in rperl, have $RPerl::VERBOSE = 0 g++ -pthread -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-a +liasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET +_BITS=64 -xc++ -I"/home/tinyos/perl5" -I"/home/tinyos/perl5/lib/perl5 +" -Ilib -Wno-unused-variable -DNO_XSLOCKS -Wno-deprecated -std=c++11 +-Wno-reserved-user-defined-literal -Wno-literal-suffix -D__CPP__TYPES + -D__TYPE__INTEGER__LONG -D__TYPE__NUMBER__DOUBLE -O3 -fomit-frame-po +inter -march=native -g -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" -fPIC + "-I/usr/lib/x86_64-linux-gnu/perl/5.22/CORE" ./test.cpp -o ./test - +lperl have $foo = 33 have $bar = 1_932 have $baz = 58.545_454_545_454_5

Hope this helps.

Seeking for Perl wisdom...on the process of learning...not there...yet!

In reply to Re: How to compile RPerl successfully? by thanos1983
in thread How to compile RPerl successfully? by fuzzmonkey

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.