in reply to How to compile RPerl successfully?

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!

Replies are listed 'Best First'.
Re^2: How to compile RPerl successfully?
by fuzzmonkey (Sexton) on Apr 11, 2017 at 00:09 UTC
    Thanks Thanos this is exactly what I needed to do to get it working on my Debian box. Also needed some openssl development libraries.