[xcrysden] xcrysden not starting with fedora 34 (gnome 40)

Gavin Abo gsabo at crimson.ua.edu
Mon Apr 19 06:19:58 CEST 2021


If it helps, the simplest way to get xcrysden 1.6.2 to run in Fedora 34 
might be to compile it from source. The following seemed to work in a 
virtual machine (i.e., VirtualBox) on Windows 10.  So it will most 
likely work starting at step 10 on a computer when Fedora 34 is 
installed on the 'hardware' instead of in a 'virtual machine'.

1. Went to: https://getfedora.org/en/workstation/download/
2. Downloaded Fedora 34: x86_64 DVD ISO: 
Fedora-Workstation-Live-x86_64-34_Beta-1.3.iso
3. Went to: https://www.virtualbox.org/wiki/Downloads
4. Downloaded Windows hosts: VirtualBox-6.1.18-142142-Win.exe
5. Installed VirtualBox in Windows 10
    a. Ran: VirtualBox-6.1.18-142142-Win.exe
    b. Clicked Next
    c. Clicked Next
    d. Clicked Next
    e. Clicked Yes
    f. Clicked Install
    g. Clicked Finish
6. If needed, enable 64 bit virtualization as described at: 
https://superuser.com/questions/1241956/virtualbox-only-allowing-32-bit-os
7. Setup VirtualBox
    a. On desktop, ran: Oracle VM VirtualBox
    b. Clicked Machine -> New...
    c. For Name typed: Fedora 34
    d. Selected Type: Linux
    e. Selected Version: Fedora (64 bit)
    f. Clicked Next
    g. Put 3064 and click Next
    h. Selected "Create a virtual hard disk now" and click Create
    i. Selected "VDI (Virtual Disk Image" and click Next
    j. Selected "Dynamically allocated" and click Next
    k. Put 50.00 GB and click Create
    l. Under Storage, click on [Optical Drive] Empty, click "Choose a 
disk file..." and open Fedora-Workstation-Live-x86_64-34_Beta-1.3.iso
    n. Click Settings -> System -> Processor, set Processors to 2, then 
click OK
    n. Clicked Start
8. Installed Fedora 34
    a. Selected "Start Fedora-Workstation-Live 34_Beta"
    b. Clicked "Install to Hard Drive"
    c. Selected English and clicked Continue
    d. Clicked "I want to proceed"
    e. Clicked "Installation Destination"
    f. Clicked Done
    g. Clicked "Begin Installation"
    h. Clicked "Finish Installation"
    i. In Fedora Live click on battery icon, click Poweroff/Log Out -> 
Power Off... and Power Off
    j. Under Storage in VirtualBox, click on [Optical Drive] 
Fedora-Workstation-Live-x86_64-34_Beta-1.3.iso and clicked "Remove disk 
form virtual drive"
    k. In VirtualBox, clicked Start
9. Setup Fedora 34
    a. Clicked "Start Setup"
    b. Turn off "Location Services" and "Automatic Problem Reporting", 
then click Next
    c. Click "Skip" to Online Accounts
    d. Type a Full Name and Username and click Next
    e. Type a password and click Next
    f. Click "Start Using Fedora"
10. Opened a terminal in Fedora 34 and performed the following:

[username at fedora ~]$ sudo yum install patch ImageMagick openbabel 
mesa-libGL-devel mesa-libGLU-devel tcl-devel tk-devel fftw-devel 
libXmu-devel gfortran
...
Is this ok [y/N]: y
...
[username at fedora ~]$ wget 
https://sourceforge.net/projects/togl/files/Togl/2.0/Togl2.0-src.tar.gz/download
...
[username at fedora ~]$ tar xvf download
...
[username at fedora ~]$ cd Togl2.0/
[username at fedora Togl2.0]$ ./configure --with-tcl=/usr/lib64 
--with-tk=/usr/lib64 --enable-64bit
[username at fedora Togl2.0]$ make
[username at fedora Togl2.0]$ cd ..
[username at fedora ~]$ wget 
http://www.xcrysden.org/download/xcrysden-1.6.2.tar.gz
...
[username at fedora ~]$ tar xvf xcrysden-1.6.2.tar.gz
...
[username at fedora ~]$ cd xcrysden-1.6.2/
[username at fedora xcrysden-1.6.2]$ cp system/Make.sys-semishared Make.sys
[username at fedora xcrysden-1.6.2]$ wget 
https://raw.githubusercontent.com/gsabo/xcrysden-Patches/main/Make-fedora34.patch
...
[username at fedora xcrysden-1.6.2]$ patch -b Make.sys Make-fedora34.patch
patching file Make.sys
[username at fedora xcrysden-1.6.2]$ make all
...
[username at fedora xcrysden-1.6.2]$ echo 'export 
XCRYSDEN_TOPDIR=/home/username/xcrysden-1.6.2'>>~/.bashrc
[username at fedora xcrysden-1.6.2]$ echo 'export 
PATH=$PATH:$XCRYSDEN_TOPDIR'>>~/.bashrc
[username at fedora xcrysden-1.6.2]$ echo 'export 
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/username/Togl2.0'>>~/.bashrc
[username at fedora xcrysden-1.6.2]$ source ~/.bashrc


On 4/7/2021 1:45 AM, Rudra Banerjee wrote:
> Hi,
>
> I am trying to run xcrysden  in fedora 34.
> On running xcrysden, I am getting error:
>
> CRYSDEN_TOPDIR=/opt/xcrysden-1.6.2-bin-shared
> XCRYSDEN_SCRATCH=/tmp/xcrys_tmp
>
> Running on platform : unix
>    Operating system : Linux
> Package ImageMagick's convert: /usr/bin/convert
> Package ImageMagick's import: /usr/bin/import
> Executing: /opt/xcrysden-1.6.2-bin-shared/bin/ftnunit
> Error in startup script:
> Couldn't configure togl widget
>     while executing
> "togl .mesa -width          400  -height         400  -ident
> .mesa  -rgba          $toglOpt(rgba)           -redsize
> $toglOpt(redsize..."
> (procedure "PlaceGlobWin" line 107)
>     invoked from within
> "PlaceGlobWin 0 [expr round(670 * $fac1)] [expr round(670 * $fac1)]"
> (procedure "ViewMol" line 25)
>     invoked from within
> "ViewMol ."
>     invoked from within
> "if { [llength $argv] > 2 } {
> parseComLinArg [lrange $argv 2 end]
> } else {
>     ViewMol .
> }"
>     (file "/opt/xcrysden-1.6.2-bin-shared/Tcl/xcInit.tcl" line 633)
>
> This is apparently identical to
> http://www.democritos.it/pipermail/xcrysden/2020-February/001980.html 
> <http://www.democritos.it/pipermail/xcrysden/2020-February/001980.html>
>
> which was working until fedora 33. But on 34, in spite of having Togl
> in xcrysden itself as Togl2.0-8.4-Linux as /opt/xcrysden-1.6.2-bin-
> shared/Togl2.0-8.4-Linux/lib and libTogl.so.2 ->libTogl2.0.so 
> <http://libtogl2.0.so/>
> I am still facing the same error.
>
> Kindly help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.democritos.it/pipermail/xcrysden/attachments/20210418/6d75a4eb/attachment-0001.htm 


More information about the XCrySDen mailing list