count0 created page: installation instructions authored by Tiago Peixoto's avatar Tiago Peixoto
......@@ -178,17 +178,11 @@ $ export PYTHONPATH="$PYTHONPATH:$HOME/.local/lib/python3.6/site-packages"
If any of the dependencies have been installed in a nonstandard directory, we need to pass this information to the `configure` script. Suppose again these have been installed in the `$HOME/.local` directory. In this case we need
```bash
$ ./configure CPPFLAGS="-I$HOME/.local/include" LDFLAGS="-L$HOME/.local/lib"
$ ./configure CPPFLAGS="-I$HOME/.local/include" LDFLAGS="-L$HOME/.local/lib -Wl,-rpath=$HOME/.local/lib"
$ make install
```
(typically, in such cases we also want to install the library itself in the home directory; for this we need to combine with the options in the previous section.)
Before we try to use the library, we must be sure that the *dynamic linker* knows where to find the libraries that were installed in nonstandard directories. In modern OSs, the path `$HOME/.local/lib` is already in the standard path, but if this is not the case we need to set `LD_LIBRARY_PATH`
```bash
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/.local/lib"
```
(Note that in MacOS the above should be `DYLD_LIBRARY_PATH` instead.)
## Installing in a [virtualenv](http://docs.python-guide.org/en/latest/dev/virtualenvs/)
To install graph-tool in a virtualenv we need to activate it before running configure
......
......