Hello, I've a question which regarding perl/mysql. I'm trying to install a "User Defined Function" which allow s perl to be embedded in sql statements. See here. I've followed all the required instructions for compilation of the shared object. I then copied it to /usr/lib, and then ran ldconfig, which itself is configured to look in /usr/lib. Now I'm trying to i nsert the UDF record as follows:
CREATE FUNCTION myperl RETURNS STRING SONAME "my_perl.so";
And I recieve the error:
ERROR 1126: Can't open shared library 'my_perl.so' (errno: 22 my_perl. +so: cannot open shared object file: No such file or dire)
I guess I'm missing a step, and I'm not sure where to go. How does mysql know where to look for UDF obj ects? Will I have to recompile the mysqld? This is rather new territory, and I would realy appreciate any help. Has anyone else had experience with UDFs? Not necessarily this one.... Thanks much.

In reply to MySQL UDF for Perl by mhearse

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.