The error indicates that the shared library file that the CRFPP modules depends on can't be found. I did some Googling, and discovered that the library you need for the CRFPP module is CRF++. The file CRFPP.so is a file that's part of the Perl CRFPP module. I did a CPAN search, but couldn't find the CRFPP module. Perhaps it's not available there?
You need to make sure you have built the CFT++ code, or downloaded a binary package of it for your platform (which you didn't specify in your request for help; that would help considerably). If you have built the library, the next step is to tell your system where the libcrfpp.so.0 file lives.
On Linux, if you have super user priveleges, you can edit the file /etc/ld.so.conf to add the path where you installed libcrfpp.so.0, then run ldconfig. After that, you can test if your module works by using this snippet on a command line
/path/to/perl -e 'use CRFPP'
If you get another command prompt with no errors, you're in business. If you still get errors, then something still isn't correct
If you don't have root priveleges, you can still tell the run time linker program (ld) where you have put the lib using an environment variable
- Linux, Solaris: LD_LIBRARY_PATH
- AIX: LIBPATH
- HP-UX: SHLIB_PATH
If you are using a csh/tcsh type shell, you want to use set to set the variable, and if you're using a sh/bash/ksh type shell you want to use export.
Whether you are using the environment variable or modifying /etc/ld.so.conf, you can use the code snippet to test whether your module is completely working. Remember, no messages == success, errors == failure
|