Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i figure out which dependences of a CPAN distribution require a compiler?

I need to install a perl tool on a production server which has no compiler. I can install CPAN distributions fine via local::lib, but the lack of compiler means I have to ask the sysadmins to install further modules. Due to them having an average turnaround time of 1-2 weeks even for the most ridiculously simple tasks, the process of trying to install, asking them to install what's borked, trying to install again, etc. etc. is extremely painful.

So how can i figure out quickly which given dependencies of a dist require a c compiler, so i can just give them a list?

like image 775
Mithaldu Avatar asked Dec 12 '22 18:12

Mithaldu


1 Answers

When you search for a module in CPAN at http://search.cpan.org, take a look at the far right side of the browser window. Over there you'll see a link called Dependencies. This is right below the link to download the module.

If you click on that link, it'll take you to http://deps.cpantesters.org which will show you the dependency tree for that module. For example, take a look at this one for File::Spec at http://deps.cpantesters.org/?module=File::Spec&perl=5.12.1&os=any+OS&pureperl=on&devperls=on.

It's not perfect, but it'll give you a good idea what modules you do need.

The best way is to use the cpan command or the ppm manager on Windows. These will automatically download the dependent modules.

like image 174
David W. Avatar answered Feb 23 '23 01:02

David W.