Wednesday, October 14, 2015

OS X EI Capitan Perl error: Can't locate modules in @INC

Recently I upgraded my OS X from Yosemite to EI Capitan because many reviews showed EI Capitan run much faster than Yosemite. However I encountered a compiler problem when using perl

"can't locate xml/ in @INC"

It means XML::Parser module can't be found in Perl's include path (opt/local/bin/perl). To solve this problem, we may use CPAN (the Comprehensive Perl Archive Network). To get CPAN shell, run

> sudo perl -MCPAN -eshell

then install XML parser

cpan[2]> install XML::Parser

For other missing modules, we just install the requested modules, for example,

cpan[2]> install XML::Writer

No comments:


Blog Archive

About Me

My photo
HD Multimedia Technology player