1

I have to use a Perl script on different (linux based) Database machines with the DBI module to connect. The oracle drivers are installed, too.

Perl and all the modules are only installed on my 'home' machine, it's not possible on the others. So i tried to copy the modules from the working machine to a DB machine.

I get following error:

install_driver(Oracle) failed: Unable to get DBI state function. DBI not loaded. at /usr/lib64/perl5/DynaLoader.pm line 223.
Compilation failed in require at (eval 5) line 3.

My modules are installed with cpanmini, how can i find out which modules to copy for my script? I think there are dependencies which i don't recognize?!

Exhausted
  • 1,867
  • 2
  • 23
  • 33
Maik
  • 331
  • 2
  • 4
  • 12

2 Answers2

2

It's not a good idea to copy modules from one machine to another. What if your module or its dependencies are written partially in C (XS)?

If you can't use cpan on other machine then download the module and its dependencies from https://metacpan.org and install them manually.

See:

Community
  • 1
  • 1
Chankey Pathak
  • 21,187
  • 12
  • 85
  • 133
  • yeah, i read these topics and think i just need to find another way, because manually installing isn't possible - we got no connection to the internet at all. But i'm aware now, that just copying modules isn't that easy ;) – Maik Jan 06 '15 at 10:34
1

This has been answered elsewhere. Please see

Community
  • 1
  • 1
Diab Jerius
  • 2,310
  • 13
  • 18