New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install instructions? #433
Comments
I have similar thoughts on how to deal with leveldb in the A Linux distro survey of mine resulted in:
Currently I have a stub 'strusleveldb' project (based on leveldb 1.18) on OBS: https://build.opensuse.org/project/monitor/home:andreas_baumann This provides leveldb packages for platforms not supporting it or having Why do some Linux distributions choose to use malloc instead of tcmalloc? There seems to be a tradeoff between memory consumption and speed. So if In my experience packagers tend to think about a specific application of the Alternatively you can also embedd leveldb, but this is more suitable for C++ projects as:
|
i would appreciate a lot if someone could give instruction on how to install leveldb...building from source |
On Fedora 24, I did the following to build from source:
|
On CentOS/RHEL, instructions:
|
LevelDB building instructions for iOS:
Then
A couple of notices:
|
since google doesn't give a wet crap about its users, here is the patch from debian adding an install target to the Makefile: Description: Improvements to the Makefile.
Replace INSTALL_PATH with the most commonly use DESTDIR variable.
Add an 'install' target.
Author: Alessio Treglia <alessio@debian.org>
Forwarded: http://code.google.com/p/leveldb/issues/detail?id=27
---
Makefile | 15 +++++++++++++++
1 file changed, 15 insertions(+)
--- leveldb.orig/Makefile
+++ leveldb/Makefile
@@ -2,6 +2,10 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. See the AUTHORS file for names of contributors.
+PREFIX ?= /usr/local
+LIBDIR ?= lib
+INCLUDEDIR ?= include
+
#-----------------------------------------------
# Uncomment exactly one of the lines labelled (A), (B), and (C) below
# to switch between compilation modes.
@@ -140,6 +144,17 @@ endif # PLATFORM_SHARED_EXT
all: $(SHARED_LIBS) $(SHARED_PROGRAMS) $(STATIC_OUTDIR)/libleveldb.a $(STATIC_OUTDIR)/libmemenv.a $(STATIC_PROGRAMS)
+install: all
+ install -d $(DESTDIR)$(PREFIX)/$(LIBDIR)
+ install -d $(DESTDIR)$(PREFIX)/$(INCLUDEDIR)/leveldb
+ install -m 0644 $(STATIC_OUTDIR)/libleveldb.a $(DESTDIR)$(PREFIX)/$(LIBDIR)
+ifneq ($(PLATFORM_SHARED_EXT),)
+ install -m 0644 $(SHARED_OUTDIR)/$(SHARED_LIB3) $(DESTDIR)$(PREFIX)/$(LIBDIR)
+ cd $(DESTDIR)$(PREFIX)/$(LIBDIR) && ln -sf $(SHARED_LIB3) $(SHARED_LIB2)
+ cd $(DESTDIR)$(PREFIX)/$(LIBDIR) && ln -sf $(SHARED_LIB3) $(SHARED_LIB1)
+endif
+ install -m 0644 include/leveldb/* $(DESTDIR)$(PREFIX)/$(INCLUDEDIR)/leveldb
+
check: $(STATIC_PROGRAMS)
for t in $(notdir $(TESTS)); do echo "***** Running $$t"; $(STATIC_OUTDIR)/$$t || exit 1; done taken from https://packages.debian.org/buster/libleveldb-dev -> http://http.debian.net/debian/pool/main/l/leveldb/leveldb_1.20-2.debian.tar.xz |
The CMake-based build supports installing. We don't use this, so the code is fairly untested. Please file bugs if you have problems on specific platforms. |
I'm using LinovDB which requires LevelDB but I don't see any instructions on how to install LevelDB on Linux.
https://github.com/Ivshti/linvodb3
The text was updated successfully, but these errors were encountered: