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
|