linux - rlwrap: 无法打开 master pty: 没有那个文件或目录

标签 linux centos pty rlwrap

当尝试运行 rlwrap tclsh 时,我收到此错误消息:

rlwrap: Could not open master pty: No such file or directory

这是什么原因造成的?如何解决这个问题?

附言我正在运行 64 位 CentOS。

最佳答案

检查/dev/ptmx 它应该有 crw-rw-rw- 我曾经有过 crw------ 这导致我的系统出现错误消息。

另见 man ptmx:

The file /dev/ptmx is a character file with major number 5 and minor number 2, usually of mode 0666 and owner.group of root.root. It is used to create a pseudo-terminal master and slave pair.

关于linux - rlwrap: 无法打开 master pty: 没有那个文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3886629/

相关文章:

centos - Libtool - 不匹配的版本

Linux 上的 Ruby PTY 在没有 EOF 的情况下消失,引发 Errno::EIO

c - 如何通过 minicom 或屏幕与 pty 通信?

linux - 第一次做 docker build 遇到了这个巨大的错误

linux - 如何使用 shell 脚本迭代 HDFS 目录中的所有文件?

linux - 对两个不同文件夹中的修改代码进行哈希深度比较

node.js - 如何在没有 sudo 权限的 CentOS 上安装 Node.js

linux - Cygwin 不支持 glibc

centos - 在 RPM 中配置依赖项

linux - `SIGWINCH` 如何通过 Bash?