Is it possible?
Installing Switch.pm using CPAN:Open a terminal(Ctrl-Alt-t). Enter the command cpan. At the prompt cpan[1]>, type install Switch. Once completed, Type exit.
In this case, I can use “force install” command as shown below to instruct cpan to install the module, despite the fact that some of the tests failed. If the force install works, you'll see “/usr/bin/make install — OK” as the last line in the output as shown below. Note: Don't blindly use force install.
If you download the source code, and read the README
file. This will probably tell you you should do
perl Makefile.PL
make
make test
make install
or
perl Build.PL
./Build
./Build test
./Build install
If you download the source code, it will generally have a Makefile.PL. You run "perl Makefile.PL; make; make test; make install" and it will build and install for you.
Obviously if you're not using CPAN.pm, you're going to have to deal with dependencies yourself.
Also, if the reason you can't use CPAN.pm is that you don't have permission to install into /usr/lib/perl, you can force CPAN.pm to install locally, but I forget how.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With