Closed nathanhillyer closed 5 years ago
Figured it out.
Apparently you can also use the BERKELEY_DB
environment variable.
But I ran into another error:
ERROR: Trying to use the Berkeley DB you specified...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/tm/x76_y5t15vgcw9mycdc4cshc0000gn/T/pip-install-tajo11ks/bsddb3/setup.py", line 42, in <module>
import setup3
File "/private/var/folders/tm/x76_y5t15vgcw9mycdc4cshc0000gn/T/pip-install-tajo11ks/bsddb3/setup3.py", line 354, in <module>
db_ver = (int(fullverstr[0]), int(fullverstr[2]))
ValueError: invalid literal for int() with base 10: '.'
Well, apparently the python lib breaks on versions 10 or higher (if major version has 2 characters).
So I ran brew uninstall berkeley-db
.
Then brew install berkeley-db@4
. This installs version 4, which prevented pip from choking.
To set the environment variable I put:
export PATH="/usr/local/opt/berkeley-db@4/bin:$PATH"
in my zshrc
.
Getting error:
Installed Berkeley DB but have no idea how to use the
--berkeley-db=/path/to/bsddb option