Skip to content

Instantly share code, notes, and snippets.

@VienosNotes
Created July 6, 2012 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VienosNotes/3060244 to your computer and use it in GitHub Desktop.
Save VienosNotes/3060244 to your computer and use it in GitHub Desktop.
Error log with building Rakudo
Error log says that
---
% ./Configure.pl --gen-parrot
Bareword found where operator expected at lib/lib.pm line 3, near "@*INC"
(Missing operator before INC?)
Operator or semicolon missing before *INC at lib/lib.pm line 3.
Ambiguous use of * resolved as operator * at lib/lib.pm line 3.
syntax error at lib/lib.pm line 3, near "@*INC"
Compilation failed in require at ./Configure.pl line 10.
BEGIN failed--compilation aborted at ./Configure.pl line 10.
---
and line 10 of Configure.pm is following:
use lib "tools/lib";
I think this statement "use lib qw/foo/" adds directory "foo" to @INC by all right,
but perl includes a "foo" subroutine in module named "lib" if there is "lib/lib.pm".
@moritz
Copy link

moritz commented Jul 6, 2012

The reason is probably that you have 'lib' in your perl 5 @INC path (for example throught he PERL5LIB or PERLLIB environment variables), and thus 'use lib ...' tries to load the wrong rakudo's lib/lib.pm, which is written in Perl 6. Can you please check your envirnoment if that is the case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment