Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: pp generated executable can't find or load libraries

by vexed (Novice)
on Apr 13, 2021 at 13:13 UTC ( #11131175=note: print w/replies, xml ) Need Help??


in reply to Re: pp generated executable can't find or load libraries
in thread pp generated executable can't find or load libraries

Hi swl,

Many thanks for your input! I think we are making progress here.

I am now getting the below error instead.

Can't locate object method "start_SSL" via package "IO::Socket::SSL" at script/sendemail.pl line 474.
  • Comment on Re^2: pp generated executable can't find or load libraries

Replies are listed 'Best First'.
Re^3: pp generated executable can't find or load libraries
by swl (Priest) on Apr 13, 2021 at 21:54 UTC

    It seems that a plain pp call, even with the -x flag, does not trigger all of the libraries, but packing works under pp_autolink.

    You could also add these lines to the script, assuming in your case you always want to use them anyway:

    BEGIN { use Net::SSLeay; use IO::Socket::SSL; IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'TLSv1_2', SSL_ +verify_mode => 0 ); }

    When I run the exe I can get the usage information.

    However, I have not tested if sending emails actually works, and that might be the next point of failure, leading to your other reply in 11131180.

      You are an absolute legend!!!

      It works now :D

      Many thanks for your time and help, it is greatly appreciated.

        Good to hear it works now, and you're welcome.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11131175]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2021-06-21 16:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (99 votes). Check out past polls.

    Notices?