Mohammadreza Hadizadeh

Installing XmGrace (Grace) on Mac OS X

Pasted Graphic 5
(updated on June 9, 2016)

1) Install Xcode:
$ xcode-select --install
2) Install open motif
$ sudo port install openmotif
3) Install Xmgrace
$ sudo port install grace
4) Open Xmgrace and enjoy!
$ xmgrace

1) Install motif libraries. You can download binary from here:
2) Grace download and install:
$ cd Desktop
$ wget
$ tar xzvf grace-5.1.23.tar.gz
$ cd grace-5.1.23
$ ./configure --x-includes=/usr/X11/include --x-libraries=/usr/X11/lib --with-motif-library=-lXm --with-extra-incpath=/usr/OpenMotif/include:/usr/local/fftw-3.3.4/include --with-extra-ldpath=/usr/OpenMotif/lib:/usr/local/fftw-3.3.4/lib
$ make
$ sudo make install
$ echo "export PATH=$PATH:/usr/local/grace/bin" >> ~/.bashrc
$ source ~/.bashrc
$ xmgrace
- on Mac OS X Lion, wget doesn't work. Use curl -O instead of wget.
- if in the last step, when you try to run xmgrace, you get the following error:
$ xmgrace
Can't open display
Failed initializing GUI, exiting
you can try:
$ DISPLAY=:0.0 xmgrace
if it doesn’t solve the problem, you need to open XQuartz and then enter the following command:
$ DISPLAY=:0.0 xmgrace