How do I compile a perlTk program into a binary with perlcc
so that the Tk libraries are compiled into my executable.
I compile with this:
gcc -I/usr/local/include -O
-I/usr/local/lib/perl5/5.00503/sun4
-solaris/CORE /usr/local/lib/perl5/5.00503/sun4
-solaris/auto/Fcntl/Fcntl.so -o hw5 stricttrans2.pl.c
-L/usr/local/lib -L/usr/local/lib/perl5/5.00503/sun4-solaris/CORE
-lperl -lsocket -lnsl -ldl -lm -lc -lcrypt
And want to avoid:
mcs03:mango(6)% ./hw5 -g
Can't locate Tk.pm in @INC
(@INC contains: /home/mango/brad /home/mango/sun4-solaris
/usr/local/lib/perl5/5.00503/sun4-solaris
/usr/local/lib/perl5/5.00503 /usr/local/lib/perl5/site_perl/5.005/sun4-solaris
/usr/local/lib/perl5/site_perl/5.005 .) at stricttrans2.pl line 242.
Is this possible??? I want to run the binary on a machine w/o PerlTk...
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.