Kevin Nykon wrote:

> I have perl code that a contractor wrote for us. He was able to get the code
> to compile using perl2exe in his WIN box. The problem is I need to take this
> code and compile it on a solaris box.  I succesfully installed ActivePerl
> and downloaded Perldap. I was unable to get ppm to work so I downloaded the
> tar'd version and untared it. I recieved a ::Mozzilla::LDAP ..etc..pm not
> found of a few of the pm files. Just for gigles I copied the pm files into
> the bin directory of perl and 2 of the files were then found but a couple
> were still getting errors becuase they are referenced within other pm
> files.  How do I let the compiler know where the correct pm files are. I
> tried placing the pm files into the same directory as the source and the
> compiler and also tried hardcoding the path in the source but both failed.
> Any help would be greatly apprecaited! If you could send responses to the
> news group and cc my work account that would be great, we don't have a news
> server at work ;)  Whats the best way to get this all compiled?
> [EMAIL PROTECTED]
>
> Kevin

You shouldn't be doing it that way. If you know exactly what you are doing and
you are copying from one solaris system to another (or if your extensions do not
require any .so files) you can sometimes get away with this. However,
Mozilla::LDAP uses .so files so you will have to install Mozilla::LDAP on your
system by obtaining the source and following the installation instructions
(probably 'perl Makefile.PL; make; make test; make install').

The first step ("perl Makefile.PL") sets up your makefile so that the "make
install" will know where your perl expects your .pm files to be. If you have
multiple versions of perl on that system then you should replace "perl" with the
absolute path to the version you'd like to use to run your script.

Note that you won't  be able to install Mozilla::LDAP (aka perldap) unless you
have libldapxx.so available on that system, which means you may need to install
the ldap SDK for C/C++.

You should also install any other modules your script needs. You can find them
at search.cpan.org.


Good luck,
Dave Kernen

Reply via email to