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

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


In reply to Re: cannot open shared object file by Sinistral
in thread cannot open shared object file by gsiglet

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.