diff --git a/doc/install.rst b/doc/install.rst index b3e98b7ecd6..83378100034 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -259,12 +259,17 @@ library (``libgmt``). This can happen if you have multiple versions of GMT installed. You can tell PyGMT exactly where to look for ``libgmt`` by setting the -``GMT_LIBRARY_PATH`` environment variable. -This should be set to the directory where ``libgmt.so``, ``libgmt.dylib`` or -``gmt.dll`` can be found for Linux, macOS and Windows, respectively. -e.g., on a command line, run:: +``GMT_LIBRARY_PATH`` environment variable to the directory where ``libgmt.so``, +``libgmt.dylib`` or ``gmt.dll`` can be found on Linux, macOS or Windows, +respectively. + +For Linux/macOS, add the following line to your shell configuration file +(usually ``~/.bashrc`` for Bash on Linux and ``~/.zshrc`` for Zsh on macOS):: - # Linux/macOS export GMT_LIBRARY_PATH=$HOME/anaconda3/envs/pygmt/lib - # Windows - set "GMT_LIBRARY_PATH=C:\Users\USERNAME\Anaconda3\envs\pygmt\Library\bin\" + +For Windows, add the ``GMT_LIBRARY_PATH`` environment variable following these +`instructions `__ +and set its value to a path like:: + + C:\Users\USERNAME\Anaconda3\envs\pygmt\Library\bin\