You need the fig2dev program in addition to xfig to be complete. Xfig saves figures in its own, proprietary .fig format. The fig2dev program translates the .fig files to various languages and formats such as PostScript, png, jpeg, pstricks, tikz, etc. Fig2dev allows you to print and export figures.
Most probably, xfig and fig2dev are available as pre-built (binary) packages using the package or software manager of your operating system. You will have to install both the xfig as well as the fig2dev or transfig package. Until about 2016, the fig2dev package was called transfig.
Binary packages of xfig and fig2dev (or transfig) are available for a number of Linux operating systems (debian, ubuntu, fedora, centos, suse, arch, etc.), some BSD's (netbsd, openbsd, freebsd), and for Darwin (fink, macports, brew).
For Windows, xfig can run under cygwin. Xfig and fig2dev are available as cygwin packages. Fig2dev can probably be compiled with VisualStudio.
Xfig will call ghostscript to display postscript or pdf files
embedded as a picture.
Fig2dev will need ghostscript to be able to
export to pdf and to the bitmap formats (gif,
jpeg, tiff, png, etc.).
For some bitmap formats, fig2dev will try to call programs from either the
netpbm, imagemagick or graphicsmagick packages to produce
smaller output files.
You can get the sources for xfig and fig2dev from https://sourceforge.net/projects/mcj. Files such as xfig+fig2dev-3.2.Xx.tar.xz contain the sources for both programs, while xfig-3.2.Xx.tar.xz and fig2dev-3.2.Xx contain the sources for xfig and fig2dev, respectively.
Uncompress and untar the archives (tar xaf *.tar.xz or
tar xJf *.tar.xz),
navigate into the base directory, e.g.,
cd fig2dev-3.2.??
configure, build and install the program:
./configure
make
make install
See the INSTALL files of xfig and fig2dev for further instructions. Especially xfig needs some further options to ./configure.
To build xfig, the minimum requirements are the runtime libraries and the header files for libx11, libxt, libxaw (or libxaw3d), libxi, and libxpm. For fig2dev, the zlib (zlib1g) runtime libraries and development (header) files are needed. Optionally, the png, jpeg and tiff libraries are recommended for reading and displaying image files in xfig. Fig2dev will need the png library to export .fig files containing a png image to postscript, pdf or any image format.
$ cp /usr/share/ghostscript/fonts/*l.pfb /usr/X11R6/lib/X11/fonts/Type1Append the file /usr/share/ghostscript/fonts/fonts.scale to Type1/fonts.scale. The first line in the latter file contains is the number of fonts listed in that file. Change that number to include the additional fonts.
Now run mkfontdir(1) to update the font database:
$ mkfontdir
If your operating system has the chkfontpath command, alternative is to add the Ghostscript font directory to the X server font path:
chkfontpath -a /usr/share/ghostscript/fonts/fonts/In either case, if your X-server is running already you have to tell it to reread the font databases with xset(1):
$ xset fp rehash
GhostScript
AutoTrace
chemtool
figbuild
GIMP
gnuplot
hp2xx
Msphinx
netpbm
plotutils (GNU)
pstoedit
xfigbar and xfigpie
xpaint
xv