注意:无法打开文件 /home/.ncviewrc用于阅读错误:可以打开显示:

发布于 2025-02-13 02:24:37 字数 1111 浏览 2 评论 0原文

我正在使用Macos Monterey(12.4)。

我使用ssh -x 登录。

已经加载在系统中的模块。 模块列表:

  1. Intel-Oneapi-Compilers/2022.0.1-GCC-11.2.0
  2. OpenMPI/4.1.2-Intel-2021.5.5.0
  3. NetCDF-C/4.8.1-Openmpi 4.1.2-Intel-
  4. 2021.5.50 fortran/4.5.3-openmpi 4.1.2-Intel-2021.5.0
  5. Intel-oneapi-Mkl/2022.0.1-GCC-11.2.0
  6. NCView/2.1.8-GCC-11.2.0
  7. 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:

  1. intel-oneapi-compilers/2022.0.1-gcc-11.2.0
  2. openmpi/4.1.2-intel-2021.5.0
  3. netcdf-c/4.8.1-openmpi-4.1.2-intel-2021.5.0
  4. netcdf-fortran/4.5.3-openmpi-4.1.2-intel-2021.5.0
  5. intel-oneapi-mkl/2022.0.1-gcc-11.2.0
  6. ncview/2.1.8-gcc-11.2.0
  7. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

扬花落满肩 2025-02-20 02:24:37

对于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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文