Matlab7无法启动的一个解决方法
时间:2006-05-13 来源:shappen
Matlab7运行出现以下错误:
??? MATLAB was unable to open the
pseudo-tty master device /dev/ptmx. The unix()
and ! commands will not work in this MATLAB
session. Other commands which depend
upon unix() and ! will fail. Please check with
your system administrator and confirm that
this device exists with the proper permissions.
以下是解决方案:
Things to look for:
1. The device /dev/ptmx must exist and be writable.
greg@fess 839$ ls -l /dev/ptmx
crw-rw-rw- 1 root tty 5, 2 Dec 1 17:28 /dev/ptmx
Use "mknod -m 666 /dev/ptmx c 5 2" to remedy.
2. The directory /dev/pts must exist
greg@fess 840$ ls -ld /dev/pts
drwxr-xr-x 2 root root 0 Nov 13 09:11 /dev/pts/
Use "mkdir /dev/pts; chmod 755 /dev/pts" to remedy
3. The filesystem type "devpts" must be supported in the kernel
greg@fess 841$ cat /proc/filesystems | grep pts
nodev devpts
Reconfigure and rebuild your kernel to remedy this.
4. The filesystem /dev/pts of type devpts must be mounted
greg@fess 842$ cat /proc/mounts | grep pts
devpts /dev/pts devpts rw 0 0
Short term remedy: "mount -t devpts devpts /dev/pts"
Long term remedy: put this into a startup script or add it to your /etc/fstab file.
??? MATLAB was unable to open the
pseudo-tty master device /dev/ptmx. The unix()
and ! commands will not work in this MATLAB
session. Other commands which depend
upon unix() and ! will fail. Please check with
your system administrator and confirm that
this device exists with the proper permissions.
以下是解决方案:
Things to look for:
1. The device /dev/ptmx must exist and be writable.
greg@fess 839$ ls -l /dev/ptmx
crw-rw-rw- 1 root tty 5, 2 Dec 1 17:28 /dev/ptmx
Use "mknod -m 666 /dev/ptmx c 5 2" to remedy.
2. The directory /dev/pts must exist
greg@fess 840$ ls -ld /dev/pts
drwxr-xr-x 2 root root 0 Nov 13 09:11 /dev/pts/
Use "mkdir /dev/pts; chmod 755 /dev/pts" to remedy
3. The filesystem type "devpts" must be supported in the kernel
greg@fess 841$ cat /proc/filesystems | grep pts
nodev devpts
Reconfigure and rebuild your kernel to remedy this.
4. The filesystem /dev/pts of type devpts must be mounted
greg@fess 842$ cat /proc/mounts | grep pts
devpts /dev/pts devpts rw 0 0
Short term remedy: "mount -t devpts devpts /dev/pts"
Long term remedy: put this into a startup script or add it to your /etc/fstab file.
相关阅读 更多 +