【发布时间】:2022-10-13 18:37:08
【问题描述】:
我正在使用 macOS Monterey (12.4)。
我使用ssh -X username@asasd.de 登录。
已经加载到系统中的模块。 模块列表:
- 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
在 /work/ 目录中运行模型后,我在那里生成一个文件“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:
【问题讨论】:
-
您的 Mac 上是否运行了 X Window 系统?没有它,
ssh的-X将毫无用处,您将无法运行ncview,这是一个X11 应用程序。缺少的.ncviewrc只是一个注释;缺少的DISPLAY变量(由于缺少 X11)是您的问题。
标签: macos tcsh x11-forwarding