How to compile and install the newest version of xcrysden from source code in Ubuntu 14.04 LTS 64-bit:

Posted: 2014/08/27 in Ubuntu
Tags: , , , , , , , , ,

# How to compile and install the newest version of xcrysden from source code in Ubuntu 14.04 LTS 64-bit:

Open a Terminal session and execute each of the following Terminal commands one line at a time:


rm index.html

rm -rf xcrysden*

sudo rm /usr/bin/xcrysden

sudo apt-get update

sudo apt-get purge xcrysden

sudo apt-get build-dep xcrysden

sudo apt-get install tcl tcl-dev tk tk-dev itcl3 itk3 itk3-dev tk8.4-dev tk8.4

sudo apt-get install iwidgets4 tcl8.5 tcl8.5-dev tk8.5 tk8.5-dev libtogl-dev

sudo apt-get install libxmu-headers libxmu-dev libxmuu-dev unp build-essential


FILENAME=`grep xcrysden index.html| grep tar\.gz index.html| tail -n 1|cut -d"\"" -f8`

wget`echo $FILENAME`


cd xcrysden*

sudo ln -s ~/xcrysden*/xcrysden /usr/bin/xcrysden

cp system/Make.sys-semishared Make.sys

make all

xcrysden -v

xcrysden --help

Running the following Terminal command


should give the following Terminal output and also a separate XCrySDen graphical user interface, if the previous compilation steps were 100% successful:

$ ./xcrysden

|* *|
|* XCrySDen — (X-Window) CRYstalline Structures and DENsities *|
|* = === = === *|
|* *|
|* Anton Kokalj ( *|
|* Jozef Stefan Institute, Ljubljana, Slovenia *|
|* *|
|* Copyright (c) 1996–2014 by Anton Kokalj *|
|* *|

Version: 1.5.60

Please report bugs to:
XCRYSDEN is released under the GNU General Public License.

Whenever graphics generated by XCRYSDEN are used in scientific
publications, it shall be greatly appreciated to include an explicit
reference. The preferred form is the following:

[ref] A. Kokalj, J. Mol. Graph. Model., Vol. 17, pp. 176-179, 1999.
Code available from


Running on platform : unix
Operating system : Linux
Package ImageMagick’s convert: /usr/bin/convert
Package ImageMagick’s import: /usr/bin/import
Package Mencoder: /usr/bin/mencoder
Package Ppmtompeg: /usr/bin/ppmtompeg
Package Xwd: /usr/bin/xwd
Executing: /home/ulysses/xcrysden-1.5.60/bin/ftnunit

<separate graphical user interface will appear in a separate window>


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s