首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >IO::Pty perl模块cpan solaris安装

IO::Pty perl模块cpan solaris安装
EN

Stack Overflow用户
提问于 2013-11-11 12:40:04
回答 1查看 1.3K关注 0票数 2

操作系统为sparc 5.10 Generic_150400-01 sun4v SunOS sun4v。已尝试通过cpan安装IO::Pty perl模块。获取了一个与编译器相关的错误,尝试将PATH环境变量设置为/opt/solarisstudio12.3/ myconfig.pm,并将cpan myconfig.pm修改为具有'make_arg‘=> qCC= /opt/solarisstudio12.3/bin /cc。但是仍然得到相同的错误。

代码语言:javascript
复制
cpan> install IO::Pty
CPAN: Storable loaded ok
Going to read /home/D99134/cpan/Metadata
  Database was generated on Sat, 09 Nov 2013 06:53:04 GMT
Running install for module IO::Pty
Running make for T/TO/TODDR/IO-Tty-1.10.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for /home/D99134/cpan/sources/authors/id/T/TO/TODDR/IO-Tty-1.10.tar.gz ok
Scanning cache /home/D99134/cpan/build for sizes
x IO-Tty-1.10, 0 bytes, 0 tape blocks
x IO-Tty-1.10/ChangeLog, 8192 bytes, 16 tape blocks
x IO-Tty-1.10/MANIFEST, 151 bytes, 1 tape blocks
x IO-Tty-1.10/META.yml, 612 bytes, 2 tape blocks
x IO-Tty-1.10/Makefile.PL, 13360 bytes, 27 tape blocks
x IO-Tty-1.10/Pty.pm, 8709 bytes, 18 tape blocks
x IO-Tty-1.10/README, 1686 bytes, 4 tape blocks
x IO-Tty-1.10/Tty.pm, 7526 bytes, 15 tape blocks
x IO-Tty-1.10/Tty.xs, 22244 bytes, 44 tape blocks
x IO-Tty-1.10/t, 0 bytes, 0 tape blocks
x IO-Tty-1.10/t/test.t, 7306 bytes, 15 tape blocks
x IO-Tty-1.10/try, 2880 bytes, 6 tape blocks
Removing previously used /home/D99134/cpan/build/IO-Tty-1.10

  CPAN.pm: Going to build T/TO/TODDR/IO-Tty-1.10.tar.gz

Now let's see what we can find out about your system
(logfiles of failing tests are available in the conf/ dir)...

ERROR: cannot run the configured compiler '/opt/SUNWspro/bin/cc'
(see conf/compilerok.log). Suggestions:
1) The complier '/opt/SUNWspro/bin/cc' is not in your PATH. Add it
   to the PATH and try again. OR
2) The compiler isn't installed on your system. Install it. OR
3) You only have a different compiler installed (e.g. 'gcc').
   Either fix the compiler config in the perl Config.pm
   or install a perl that was built with the right compiler
   (you could build perl yourself with the available compiler).

Note: this is a system-administration issue, please ask your local
admin for help. Thank you.

make: Fatal error: No arguments to build
  /usr/ccs/bin/make CC=/opt/solarisstudio12.3/bin/cc -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible
EN

回答 1

Stack Overflow用户

发布于 2013-11-14 19:52:12

您必须遵循第三个建议(修复perl的Config.pm)。这很危险,但是有一个CPAN模块,它允许您动态地进行Config.pm更改:ExtUtils::FakeConfig。只需按照文档中的说明操作即可。

这是另一篇关于在perlmonks上编辑Config.pm的文章:http://www.perlmonks.org/?node_id=570684

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19898941

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档