Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: [Perl6] How do I install Inline::Perl5

by duelafn (Vicar)
on Mar 15, 2016 at 15:32 UTC ( #1157812=note: print w/replies, xml ) Need Help??


in reply to [Perl6] How do I install Inline::Perl5

Assuming you have already installed rakudo-star, then you should have panda which is a perl6 package manager. I'd suggest using that to install:

$ panda install Inline::Perl5 ==> Fetching Inline::Perl5 ==> Building Inline::Perl5 gcc -Wall p5helper.c `perl -MExtUtils::Embed -e ccopts -e ldopts` -sha +red -o /home/duelafn/.panda-work/1458055637_1/resources/libraries/lib +p5helper.so -fPIC -g ==> Testing Inline::Perl5 t/autoload.t .................. ok t/call.t ...................... ok t/call_back.t ................. ok t/call_hash.t ................. ok t/call_p6_function_from_p5.t .. ok t/callables.t ................. ok t/can.t ....................... ok t/eval.t ...................... ok t/eval_p6_in_p5.t ............. ok t/eval_return_values.t ........ ok t/exceptions.t ................ ok t/file_handles.t .............. ok t/from.t ...................... ok t/import.t .................... ok t/inherit.t ................... ok t/invoke.t .................... ok t/invoke_p6_method_from_p5.t .. ok t/overload.t .................. ok t/p5_to_p6.t .................. ok t/p6_object_destructor.t ...... ok t/p6_to_p5.t .................. ok t/perl5package.t .............. ok t/perl5parent.t ............... ok t/stringify.t ................. ok t/use.t ....................... ok t/v6.t ........................ ok All tests successful. Files=26, Tests=353, 24 wallclock secs ( 0.08 usr 0.02 sys + 22.48 cu +sr 0.88 csys = 23.46 CPU) Result: PASS ==> Installing Inline::Perl5 ==> Successfully installed Inline::Perl5

Good Day,
    Dean

Replies are listed 'Best First'.
Re^2: [Perl6] How do I install Inline::Perl5
by syphilis (Bishop) on Mar 15, 2016 at 23:29 UTC
    ==> Successfully installed Inline::Perl5

    This doesn't go so well for me, either:
    ==> Inline::Perl5 depends on LibraryMake, File::Temp ==> File::Temp depends on File::Directory::Tree ==> Fetching LibraryMake ==> Building LibraryMake ==> Testing LibraryMake
    The dependencies install ok, but when it comes to Inline::Perl5, the process croaks:
    ==> Building Inline::Perl5 gcc -Wall p5helper.c `perl -MExtUtils::Embed -e ccopts -e ldopts` -sha +red -o /home/sisyphus/.panda-work/1458083056_1/resources/libraries/li +bp5helper.so -fPIC -g /usr/bin/ld: /home/sisyphus/perl520-multi/lib/5.20.0/x86_64-linux-thre +ad-multi/CORE/libperl.a(op.o): relocation R_X86_64_32 against `.rodat +a.str1.8' can not be used when making a shared object; recompile with + -fPIC /home/sisyphus/perl520-multi/lib/5.20.0/x86_64-linux-thread-multi/CORE +/libperl.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status make: *** [/home/sisyphus/.panda-work/1458083056_1/resources/libraries +/libp5helper.so] Error 1 The spawned process exited unsuccessfully (exit code: 2) in method build at /home/sisyphus/.panda-work/1458083056_1/Build.pm +line 22 in block at /home/sisyphus/.rakudobrew/moar-2015.12/install/share/p +erl6/site/sources/A4234738340594A5E69071A672B936D94457CB75 line 12 in method build at /home/sisyphus/.rakudobrew/moar-2015.12/install/s +hare/perl6/site/sources/A4234738340594A5E69071A672B936D94457CB75 line + 8 in method install at /home/sisyphus/.rakudobrew/moar-2015.12/install +/share/perl6/site/sources/B25B344299565BCC5FF8835BB476E47C05F93321 li +ne 133 in method resolve at /home/sisyphus/.rakudobrew/moar-2015.12/install +/share/perl6/site/sources/B25B344299565BCC5FF8835BB476E47C05F93321 li +ne 219 in sub MAIN at /home/sisyphus/.rakudobrew/moar-2015.12/install/share +/perl6/site/resources/C697BA72E25F7038F8D01BB370DCA25DFCD320D6 line 1 +8 in block <unit> at /home/sisyphus/.rakudobrew/moar-2015.12/install/s +hare/perl6/site/resources/C697BA72E25F7038F8D01BB370DCA25DFCD320D6 li +ne 150
    I don't know what's going awry there.
    The "-fPIC" flag is already present:
    sisyphus@sisyphus5-desktop:~$ perl -V:cccdlflags cccdlflags='-fPIC';
    Both "perl -V" and "perl6 -V" outputs are given below.

    Thanks guys.

    Cheers,
    Rob
      The dependencies install ok, but when it comes to Inline::Perl5, the process croaks

      Aaah ... in the Inline::Perl5 README, I had missed that perl5 needs to be built with -Duseshrplib.
      (The README actually states that -Duseshrplib is needed if you build perl with perlbrew or plenv. I use neither of those and therefore didn't really pay much attention to the actual directive but, of course, -Duseshrplib will be needed irrespective of *how* one builds perl.)

      Anyway, I've now built a perl 5.22.0 (with -Duseshrplib) specifically for use with perl6.
      And Inline::Perl5 now installs fine with panda !!

      Thanks to all for the guidance.

      Cheers,
      Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1157812]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2021-03-07 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (121 votes). Check out past polls.

    Notices?