注意:无法打开文件 /home/.ncviewrc用于阅读错误:可以打开显示:
我正在使用Macos Monterey(12.4)。
我使用ssh -x 登录。
已经加载在系统中的模块。 模块列表:
- Intel-Oneapi-Compilers/2022.0.1-GCC-11.2.0
- OpenMPI/4.1.2-Intel-2021.5.5.0
- NetCDF-C/4.8.1-Openmpi 4.1.2-Intel-
- 2021.5.50 fortran/4.5.3-openmpi 4.1.2-Intel-2021.5.0
- Intel-oneapi-Mkl/2022.0.1-GCC-11.2.0
- NCView/2.1.8-GCC-11.2.0
- HDF5/1.12.1-ThreadSafe-Intel-
2021.5.5在那里生成文件“ file.cdf”。
我想用ncview打开它。 所以我做到了:$ ncview file.cdf,我会遇到此错误。
Ncview 2.1.8 David W. Pierce 8 March 2017
http://meteora.ucsd.edu:80/~pierce/ncview_home_page.html
Copyright (C) 1993 through 2015, David W. Pierce
Ncview comes with ABSOLUTELY NO WARRANTY; for details type `ncview -w'.
This is free software licensed under the Gnu General Public License version 3; type `ncview -c' for redistribution details.
Note: could not open file /home/.ncviewrc for reading
Error: Can't open display:
I am using macOS Monterey (12.4).
I used ssh -X [email protected]
for login.
Modules that are already loaded in system.
Module list:
- intel-oneapi-compilers/2022.0.1-gcc-11.2.0
- openmpi/4.1.2-intel-2021.5.0
- netcdf-c/4.8.1-openmpi-4.1.2-intel-2021.5.0
- netcdf-fortran/4.5.3-openmpi-4.1.2-intel-2021.5.0
- intel-oneapi-mkl/2022.0.1-gcc-11.2.0
- ncview/2.1.8-gcc-11.2.0
- hdf5/1.12.1-threadsafe-intel-2021.5.0
After running a model in a /work/ directory I generate a file "file.cdf" there.
I want to open it with ncview.
So I did : $ ncview file.cdf and I am getting this error.
Ncview 2.1.8 David W. Pierce 8 March 2017
http://meteora.ucsd.edu:80/~pierce/ncview_home_page.html
Copyright (C) 1993 through 2015, David W. Pierce
Ncview comes with ABSOLUTELY NO WARRANTY; for details type `ncview -w'.
This is free software licensed under the Gnu General Public License version 3; type `ncview -c' for redistribution details.
Note: could not open file /home/.ncviewrc for reading
Error: Can't open display:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于Mac用户:
我也面临同一问题。在我的本地机器上安装Xquartz后,它是为我解决的。 https://www.xquartz.org/
我希望它对您有用。
For Mac users:
I was also facing the same issue. It was solved for me after installing Xquartz on my local machine. https://www.xquartz.org/
I hope it works for you.