Termux中安装Curses-1.06 Perl模块失败的问题求助
求助:Termux下安装WPS/Curses-1.06模块失败
操作背景
- 进入cpan交互模式后,执行
i/Modulo/可查看模块及作者;执行i/Curses/能找到多个curses相关模块,但找不到William Setzer(WPS)开发的Curses-1.06 - 执行
cpan> i /wps/仅能查到作者,无法定位对应模块;执行cpan> i /WPS/Curses-1.06/返回No objects found of any type for argument /WPS/Curses-1.06
下载与安装报错
通过cpan> install WPS/Curses-1.06.tar.gz成功下载模块,保存路径为'/data/data/com.termux/files/home/.cpan/sources/authors/id/W/WP/WPS/CHECKSUMS.tmp6759',但执行perl Makefile.PL时因guess_cfg失败报错:
Configuring W/WP/WPS/Curses-1.06.tar.gz with Makefile.PL FATAL: internal error: guess_cfg is bad Warning: No success on command[/data/data/com.termux/files/usr/bin/perl Makefile.PL] WPS/Curses-1.06.tar.gz /data/data/com.termux/files/usr/bin/perl Makefile.PL -- NOT OK Failed during this command: WPS/Curses-1.06.tar.gz : writemakefile NO '/data/data/com.termux/files/usr/bin/perl Makefile.PL' returned status 65280
尝试的修改
打开Makefile.PL文件想要添加Android相关配置(当前文件无该配置),但不确定操作是否正确。文件中已有Solaris相关配置说明:
Notes for Solaris: # In 2.3, it was reported that to make the module compile correctly # with gcc, you must add `-DSYSV=1' to $inc. This will disable the # reset memcpy to bcopy which is present in /usr/include/curses.h. # [Courtesy of Dave Blaszyk <dvb@ycc.Kodak.COM>] # # $inc also contained "-I/usr/include", but this seems to cause a huge # too many problems for gcc in perl5.002 so i removed it by default. # I tested Curses-a9 with perl5.002 and gcc263 and Sun's unbundled # cc on Solaris 2.4 with $inc empty and no problems, but your # mileage may vary. # # If you are having problems compiling on Solaris, try several # combinations of "-I/usr/include" and "-DSYSV=1" in $inc to see if # it fixes things.
内容的提问来源于stack exchange,提问作者Exponecial
相关产品推荐
相关产品推荐

