Search code examples
makefilerocksdb

RocksDB make install


From the (slightly) outdated documentation on pyrocksdb, it says:

"If you do not want to call make install export the following enviroment variables:"

$ export CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}:`pwd`/include
$ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:`pwd`
$ export LIBRARY_PATH=${LIBRARY_PATH}:`pwd`

But the installation instructions for RocksDB do not seem to mention any sort of install target!

Is there an accepted procedure for installing RocksDB from source?


My thoughts are to just copy the contents of the include directory from the rocksdb directory into somewhere like /usr/local/include and copy the librocksdb.so and librocksdb.a files into /usr/local/lib. Is this an acceptable method?

Note: The method of exporting environment variables was less preferable to me, as I built rocksdb in a directory inside my home folder--I am hoping for a cleaner solution (interpret that how you want).


Solution

  • RocksDB recently has make install. If you use the latest version, you should be able to do make install in RocksDB.