Chinaunix

标题: 如何把.pl文件编译成字节代码? [打印本页]

作者: milk_    时间: 2006-04-06 09:31
标题: 如何把.pl文件编译成字节代码?
perlcc -B -o src.pl

生成的a.out 执行起来有问题,怎么办?


error message:

Invalid bytecode for this architecture: wrong architecture (want PA-RISC2.0, you have PA-RISC1.1-thread-multi) at a.out line 2.
作者: milk_    时间: 2006-04-06 12:50
标题: 回复 1楼 milk_ 的帖子
没有人回答吗?
编译好以后的字节代码怎么运行啊?
作者: milk_    时间: 2006-04-06 16:37
标题: 回复 2楼 milk_ 的帖子
没有人使用过perlcc吗?
作者: ulmer    时间: 2006-04-06 18:08
原帖由 milk_ 于 2006-4-6 09:31 发表
perlcc -B -o src.pl

生成的a.out 执行起来有问题,怎么办?


error message:

Invalid bytecode for this architecture: wrong architecture (want PA-RISC2.0, you have PA-RISC1.1-thread-multi) at  ...


Hi,

your perlcc requires PA-RISC2.0 (your OS is HP-UNIX?), but your system has only PA-RISC1.1
Ask youe system administrator.

Best, ulmer
作者: mail-j    时间: 2006-04-06 18:32
标题: 我也顺便问一下
我用perlcc编译perl 程序,出现下边的错误是怎么回事啊


  1. sdunicomc$perlcc multistage.pl
  2. 段错误-核心陷阱
  3. /usr/local/bin/perlcc: multistage.pl did not compile, which can't happen:
  4. Starting compile
  5. Walking tree
复制代码



有没有介绍perlcc的资料啊,大家各说一下,我想了解,谢谢各位先
作者: ulmer    时间: 2006-04-06 18:58
原帖由 mail-j 于 2006-4-6 18:32 发表
我用perlcc编译perl 程序,出现下边的错误是怎么回事啊

[code]
sdunicomc$perlcc multistage.pl
段错误-核心陷阱
/usr/local/bin/perlcc: multistage.pl did not compile, which can't happen:
Starting  ...


Document just under your hand, type under shell:

perldoc perlcc
作者: mail-j    时间: 2006-04-07 10:25
Thank you



原帖由 ulmer 于 2006-4-6 18:58 发表


Document just under your hand, type under shell:

perldoc perlcc

作者: milk_    时间: 2006-04-10 13:31
原帖由 mail-j 于 2006-4-7 10:25 发表
Thank you





感觉我编译的东东都不能运行的,不知道为什么啊/




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2