From jeremy.richard001 at gmail.com Fri May 8 07:05:10 2020 From: jeremy.richard001 at gmail.com (Jeremy Richard) Date: Fri, 8 May 2020 02:05:10 -0300 Subject: [xcrysden] Running xcrysden on windows subshell for linux (wsl) Message-ID: Hello, I am trying to run the latest version of xcrysden for wsl, version 1.6.2. My issue is that when I try to run, it gives the following error: application-specific initialization failed: no display name and no $DISPLAY environment variable Error in startup script: can't read "xcrys(platform)": no such variable while executing "if { $xcrys(platform) == "windows" } { # testing ... rename exec _tcl_exec proc exec {args} { global env # first try a normal exec..." (file "/home/jeremy/quantumEspresso/xcrysden-1.6.2-bin-shared/Tcl/cygwin.tcl" line 19) invoked from within "source $system(TOPDIR)/Tcl/cygwin.tcl" (file "/home/jeremy/quantumEspresso/xcrysden-1.6.2-bin-shared/Tcl/xcInit.tcl" line 449) I see on the download page of the website it says I need to "define the DISPLAY enviromental variable, i.e., export DISPLAY=:0". How do I do this? Where would I do this? I'm quite lost. Thank you, -Jeremy Richard -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.democritos.it/pipermail/xcrysden/attachments/20200508/40ef0b95/attachment.htm From matic.poberznik at gmail.com Fri May 8 08:24:13 2020 From: matic.poberznik at gmail.com (Matic) Date: Fri, 8 May 2020 08:24:13 +0200 Subject: [xcrysden] Running xcrysden on windows subshell for linux (wsl) In-Reply-To: References: Message-ID: Hi Jeremy, you need to install XMing, if you don't have it already. Then you can test the command "export DISPLAY=:0" simply by typing into the terminal (that will only work for the current session). I suggest you paste it into your ~/.bashrc file; open it with an text editor and just paste the command there and then type "source ~/.bashrc" into the terminal (or restart the application). You can test if the DISPLAY variable is set correctly by "echo $DISPLAY" (it should output :0) Best, Matic > Hello, > > I am trying to run the latest version of xcrysden for wsl, version > 1.6.2. My issue is that when I try to run, it gives the following error: > > application-specific initialization failed: no display name and no > $DISPLAY environment variable ? Error in startup script: can't > read "xcrys(platform)": no such variable ? ?while executing ? ? ? > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?"if { > $xcrys(platform) == "windows" } { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? > ? ? ? ? ? ? ? ? ? ? ? ?# testing ... ?rename exec _tcl_exec ? ? ? > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? proc exec {args} { > global env ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?# > first try a normal exec..." ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? > ? ? ? ?(file > "/home/jeremy/quantumEspresso/xcrysden-1.6.2-bin-shared/Tcl/cygwin.tcl" > line 19) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? invoked from within ? ? ? ? > ? ? ? ? ? ? ? ? ? ? ? ?"source $system(TOPDIR)/Tcl/cygwin.tcl" ? ? > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?(file > "/home/jeremy/quantumEspresso/xcrysden-1.6.2-bin-shared/Tcl/xcInit.tcl" > line 449) > > > I see on the download page of the website it says I need to "define > the DISPLAY enviromental variable, i.e., export DISPLAY=:0". How do I > do this? Where would I do this? I'm quite lost. > > Thank you, > > -Jeremy Richard > > > _______________________________________________ > XCrySDen mailing list > XCrySDen at democritos.it > http://www.democritos.it/mailman/listinfo/xcrysden -- Matic Poberznik J. Stefan Institute, Jamova 39, Ljubljana, Slovenia -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.democritos.it/pipermail/xcrysden/attachments/20200508/af43dc14/attachment.htm From zhjj90 at 163.com Fri May 8 09:07:25 2020 From: zhjj90 at 163.com (=?GBK?B?1cW80r+l?=) Date: Fri, 8 May 2020 15:07:25 +0800 (CST) Subject: [xcrysden] Problems in installation of xcrysden Message-ID: <5ecf85e6.2c09.171f31c3915.Coremail.zhjj90@163.com> Dear Sir/Madam, I am experiencing following error in installing xcrysden onto HPC (linux sys): ~/xcrysden-1.6.2-bin-shared/bin/xcrys: error while loading shared libraries: libfftw3.so.3: cannot open shared object file: No such file or directory Any more actions needed for this issue? Thanks, Jiajun -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.democritos.it/pipermail/xcrysden/attachments/20200508/aa0cbcdf/attachment.htm From matic.poberznik at gmail.com Fri May 8 09:45:13 2020 From: matic.poberznik at gmail.com (Matic) Date: Fri, 8 May 2020 09:45:13 +0200 Subject: [xcrysden] Problems in installation of xcrysden In-Reply-To: <5ecf85e6.2c09.171f31c3915.Coremail.zhjj90@163.com> References: <5ecf85e6.2c09.171f31c3915.Coremail.zhjj90@163.com> Message-ID: Dear Jiajun, you are missing the libfftw3-3 library; note that a few libraries are required for xcrysden to load, on a debian system you can install them by: apt install tk libglu1-mesa libtogl2 libfftw3-3 libxmu6 imagemagick openbabel libgfortran5 on a HPC you will likely need to contact an administrator, before that, check if any of the libraries are available to be loaded as modules. A word of caution, xcrysden will likely be slow when running via a network connection, so I would suggest to install it on your workstation instead. Best Regards, Matic -- Matic Poberznik J. Stefan Institute, Jamova 39, Ljubljana, Slovenia -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.democritos.it/pipermail/xcrysden/attachments/20200508/a916cb73/attachment.htm From zhjj90 at 163.com Fri May 8 09:55:19 2020 From: zhjj90 at 163.com (=?GBK?B?1cW80r+l?=) Date: Fri, 8 May 2020 15:55:19 +0800 (CST) Subject: [xcrysden] Problems in installation of xcrysden In-Reply-To: References: <5ecf85e6.2c09.171f31c3915.Coremail.zhjj90@163.com> Message-ID: <5becb9cc.3265.171f3481590.Coremail.zhjj90@163.com> Dear Matic, Thanks, got it. Actually I am initially trying to install on my pc with xcrysden cygwin, and installed all the libs as required during the software installation, but it shows an Xming error 'C:/cygwin64/xcrysden-1.5.60-bin-shared/bin/ftnunit.exe: error while loading shared libraries: cyggfortran-3.dll: cannot open shared object file: No such file or directory', so that the installation could not proceed further. Are there any solutions to this error please? Best regards, Jiajun At 2020-05-08 15:45:13, "Matic" wrote: Dear Jiajun, you are missing the libfftw3-3 library; note that a few libraries are required for xcrysden to load, on a debian system you can install them by: apt install tk libglu1-mesa libtogl2 libfftw3-3 libxmu6 imagemagick openbabel libgfortran5 on a HPC you will likely need to contact an administrator, before that, check if any of the libraries are available to be loaded as modules. A word of caution, xcrysden will likely be slow when running via a network connection, so I would suggest to install it on your workstation instead. Best Regards, Matic -- Matic Poberznik J. Stefan Institute, Jamova 39, Ljubljana, Slovenia -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.democritos.it/pipermail/xcrysden/attachments/20200508/da53b18a/attachment.htm From matic.poberznik at gmail.com Fri May 8 10:03:09 2020 From: matic.poberznik at gmail.com (Matic) Date: Fri, 8 May 2020 10:03:09 +0200 Subject: [xcrysden] Problems in installation of xcrysden In-Reply-To: <5becb9cc.3265.171f3481590.Coremail.zhjj90@163.com> References: <5ecf85e6.2c09.171f31c3915.Coremail.zhjj90@163.com> <5becb9cc.3265.171f3481590.Coremail.zhjj90@163.com> Message-ID: > Thanks, got it. Actually I am initially trying to install on my pc > with xcrysden cygwin, and installed all the libs as required during > the software installation, but it shows an Xming error > 'C:/cygwin64/xcrysden-1.5.60-bin-shared/bin/ftnunit.exe: error while > loading shared libraries: cyggfortran-3.dll: cannot open shared object > file: No such file or directory', so that the installation could not > proceed further. Are there any solutions to this error please? I personally prefer the WSL version and if possible I would suggest that you try the WSL version instead (it is closer to the linux version and should work better). Otherwise, the error you report inidicates that you are missing libgfortran3. I'm not sure why libgfortran4 is not ok, but perhaps try to install libgfortran3 and see if that solves the problem, Best, Matic -- Matic Poberznik J. Stefan Institute, Jamova 39, Ljubljana, Slovenia -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.democritos.it/pipermail/xcrysden/attachments/20200508/dea535e0/attachment-0001.htm