Giuseppe D'alterio
Giuseppe D'alterio

Reputation: 229

Installing a perl package

I am trying to install a Perl package (Config::General). I need it because I have to run a Perl script in which such package is required. I've already tried to install the package by using perl -MCPAN -e install Config::General, and apparently it seemed to work! However, when I run the Perl script, the terminal gives me this error:

BEGIN failed--compilation aborted at /Volumes/MYBOOK8TB1/SVDetect/SVDetect_r0.7m/bin/SVDetect line 48

(Yes, line 48 of the perl script is where this package is loaded). How could I solve such riddle?

Upvotes: 0

Views: 672

Answers (1)

Giuseppe D'alterio
Giuseppe D'alterio

Reputation: 229

Thank you all for your answers. I solved the problem by running the command

sudo cpan

in order to enter perl as sudo, and then simply installed the required package by typing

install Config::General

Upvotes: 2

Related Questions