Build Fails on MacOS
See original GitHub issueBuilding python-rocksdb fails on recent version of MacOS. The final error you get is when linking with libstdc++:
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'g++' failed with exit status 1
Summary of how to work around right now:
brew install rocksdb
export MACOSX_DEPLOYMENT_TARGET=10.9
pip install python-rocksdb
The pandas folks ran into this too; here is a discussion on how to resolve the issue by passing additional args to Clang: https://github.com/pandas-dev/pandas/issues/23424
Issue Analytics
- State:
- Created 4 years ago
- Comments:24
Top Results From Across the Web
PyEnv BUILD FAILED installing Python on MacOS
While trying to install Python 3.6.6 (for Airflow ) using PyEnv on MacOS , I am encountering build failure with following stack-trace
Read more >Not Able to Build Some Versions of Python on M1 at 12.3.1
I trying to build older version of python such as 3.6, 3.7, 3.8 using pyenv and having build failures. I am on apple...
Read more >Build failed on MacOs Big Sur · Issue #1746 · pyenv ... - GitHub
This works for me with MacOS 11.0.1, xcode-select version 2384 and latest homebrew & homebrew-cask. Update: This doesn't work for old version ...
Read more >Build fails under macOS Monterey - GameMaker Community
Hello everyone! I have recently reset my MacBook and since then, GameMaker Studio 2 fails to build my projects.
Read more >Build Fails for MacOs app on Unreal Engine 5 in a Mac M1 Pro
Total execution time: 2.96 seconds Took 3.084248s to run UnrealBuildTool, ExitCode=0 BUILD FAILED: AddBuildProductsFromManifest: /Users/Shared/ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
this works for me on macOS 10.14.3
The following procedure worked for me on:
Install
rocksdb
withbrew
:Use
brew
to look up the path on your system of the libs required for the install ofpython-rocksdb
:I had all libs already installed, maybe due to the install of
rocksdb
. If libs are missing, I guess you need to install them.Export (for
gcc
?) the paths of the libs withCPPFLAGS
andLDFLAGS
and installpython-rocksdb
withpip
. For me that was (adapt paths according to your setup):The
export
s fixed also thepoetry install
of a poetry project withfaust-streaming-rocksdb
(faust-streaming = {extras = ["rocksdb"], version = "^0.8.2"}
) as dependency.