pwi2xsf command not found

In this troubleshooting guide we learn how to fix pwi2xsf command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

pwi2xsf: command not found

or when using sudo you get the following error message

sudo: pwi2xsf: command not found

Solutions to pwi2xsf: command not found

How To Fix pwi2xsf: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pwi2xsf is provided by xcrysden package.

xcrysden is:

XCrySDen is a crystalline and molecular structure visualisation program, which aims at display of isosurfaces and contours, which can be superimposed on crystalline structures and interactively rotated and manipulated. It can run on most UNIX platforms, without any special hardware requirements.

XCrySDen allows for real-time capture of display. Several movie encoders are supported, in particular for Animated-GIF convert (imagemagick), gifsicle, or whirlgif are necessary. For AVI/MPEG mencoder or ppmtompeg (netpbm) is required. For window dumps either imagemagick or xwd (x11-apps) needs to be present.

To fix this problem, we can install more using the command below.

sudo apt-get -y install xcrysden

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install xcrysden.

sudo apt -y install xcrysden

Or if you have aptitude installed you can use the following command.

sudo aptitude install xcrysden

Summary

In this tutorial we learn how to fix pwi2xsf command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.