【问题标题】:Tcl call in perl scriptperl 脚本中的 Tcl 调用
【发布时间】:2019-11-21 01:03:06
【问题描述】:

我正在执行一个使用use Tcl; 的Perl 脚本。这当前调用 tcl8.4。

当我检查我的 lib 路径时,也找到了 tcl8.5。我希望use Tcl; 使用 tcl8.5 而不是 tcl8.4。谁能帮帮我?

【问题讨论】:

标签: perl tclsh


【解决方案1】:

通过查看the distro's Makefile.PL,我相信它使用了安装模块时发现的tclshX.Y

如果在您安装模块后安装了更新版本的 Tcl 8.5,您可以尝试重新安装该模块。

wget https://cpan.metacpan.org/authors/id/V/VK/VKON/Tcl-1.27.tar.gz
tar xvzf Tcl-1.27.tar.gz
cd Tcl-1.27
perl Makefile.PL
make test
make install

如果这还不够,这个模块的Makefile.PL 接受有助于定位正确tclsh 的参数。如the distro's README file 中所述,您可以使用以下命令查看接受的选项:

perl Makefile.PL --help

【讨论】:

  • make test rm -f blib/arch/auto/Tcl/Tcl.so gcc -shared -O2 Tcl.o -o blib/arch/auto/Tcl/Tcl.so \ -L/homes /naveenmathil/TCl_module/Tcl-1.27/tcl-core/linux-i686 -ltclstub8.4 \ /usr/bin/ld: 跳过不兼容的/homes/naveenmathil/TCl_module/Tcl-1.27/tcl-core/linux-i686/libtclstub8 .4.a 搜索 -ltclstub8.4 /usr/bin/ld 时:找不到 -ltclstub8.4 collect2:错误:ld 返回 1 退出状态 Makefile:479: recipe for target 'blib/arch/auto/Tcl/Tcl .so' 失败:*** [blib/arch/auto/Tcl/Tcl.so] 错误 1
  • 1) 那仍在尝试使用 8.4。 2)这将是一个不同的问题,应该得到一个新的问题。我不知道答案。
猜你喜欢
  • 2023-03-17
  • 2017-10-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-08-18
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多