一个perl需要编译成bin

一个perl需要编译成bin

一个perl需要编译成bin
我自己改的Gtk2::Sexy::Tooltip的例子。perlcc 编译不出bin。linux系统的。
情况复杂。原始的效果等在:http://forum.ubuntu.org.cn/viewtopic.php?p=544517&highlight=#544517

[quote]☎ perlcc tooltip.pl -r
pcceF2u4.c: 在函数 ‘perl_init_aaac’ 中:
pcceF2u4.c:48889: 警告: 这个小数常量仅 ISO C90 中是无符号的
pcceF2u4.c: 在函数 ‘perl_init_aaah’ 中:
pcceF2u4.c:105067: 警告: 这个小数常量仅 ISO C90 中是无符号的
/usr/bin/ld: cannot find -lperl
collect2: ld 返回 1
Can't exec "./a.out": No such file or directory at /usr/bin/perlcc line 514.
readline() on closed filehandle FD at /usr/bin/perlcc line 529.
[/quote]

源码。
[quote]use strict;
use warnings;
use Glib qw(TRUE FALSE);
use Gtk2 -init;
use Gtk2::Sexy;
use encoding ‘utf8′;
my $tooltip = Gtk2::Sexy::Tooltip->new;
my $hbox = Gtk2::HBox->new(FALSE, 5);
$hbox->show;
$tooltip->add($hbox);
my $image = Gtk2::Image->new_from_stock(’gtk-dialog-authentication’, ‘dialog’);
$image->show;
$hbox->pack_start_defaults($image);
my $label = Gtk2::Label->new;
$label->set_markup( $ARGV[0] );
$label->show;
$hbox->pack_start_defaults($label);
$tooltip->show;
eval {
alarm(5);
Gtk2->main;
alarm(0);
}
[/quote]
呵呵,去中国站长站,下载
Perl Dev kit 5.XX
一个perl需要编译成bin
☎ locate libperl.so
/usr/lib/libperl.so.5.8
/usr/lib/libperl.so.5.8.8
/usr/lib/libperl.so

☎ as perl|grep ^i
i libcairo-perl - Perl interface to the Cairo graphics libra
i A libconvert-asn1-perl - Perl module for encoding and decoding ASN.
i A libcrypt-smbhash-perl - generate LM/NT hash of a password for samb
i A libcurses-perl - Curses interface for Perl
i A libcurses-ui-perl - curses-based OO user interface framework f
i A libdigest-md4-perl - MD4 Message Digest for Perl
i A libdigest-sha1-perl - NIST SHA-1 message digest algorithm
i A libft-perl - Perl module for the FreeType library
i libglib-perl - Perl interface to the GLib and GObject lib
i libgnome-perl - Perl module for the gnome and zvt librarie
i libgnome2-canvas-perl - Perl interface to the GNOME canvas library
i libgnome2-perl - Perl interface to the GNOME libraries
i libgnome2-vfs-perl - Perl interface to the 2.x series of the GN
i A libgtk-imlib-perl - Perl module for the gdkimlib library
i A libgtk-perl - Perl module for the gtk+ library
i libgtk2-perl - Perl interface to the 2.x series of the Gi
i libhtml-parser-perl - A collection of modules that parse HTML te
i libhtml-tagset-perl - Data tables pertaining to HTML
i libhtml-tree-perl - represent and create HTML syntax trees
i A libio-socket-ssl-perl - Perl module implementing object oriented i
i A libjcode-pm-perl - Perl extension interface to convert Japane
i liblocale-gettext-perl - Using libc functions for internationalizat
i libnet-dbus-perl - Perl extension for the DBus message system
i A libnet-ldap-perl - A Client interface to LDAP servers
i A libnet-ssleay-perl - Perl module for Secure Sockets Layer (SSL)
i libperl-dev - Perl library: development files
i libperl5.8 - Shared Perl library
i A librpc-xml-perl - Perl module implementation of XML-RPC
i A libterm-readkey-perl - A perl module for simple terminal control
i A libterm-readline-perl-perl - Perl implementation of Readline libraries
i libtext-charwidth-perl - get display widths of characters on the te
i libtext-iconv-perl - converts between character sets in Perl
i libtext-wrapi18n-perl - internationalized substitute of Text::Wrap
i A libtie-ixhash-perl - ordered associative arrays for Perl
i A libunicode-map-perl - Perl module for mapping charsets from and
i A libunicode-map8-perl - Perl module to map 8bit character sets to
i A libunicode-maputf8-perl - Perl module for conversing between any cha
i A libunicode-string-perl - Perl modules for Unicode strings
i liburi-perl - Manipulates and accesses URI strings
i libwww-mechanize-perl - Automate interaction with websites
i libwww-perl - WWW client/server library for Perl (aka LW
i libxml-grove-perl - Perl module for accessing parsed *ML insta
i libxml-parser-perl - Perl module for parsing XML files
i libxml-perl - Perl modules for working with XML
i A libxml-twig-perl - Perl module for processing huge XML docume
i A libxml-xpath-perl - Perl module for processing XPath
i perl - Larry Wall's Practical Extraction and Repo
i perl-base - The Pathologically Eclectic Rubbish Lister
i perl-doc - Perl documentation
i perl-modules - Core Perl modules
i A perlmagick - A perl interface to the libMagick graphics

应该是比较全的。dev的包,我都走过一次了的。