古い Linux カーネルを使用している場合、MATLAB で unix または!コマンドを使用できないのはなぜですか?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 26 Jan 2022
Réponse apportée : MathWorks Support Team
le 26 Jan 2022
MATLAB を起動すると以下のようなメッセージが表示されます。
---------------------------------------------------------------Warning: Linux 2.2.2 - your operating system Linux 2.2.15 - MATLAB built using this system---------------------------------------------------------------
??? 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.
%
また、unix または!コマンドを使用できません。
Réponse acceptée
MathWorks Support Team
le 26 Jan 2022
こちらの警告はカーネルバージョンの違いに関するものですが、無視していただいてかまいません。2 つのカーネルの間には、問題を起こすような大きな違いはないためです。
ただ、unix と!コマンドの問題については、環境の問題が原因となりますので、お客様ご自身で解決していただく必要があります。これについては、以下をご参照ください。
確認事項:
1. /dev/ptmx デバイスが存在し、かつ書き込み可能であることを確認します。
greg@fess 839$ ls -l /dev/ptmx\ncrw-rw-rw- 1 root tty 5, 2 Dec 1 17:28 /dev/ptmx
対策方法:
"mknod -m 666 /dev/ptmx c 5 2" を実行します。
2. /dev/pts ディレクトリが存在することを確認します。
greg@fess 840$ ls -ld /dev/pts\ndrwxr-xr-x 2 root root 0 Nov 13 09:11 /dev/pts/
対策方法:
"mkdir /dev/pts; chmod 755 /dev/pts" を実行します。
3. カーネルで "devpts" がサポートされていることを確認します。
greg@fess 841$ cat /proc/filesystems | grep pts\nnodev devpts
対策方法:
カーネルを再設定し、再構築することで改善します。
4. devpts 型のファイルシステム /dev/pts がマウントされていることを確認します。
greg@fess 842$ cat /proc/mounts | grep pts\ndevpts /dev/pts devpts rw 0 0
対策方法:
"mount -t devpts devpts /dev/pts" を実行します。確認後、startup スクリプトに入れるか、または/etc/fstab ファイルに追加します。
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur インストールとライセンスの紹介 dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!