Add tip about LD_LIBRARY_PATH to README

closes #1707
This commit is contained in:
Nick Cameron 2017-07-14 09:02:40 +12:00
parent b37e2664a6
commit ef6383011f

View File

@ -213,6 +213,20 @@ options covering different styles. File an issue, or even better, submit a PR.
* If you're having issues compiling Rustfmt (or compile errors when trying to
install), make sure you have the most recent version of Rust installed.
* If you get an error like `error while loading shared libraries` while starting
up rustfmt you should try the following:
On Linux:
```
export LD_LIBRARY_PATH=$(rustc --print sysroot)/lib:$LD_LIBRARY_PATH
```
On MacOS:
```
export DYLD_LIBRARY_PATH=$(rustc --print sysroot)/lib:$DYLD_LIBRARY_PATH
```
## License