Skip to content

Commit 74b1c82

Browse files
authored
added info to fix tests on m1 macs (#2102)
1 parent cb0caeb commit 74b1c82

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/TESTS.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@ pip install -U -r requirements.txt
99
python setup.py develop
1010
```
1111

12+
### Apple Silicon Macs
13+
M1 and subsequent Mac computers may encounter the error below when attempting to run tests.
14+
15+
```
16+
OSError: Could not find lib geos_c or load any of its variants ['/Library/Frameworks/GEOS.framework/Versions/Current/GEOS', '/opt/local/lib/libgeos_c.dylib', '/usr/local/lib/libgeos_c.dylib'].
17+
```
18+
19+
Try this for one possible fix. Requires [homebrew](https://brew.sh/).
20+
```
21+
brew install geos
22+
sudo ln -s /opt/homebrew/lib/libgeos_c.dylib /usr/local/lib
23+
```
24+
25+
1226
## Code / Unit Tests
1327

1428
The `vector-datasource` project comes with some unit tests for the code in the `vectordatasource/` directory. These can be run with the command:

0 commit comments

Comments
 (0)