免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2449 | 回复: 4
打印 上一主题 下一主题

各位帮我看一下这是什么问题 can't locate the perl binary [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-04-17 22:49 |只看该作者 |倒序浏览
我编译module::build模块时遇到的问题,下面是操作过程
编经译其他的模块没问题,就是这个出这样的错误

  1. [fangjun@ziyun Module-Build-0.2808]$ perl Makefile.PL
  2. # running Build.PL
  3. Can't locate the perl binary used to run this script in (/usr/local/bin /usr/local/bin /usr/bin /home/fangjun/bin /bin /usr/bin /usr/local/bin /usr/X11R6/bin /usr/games /usr/lib/qt3/bin /sbin /usr/sbin /usr/local/sbin /usr/lib/qt3/bin)
  4. [fangjun@ziyun Module-Build-0.2808]$ type -a perl
  5. perl is /usr/bin/perl
  6. perl is /usr/local/bin/perl
  7. [fangjun@ziyun Module-Build-0.2808]$ ls -l /usr/bin/perl
  8. lrwxrwxrwx 1 root root 19  3月 17 19:49 /usr/bin/perl -> /usr/local/bin/perl*
  9. [fangjun@ziyun Module-Build-0.2808]$  
复制代码

这是makefile.pl的内容

  1. [fangjun@ziyun Module-Build-0.2808]$ cat Makefile.PL
  2. # This Makefile.PL creates a pass-through Makefile that simply calls
  3. # the equivalent Module::Build methods for each make target.  See the
  4. # documentation for Module::Build::Compat for more information.

  5. use lib qw(lib);
  6. use Module::Build::Compat;

  7. Module::Build::Compat->run_build_pl(args => \@ARGV);
  8. Module::Build::Compat->write_makefile(build_class => 'Module::Build');
  9. [fangjun@ziyun Module-Build-0.2808]$
复制代码

[ 本帖最后由 fangdingj 于 2008-4-17 22:55 编辑 ]

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
2 [报告]
发表于 2008-04-18 16:57 |只看该作者
实际执行看看/usr/bin/perl -V 看看有没有东西...
也许是symbolic link有问题..

论坛徽章:
0
3 [报告]
发表于 2008-04-18 21:18 |只看该作者
回apile 大哥:
执行/usr/bin/perl -V 没有问题,输出的perl 的配置选项
链接没有问题,使用perl没有问题,就是在编译这个模块时出现问题,我觉得非常奇怪
看来我只有放弃编译这个模块了

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
4 [报告]
发表于 2008-04-19 10:28 |只看该作者
自己在该module 最上面加上一行
#!/usr/bin/perl
再编译看看...

论坛徽章:
0
5 [报告]
发表于 2008-04-19 13:20 |只看该作者
谢谢apile大哥
根据你的提醒,我看了下Makefile.PL,有个run_buid_pl 于是我不用Makefile 直接执行 perl Build.Pl;./Build install 就好了,
可能是Module::Build::Compat 哪里有点小问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP