Spaces:
Sleeping
Sleeping
Add tips on troubleshooting `libstdc++` to README
Browse files
README.md
CHANGED
|
@@ -27,6 +27,10 @@ If you've finished a project with PySR, please submit a PR to showcase your work
|
|
| 27 |
- [Contributors](#contributors-)
|
| 28 |
- [Why PySR?](#why-pysr)
|
| 29 |
- [Installation](#installation)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
- [Quickstart](#quickstart)
|
| 31 |
- [→ Documentation](https://astroautomata.com/PySR)
|
| 32 |
|
|
@@ -179,12 +183,25 @@ For more details, see the [docker section](#docker).
|
|
| 179 |
|
| 180 |
---
|
| 181 |
|
| 182 |
-
###
|
| 183 |
|
| 184 |
Common issues tend to be related to Python not finding Julia.
|
| 185 |
To debug this, try running `python3 -c 'import os; print(os.environ["PATH"])'`.
|
| 186 |
If none of these folders contain your Julia binary, then you need to add Julia's `bin` folder to your `PATH` environment variable.
|
| 187 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 188 |
**Running PySR on macOS with an M1 processor:** you should use the pip version, and make sure to get the Julia binary for ARM/M-series processors.
|
| 189 |
|
| 190 |
## Quickstart
|
|
|
|
| 27 |
- [Contributors](#contributors-)
|
| 28 |
- [Why PySR?](#why-pysr)
|
| 29 |
- [Installation](#installation)
|
| 30 |
+
- [pip](#pip)
|
| 31 |
+
- [conda](#conda)
|
| 32 |
+
- [docker](#docker-build)
|
| 33 |
+
- [Troubleshooting](#troubleshooting)
|
| 34 |
- [Quickstart](#quickstart)
|
| 35 |
- [→ Documentation](https://astroautomata.com/PySR)
|
| 36 |
|
|
|
|
| 183 |
|
| 184 |
---
|
| 185 |
|
| 186 |
+
### Troubleshooting
|
| 187 |
|
| 188 |
Common issues tend to be related to Python not finding Julia.
|
| 189 |
To debug this, try running `python3 -c 'import os; print(os.environ["PATH"])'`.
|
| 190 |
If none of these folders contain your Julia binary, then you need to add Julia's `bin` folder to your `PATH` environment variable.
|
| 191 |
|
| 192 |
+
Another issue you might run into can result in a hard crash at import with
|
| 193 |
+
a message like "`GLIBCXX_...` not found". This is due to another one of the Python dependencies
|
| 194 |
+
loading an incorrect `libstdc++` library. To fix this, you should modify your
|
| 195 |
+
`LD_LIBRARY_PATH` variable to reference the Julia libraries. For example, if the Julia
|
| 196 |
+
version of `libstdc++.so` is located in `$HOME/.julia/juliaup/julia-1.10.0+0.x64.linux.gnu/lib/julia/`
|
| 197 |
+
(which likely differs on your system!), you could add:
|
| 198 |
+
|
| 199 |
+
```
|
| 200 |
+
export LD_LIBRARY_PATH=$HOME/.julia/juliaup/julia-1.10.0+0.x64.linux.gnu/lib/julia/:$LD_LIBRARY_PATH
|
| 201 |
+
```
|
| 202 |
+
|
| 203 |
+
to your `.bashrc` or `.zshrc` file.
|
| 204 |
+
|
| 205 |
**Running PySR on macOS with an M1 processor:** you should use the pip version, and make sure to get the Julia binary for ARM/M-series processors.
|
| 206 |
|
| 207 |
## Quickstart
|