You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kgcrom@lucas:~/sponge$ g++ --version
g++ (Ubuntu 4.8.1-2ubuntu1~12.04) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I'm getting these erros:
db/db_bench.cc:14:27: fatal error: gflags/gflags.h: No such file or
directory
compilation terminated.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-28646477
.
I am trying to add a storage engine to Voldemort based on rocksdb. Also running into trouble compiling snappy on Ubuntu 12.04 LTS. Seems like the makefile has some hardcoded paths..
For others: On a fresh 12.04 LTS, the process is as roughly follows
1. sudo apt-get install libsnappy-dev
2. Upgrade gcc/g++ to 4.8
See http://askubuntu.com/questions/312620/how-do-i-install-gcc-4-8-1-on-ubuntu-13-04
(it is for 13.04. but the process is common I think)
3. sudo apt-get install build-essentials devscripts
4. Install gflags
(its not 1-command if you are < 12.10)
see http://askubuntu.com/questions/312173/installing-gflags-12-04?rq=1
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-28703440
.
Activity
igorcanadi commentedon Nov 16, 2013
What version of g++ are you using? Can you try upgrading to 4.7 or 4.8?
kgcrom commentedon Nov 16, 2013
I'm using 4.8.1.
Have you finised compile without above header?
dyu commentedon Nov 17, 2013
I'm getting these erros:
db/db_bench.cc:14:27: fatal error: gflags/gflags.h: No such file or directory
compilation terminated.
on ubuntu 13.04 gcc 4.7.3
mdcallag commentedon Nov 17, 2013
Do you need to install gflags? Is that a dependency we need to document?
On a recent ubuntu 12.10 install I had to do:
sudo apt-get install libgflags-dev
And I also had to add this to db/db_test.cc for the default (debug?) build
to define "truncate".
diff --git a/db/db_test.cc b/db/db_test.cc
index e246798..2f1a1e3 100644
--- a/db/db_test.cc
+++ b/db/db_test.cc
@@ -27,6 +27,7 @@
#include "util/testharness.h"
#include "util/testutil.h"
#include "utilities/merge_operators.h"
+#include <unistd.h>
namespace rocksdb {
On Sun, Nov 17, 2013 at 3:03 AM, David Yu [email protected] wrote:
Mark Callaghan
[email protected]
mdcallag commentedon Nov 17, 2013
Yes, need to add "include <unistd.h>" to fix he compile failure
vinothchandar commentedon Nov 17, 2013
I am trying to add a storage engine to Voldemort based on rocksdb. Also running into trouble compiling snappy on Ubuntu 12.04 LTS. Seems like the makefile has some hardcoded paths..
It would be great if you guys can put together a guide on building..
igorcanadi commentedon Nov 17, 2013
Working on it ;)
dhruba commentedon Nov 18, 2013
https://reviews.facebook.net/
igorcanadi commentedon Nov 18, 2013
Can you please try compiling on Ubuntu now? I am able to compile and run on Ubuntu 12.04.
dyu commentedon Nov 18, 2013
A complete list of dependencies (required and optional) would be a good start.
The docs has been pretty good so far except for install/build docs :-)
I successfully compiled after installing libgflags-dev (thanks @mdcallag).
vinothchandar commentedon Nov 18, 2013
Works now.. Thanks guys!
For others: On a fresh 12.04 LTS, the process is as roughly follows
then make, make install in rocksdb and done.
mdcallag commentedon Nov 18, 2013
I don't think gcc 4.8 is required. I compile with 4.7.2 using Ubuntu 12.10
On Mon, Nov 18, 2013 at 6:52 AM, vinoth chandar [email protected]:
Mark Callaghan
[email protected]
kgcrom commentedon Nov 18, 2013
@igorcanadi @vinothchandar 👍 with only install build-essentials and upgrade gcc/g++, install gflags
Thank you
igorcanadi commentedon Nov 18, 2013
Added INSTALL.md: https://github.com/facebook/rocksdb/blob/master/INSTALL.md
I hope this is resolved. Let us know if you are still having issues.
101 remaining items
Fix GetMergeOperands() heap-use-after-free on flushed memtable (meta#…
Fix stress test failure in ReadAsync. (meta#9824)
Revert "Add CompressedSecondaryCache into stress test" meta#10442 (me…
Fix the memory leak in db_stress tests that are caused by `FaultInjec…
Add missing synchronization in TestFSWritableFile (meta#10544)
Add missing mutex when reading from shared variable bg_bottom_compact…
Reduce access to atomic variables in a test (meta#10909)
Fix flaky test: `DBCompactionTest.WaitForCompactShutdownWhileWaiting` (…
Fix stack trace trimming with LLDB (meta#12101)
Fix AddressSanitizer container-overflow (meta#12722)
Fix heap-use-after-free in MultiCfIteratorImpl (meta#12784)
Skip building remote compaction output file when not OK (meta#13183)
Fix race in accessing MANIFEST number in crash test (meta#13603)
Fix use-after-free in BlockBasedTable after best-efforts recovery ret…
Fix incorrect input file expansion in SetupOtherFilesWithRoundRobinEx…