Permalink
Browse files

Perlito5 - perl6-eval.p6: fix for niecza

  • Loading branch information...
fglock committed May 26, 2012
1 parent ae3f389 commit ec8949cb62667ba85ffc574a7736a41c84096bd1
Showing with 9 additions and 0 deletions.
  1. +9 −0 perl6-eval.p6
View
@@ -1,6 +1,7 @@
use v6;
multi eval($str, :$lang! where 'perl5') {
+ $lang; # workaround for niecza: '$lang is declared but not used'
my $inp_file = "tmp.p5";
my $out_file = "tmp.p6";
my $fh = open($inp_file, :w);
@@ -23,6 +24,14 @@ eval($p5_str, :lang<perl5>);
=begin comments
+Note: to run niecza in osx you need:
+
+ $ export LD_LIBRARY_PATH=/opt/local/lib
+
+ Missing LD_LIBRARY_PATH gives the error:
+ "Unhandled exception: System.TypeInitializationException"
+
+
Note: fixed in rakudo commit e756635b9e:
If I define multi eval($str, :$lang! where 'perl5')

0 comments on commit ec8949c

Please sign in to comment.