You appear to have 2 problems. First you need to check that your Enmac::Transaction module is properly installed. As a binary module it needs to be comiled for both 5.6 and 5.8 as these are not bin compat. perl(5.8) Makefile.PL where the version of perl you use to run the Makefile.PL determines which perl is used to do the install. Now check the version of perl you get (should be 5.8.x) and then run your module E::T module off the command line:

$ perl -v This is perl, v5.6.2 built for i686-linux # should be 5.8.x for you [snip] $ perl -MSocket -e 'print $Socket::VERSION, $/'; 1.72 $ perl -MEnmac::Transaction -e 'print $Socket::VERSION, $/'; Can't locate Enmac/Transaction.pm in @INC (@INC contains: /usr/local/l +ib/perl5/5.6.2/i686-linux /usr/local/lib/perl5/5.6.2 /usr/local/lib/p +erl5/site_perl/5.6.2/i686-linux /usr/local/lib/perl5/site_perl/5.6.2 +/usr/local/lib/perl5/site_perl .). BEGIN failed--compilation aborted. $

Now obviously this should work for both on your system. If it does not either your module is not installed for 5.8 (or if as you insist it is actually where it should be it will almost certainly be a permissions issue). Anyway this little test also proves that Socket (which needs Socket.so binary) will load OK under perl. Once you have that sorted you can then look at the embed code.

With your embed widget try loading Socket - does that work or fail? You know it works from the command line. If it does there is no obvious reason why your E::T module won't work.

Oh the dXSUB_SYS is mostly a NOOP unless you are on OS2. Perl has lots of macros - grep is your friend:

[root@devel3 perl-5.8.3]# grep -R "#define dXSUB_SYS" ./* ./dosish.h:#define dXSUB_SYS ./epoc/epocish.h:#define dXSUB_SYS ./mpeix/mpeixish.h:#define dXSUB_SYS ./os2/os2ish.h:#define dXSUB_SYS OS2_XS_init() ./plan9/plan9ish.h:#define dXSUB_SYS ./unixish.h:#define dXSUB_SYS ./vms/vmsish.h:#define dXSUB_SYS [root@devel3 perl-5.8.3]#

cheers

tachyon


In reply to Re: perlembed problems by tachyon
in thread perlembed problems by cassidyc

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.