简体   繁体   English

无法在OSX上使用Docker连接到X服务器

[英]Cannot connect to X server using docker on OSX

I am trying to install openFoam on Mac OS X 10.10.5 ( http://www.openfoam.com/download/install-binary.php ) by using Docker-toolbox. 我正在尝试使用Docker-toolbox在Mac OS X 10.10.5( http://www.openfoam.com/download/install-binary.php )上安装openFoam。 I can do without problems all the suggested steps, but then, when I try to run the example included in the installation guide, I cannot open paraFoam, since it returns the following error: 我可以毫无问题地完成所有建议的步骤,但是,当我尝试运行安装指南中包含的示例时,我无法打开paraFoam,因为它返回以下错误:

paraview: cannot connect to X server

I have also installed XQuartz but it doesn't seem to help much! 我还安装了XQuartz,但似乎并没有太大帮助!

Why don't you get the latest paraview from Kitware. 您为什么不从Kitware 获得最新的Paraview It has a native OpenFOAM reader built-in, which I always use. 它具有内置的本机OpenFOAM阅读器,我经常使用。 The only thing you have to do, instead of calling 您唯一要做的就是不用打电话

paraFoam

is to create an empty file with a foam extension. 是创建带有foam扩展名的空文件。 Like so: 像这样:

touch foo.foam

Then you can run start paraview like any other mac application, browse to to the respective case-directory and "open" the empty foo.foam file: 然后,您可以像运行其他任何Mac应用程序一样运行start paraview,浏览至相应的case目录并“打开”空的foo.foam文件:

paraview foo.foam

If you would like to use a command similar to paraFoam or paraview in the command line, then use your command line to change into the Paraview.app and find paraview , which is the actual executable. 如果您想在命令行中使用类似于paraFoamparaview的命令,请使用命令行更改为Paraview.app并找到实际可执行文件paraview Create a symbolic link pointing to that executable. 创建一个指向该可执行文件的符号链接。 I do the same, since I like to use the latest paraview instead of the one provided with OpenFOAM. 我也这样做,因为我喜欢使用最新的paraview而不是OpenFOAM paraview

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM