Skip to content

Commit 85c2f40

Browse files
committed
Add further suggested fixes to missing library
1 parent bfeffd9 commit 85c2f40

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/source/faq.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,23 @@ If you are using a conda environment, you can do this by running the following c
9494
9595
conda install -c conda-forge libgfortran-ng libgfortran5
9696
97+
Sometimes, this is an issue of the library path not being set correctly.
98+
To fix this, you can set the environment variables ``PATH`` and ``LD_LIBRARY_PATH`` to include the paths to the gfortran library.
99+
You can do this by running the following command:
100+
101+
.. code-block:: bash
102+
103+
export LD_LIBRARY_PATH=<PATH_TO_GFORTRAN_LIBRARY>:$LD_LIBRARY_PATH
104+
export PATH=<PATH_TO_GFORTRAN_BINARY>:$PATH
105+
106+
An example of this would be:
107+
108+
.. code-block:: bash
109+
110+
export LD_LIBRARY_PATH=$(brew --prefix gfortran)/lib:$LD_LIBRARY_PATH
111+
export PATH=$(brew --prefix gfortran)/bin:$PATH
112+
113+
Sometimes, ``lib64`` is the correct directory instead of ``lib``.
97114

98115
General
99116
=======

0 commit comments

Comments
 (0)