perl/tk在genesis2000编程中的运用
1、如何能让genesis自带的perl/tk程序(/genesis/e91/all/perl下的例子程序)运行起来,如何设置啊?
是不是在Windows系统中无法运行,一定要在UNIX呢!
Install Perl
============
You need to unzip the perl tar file, read the INSTALL file,
run Configure, and then run make. You will also need a C compiler.
Install the Perl files enabling sockets
=======================================
Once Perl has been installed, you must ensure that you run the Perl
program h2ph. This creates a number of Perl files which are necessary
to enable the use of sockets.
cd /usr/include; h2ph * sys/*
Change /etc/services
=====================
You will need to add the following line to the file /etc/services
genesis 56753/tcp # Genesis port for scripts
so that the correct socket number is used.
Inspect the files in /genesis/eNN/all/perl
==========================================
Have a look in the directory /genesis/eNN/all/perl, where NN is the
version number. You will find the following files:
Genesis.pm
server.pl
example.pl
Genesis.pm is the interface from Perl to Genesis and must be used in
all scripts.
server.pl is the script to run from Genesis to allow perl scripts to
be debugged.
example.pl is an example of a Perl script.
All these files are scripts and are readable.
Install Genesis.pm
==================
Genesis.pm is a Perl library, and as such, Perl must know where to
find it. The simplest option is to install the file in the site_perl
directory which is under the lib/perl/site_perl directory of wherever
yo have installed Perl.
Alternatively, you can leave it where it is and define the global
variable PERLLIB to point to the correct directory. Or, you can define
the library area by placing the line
use lib qw(/genesis/e30/all/perl) ;
before "use Genesis" in your script.
See the Perl manual for a fuller description of these options.
Read rules regarding Perl scripts
有谁知道啊!
三楼的不是以经告诉你了吗...
1.2.3楼是同一个人,他只是看不懂英文,我也看不懂,哪位高手翻译一下。
g
此问题在之前的贴子有发布过,请搜索一下,应该可以找到!PERL很好安装的...
