in reply to Hello Word\n

Modules that are not pure Perl (ie with C libraries) can't easily installed by copying the perl files, and the library paths are system dependent.

Why don't you just install the module via CPAN? cpan -i Sybase::DBlib and you're done.

P.S. please use a more descriptive title for your posting, like "installing Sybase::DBli' or something, you can change it still.

Replies are listed 'Best First'.
Re: Installing Sybase::DBlib problems
by wilko (Acolyte) on Nov 20, 2008 at 12:58 UTC
    thanks to all for replies so far...
    The problem with installing the module via CPAN is that it would need to be done on many servers which is not practical. I may need a re-think on how to deploy. It's a shame coz the Clients that I deploy to don't even need the Sybase:DBlib! Only the Server needs it (which already has it installed and working). Thing is, I want all my perl in 1 script which takes a parameter on the command line like Send or Recv depending on whether it's the client(sender) or server(recv)
      the Clients that I deploy to don't even need the Sybase:DBlib!

      Well, then don't load it in this case... :)   The if module might come in handy for that.  E.g.

      sub SERVER() {1} # or: use constant SERVER => 1; use if SERVER, "Sybase:DBlib";
        yeah i tried the logical route but failed miserably. I still get the same error message...

        if($param eq "send"){ sendMounts() } elsif($param eq "recv") { use lib './lib'; use Sybase::DBlib; }
        So the senders don't even need the Sybase::DBlib but the script still dies on use Sybase::DBlib
      Most unixish systems use some kind of package system for installing software (for example Debian uses .deb, RedHat uses .rpm etc.). Usually it's not that much effort to build such a package for your OS from a CPAN distribution, for example for Debian dh-make-perl really helps.

      Probably such an option is also available for your OS (whatever it is).

      The problem with installing the module via CPAN is that it would need to be done on many servers which is not practical.
      You need to compile the sources for each platform/perl version combination you have. How to do this best depends on the infrastructure you have. Go ask around, how do you normally deploy (compiled) software?