sliluoke 2024-02-23 09:53 采纳率: 0%
浏览 9

在redhat8.5上安装activetcl8.5失败

[root@localhost ActiveTcl8.5.13.296436-linux-ix86-threaded]# ./install.sh
./install.sh: line 53: ./payload/bin/tclsh8.5: No such file or directory
[root@localhost ActiveTcl8.5.13.296436-linux-ix86-threaded]# ls payload/bin/
base-tcl8.5-thread-linux-ix86 base-tcl8.5-thread-linux-ix86.so base-tk8.5-thread-linux-ix86 tclsh tclsh8.5 tclvfse teacup tkcon wish wish8.5
尝试过将路径添加到PATH,更改过install.sh权限,都无法解决,但在另一台redhat4.8上却可以正常安装

[root@localhost ActiveTcl8.5.13.296436-linux-ix86-threaded]# cat install.sh 
#!/bin/sh
# Shell wrapper around the main installation script.  Will use the
# wish or tclsh inside of the distribution to execute this
# installer.
#
# Auto-detects the location of the distribution. Auto-detects
# availability of X and chooses between gui and terminal based
# installers using this information.

dist=`dirname $0`

# initialize the environment so that the distributed "wish" and
# "tclsh" are able to find their libraries despite being crippled with
# the special path value we will replace later during the installation
# with the actual path to the installation.

TCL_LIBRARY=$dist/payload/lib/tcl8.5
TK_LIBRARY=$dist/payload/lib/tk8.5
LD_LIBRARY_PATH=$dist/payload/lib
DYLD_LIBRARY_PATH=$dist/payload/lib
SHLIB_PATH=$dist/payload/lib
LIBPATH=$dist/payload/lib

export TCL_LIBRARY TK_LIBRARY LD_LIBRARY_PATH DYLD_LIBRARY_PATH SHLIB_PATH LIBPATH

# Determine availability of X and choose an installer based on that
# information.

if tty -s; then                 # Do we have a terminal?
    if [ x"$DISPLAY" != x -a x"$xterm_loop" = x ]; then  # No, but do we have X?

        # Check for valid DISPLAY variable

        if [ `echo exit | $dist/payload/bin/wish8.5 2>&1 | grep fail | wc -l` -eq 0 ]
        then
            echo _____________________________________________
            echo Launching graphical installer on $DISPLAY
            echo ...

            $dist/payload/bin/wish8.5 $dist/install.tk "$@"

            # pwd = inside the unpacked distribution ...
            # go one level up and remove the directory
            #cd ..
            #rm -rf $dist
            exit
        fi
    fi
fi

# No X, use the terminal based installer 

$dist/payload/bin/tclsh8.5 $dist/install.tcl "$@"

# pwd = inside the unpacked distribution ...
# go one level up and remove the directory
#cd ..
#rm -rf $dist
exit


  • 写回答

1条回答 默认 最新

  • 码农阿豪@新空间代码工作室 Java领域优质创作者 2024-02-23 23:32
    关注
    让阿豪来帮你解答,本回答参考chatgpt3.5编写提供,如需一对一服务私聊我哦
    问题描述: 在执行一个安装脚本 `install.sh` 时,出现了错误提示:
    ./install.sh: line 53: ./payload/bin/tclsh8.5: No such file or directory
    

    但是在另一台机器上可以正常安装。 分析: 当前机器上的错误信息指向了 ./payload/bin/tclsh8.5 文件不存在,但是在同样的路径下可以找到其他文件。因此,可能是路径设置或者文件缺失的问题。 解决办法: 1. 检查路径是否设置正确,如是否添加了路径到 PATH 环境变量中。 2. 检查当前机器上是否有缺少的文件。在本例中,可以通过检查 ./payload/bin 目录中是否有 tclsh8.5 文件来确定。 3. 确认脚本是否具有足够的权限来执行安装。可以通过更改脚本的权限来实现:

    chmod +x install.sh
    

    代码示例:

    # 添加路径到 PATH 环境变量中
    export PATH=$PATH:/path/to/folder
    # 更改脚本权限
    chmod +x install.sh
    
    评论

报告相同问题?

问题事件

  • 创建了问题 2月23日

悬赏问题

  • ¥15 Stable Diffusion,用Ebsynth utility在视频选帧图重绘,第一步报错,蒙版和帧图没法生成,怎么处理啊
  • ¥15 请把下列每一行代码完整地读懂并注释出来
  • ¥15 pycharm运行main文件,显示没有conda环境
  • ¥15 易优eyoucms关于二级栏目调用的问题
  • ¥15 寻找公式识别开发,自动识别整页文档、图像公式的软件
  • ¥15 为什么eclipse不能再下载了?
  • ¥15 编辑cmake lists 明明写了project项目名,但是还是报错怎么回事
  • ¥15 关于#计算机视觉#的问题:求一份高质量桥梁多病害数据集
  • ¥15 特定网页无法访问,已排除网页问题
  • ¥50 如何将脑的图像投影到颅骨上