
をインストールしようとしていますogre-meshviewer
が、次のエラーが発生します。
(base) comp@comp:~$ sudo snap install ogre-meshviewer
snap "ogre-meshviewer" is already installed, see 'snap help
refresh'
(base) comp@comp:~$
(base) comp@comp:~$ sudo ogre-meshviewer
mkdir: cannot create directory '/run/user/0': Permission denied
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
usage: ogre_mesh_viewer.py [-h] [-c RESCFG] infile
ogre_mesh_viewer.py: error: the following arguments are required: infile
これをどうすれば解決できますか?
答え1
コマンドの出力からsudo snap install ogre-meshviewer
わかるように、ogre-meshviewer
正常にインストールされています。
ogre-meshviewer
必要な位置引数 (infile
入力ファイル) を指定せずに実行しようとしたために、エラーが発生します。
usage: ogre_mesh_viewer.py [-h] [-c RESCFG] infile ogre_mesh_viewer.py: error: the following arguments are required: infile
したがって、次のように実行します。
ogre-meshviewer /path/to/mesh_file
正しく動作するはずです。
/path/to/mesh_file
予想通り、ファイル.mesh
(または他のサポートされている形式(つまり.obj
、.ply
または.fbx
)がシステムにすでに存在している必要があります。パスは、絶対的か相対的か。