PCB论坛网

 找回密码
 注册
查看: 1905|回复: 7

perl/tk在genesis2000编程中的运用

[复制链接]
发表于 2008-11-7 22:43:00 | 显示全部楼层 |阅读模式

1、如何能让genesis自带的perl/tk程序(/genesis/e91/all/perl下的例子程序)运行起来,如何设置啊?

回复

使用道具 举报

 楼主| 发表于 2008-11-9 11:09:00 | 显示全部楼层
是不是在Windows系统中无法运行,一定要在UNIX呢!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-11-9 11:10:00 | 显示全部楼层

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

回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-11-12 21:43:00 | 显示全部楼层
有谁知道啊!
回复 支持 反对

使用道具 举报

发表于 2008-11-13 00:04:00 | 显示全部楼层

三楼的不是以经告诉你了吗...

回复 支持 反对

使用道具 举报

发表于 2008-11-16 13:58:00 | 显示全部楼层
1.2.3楼是同一个人,他只是看不懂英文,我也看不懂,哪位高手翻译一下。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-11-26 12:41:00 | 显示全部楼层
 g
回复 支持 反对

使用道具 举报

发表于 2008-11-29 08:48:00 | 显示全部楼层
此问题在之前的贴子有发布过,请搜索一下,应该可以找到!PERL很好安装的...
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|手机版|PCB设计论坛|EDA论坛|PCB论坛网 ( 沪ICP备05006956号-1 )

GMT+8, 2024-6-28 18:45 , Processed in 0.225593 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表