stephan-hof / pyrocksdb

Python bindings for RocksDB
BSD 3-Clause "New" or "Revised" License
150 stars 169 forks source link

undefined symbol: _ZTIN7rocksdb10ComparatorE #57

Open azhuoinfogs opened 6 years ago

azhuoinfogs commented 6 years ago

python Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import rocksdb Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/rocksdb/init.py", line 1, in from ._rocksdb import * ImportError: /usr/local/lib/python2.7/dist-packages/rocksdb/_rocksdb.so: undefined symbol: _ZTIN7rocksdb10ComparatorE

baraiyaraj commented 6 years ago

Having same issue. Please provide some solution.

baraiyaraj commented 6 years ago

I was able to solve the above problem. Please delete the copy of your python rocks-db and try the steps below: https://github.com/rajbaraiyaa/python-rocksdb-/blob/master/install_steps

I was successfully able to install it with the steps mentioned in the link.

richael02 commented 6 years ago

@azhuoinfogs I met this problem too. Have you figured out the solution ? @rajbaraiyaa I install pyrocksdb by the same steps as you, but there still exists the ImportError.

ali8zake commented 6 years ago

hello a) i use the install_step, faild by clock_time not fund ,but i export LD_PRELOAD, aslo LDFLAGS = -lr ,aslo failed b) git clone master ,make share_lib,can make ok then pip install import failed Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/site-packages/rocksdb/init.py", line 1, in from ._rocksdb import * ImportError: /usr/local/lib/python2.7/site-packages/rocksdb/_rocksdb.so: undefined symbol: _ZTIN7rocksdb24AssociativeMergeOperatorE

thanks