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

Error compiling perl program with perlcc with DBI

by mkirank (Chaplain)
on Dec 03, 2001 at 12:27 UTC ( [id://129050]=perlquestion: print w/replies, xml ) Need Help??

mkirank has asked for the wisdom of the Perl Monks concerning the following question:

i tried to compile a perl program with perlcc but since i was using DBI when i run the compiled program i get the error Can't locate object method "connect" via package "DBI" but the program runs when i dont compile Thanks in advance

Edit kudra, 2001-12-03 Changed title

Replies are listed 'Best First'.
Re: Compile Perl Programs
by growlf (Pilgrim) on Dec 03, 2001 at 15:20 UTC
    "The first thing about 'perlcc' is that you dont talk about perlcc.."
    *chuckle* sorry, there is a warning on perlcc that claims it is not fully bugfree etc, etc and untill I purchased the Activestate dev kit, I had very poor and eradic luck with the gizmo.

    However what I learned may be of use here. Make sure that you DO have 'use' lines for all your modules - like DBI - but also for the DBD you intend to use as well. Then, add those into the command line of the compiler as included modules.

    The compiler does not know where these things are- after all it is generally just cc or gcc and knows nothing of perl.

    *G*

Re: Error compiling perl program with perlcc with DBI
by sparkyichi (Deacon) on Dec 04, 2001 at 20:49 UTC
    You might want to try perl2exe. I have had very good luck
    with it and you can try it out for free.

    www.indigostar.com
    The only down side is that with the free version, when the code completes it will write some propaganda to the screen.
    Sparky

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://129050]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2024-03-29 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found