Comments (18)
What version of g++ are you using? Can you try upgrading to 4.7 or 4.8?
from rocksdb.
I'm using 4.8.1.
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.
Have you finised compile without above header?
from rocksdb.
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
from rocksdb.
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:
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
.
Mark Callaghan
[email protected]
from rocksdb.
Yes, need to add "include <unistd.h>" to fix he compile failure
from rocksdb.
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..
$:~/projects/rocksdb/snappy/snappy-1.0.5$ make
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/dhruba/local/externals/java/leveldb/source/snappy-1.0.5/missing --run aclocal-1.11 -I m4
/bin/sh: 0: Can't open /home/dhruba/local/externals/java/leveldb/source/snappy-1.0.5/missing
make: *** [aclocal.m4] Error 12
$:~/projects/rocksdb/snappy/snappy-1.0.5$ grep -Ri "dhruba" Makefile | wc -l
11
It would be great if you guys can put together a guide on building..
from rocksdb.
Working on it ;)
from rocksdb.
from rocksdb.
Can you please try compiling on Ubuntu now? I am able to compile and run on Ubuntu 12.04.
from rocksdb.
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).
from rocksdb.
Works now.. Thanks guys!
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
then make, make install in rocksdb and done.
from rocksdb.
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]:
Works now.. Thanks guys!
For others: On a fresh 12.04 LTS, the process is as roughly follows
sudo apt-get install libsnappy-dev
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)Install gflags
(its not 1-command if you are < 12.10)
see http://askubuntu.com/questions/312173/installing-gflags-12-04?rq=1then make, make install in rocksdb and done.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-28703440
.
Mark Callaghan
[email protected]
from rocksdb.
@igorcanadi @vinothchandar 👍 with only install build-essentials and upgrade gcc/g++, install gflags
Thank you
from rocksdb.
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.
from rocksdb.
👍
@igorcanadi you're awesome!
from rocksdb.
+1 or should I say "like" :P .. Thanks for adding the installation instructions guys..
from rocksdb.
A nice tut:
http://bienuit.wordpress.com/2013/12/04/how-to-install-rocksdb-on-ubuntu-12-04-lts/
from rocksdb.
In case of me, this one doesn't work.
brew tap homebrew/dupes; brew install gcc47 --use-llvm
instead of it, the below line makes me working on it.
brew tap homebrew/version; brew install gcc47 --use-llvm
from rocksdb.
Related Issues (20)
- New LZ4 encoding HOT 1
- release 8.10.2 on maven central HOT 1
- tailing iterator ambiguity
- When run in two consecutive times DB::Open has quite different time cost HOT 2
- Is it possible to make the db.get operation after db.close without exception? HOT 3
- Feature Request: Graceful upgrade
- There is an error when I am compilling rocksDB version above 8.10.0 with zenFS 2.1.4 HOT 1
- Doc bug: CustomFilterPolicy example
- Feature request: check if prefix exists without seeking HOT 5
- intermittent segfault with small database with multiple column families HOT 2
- coredump when trying to repair database
- Rocksdb crash when upgrade from 6.6.3 to 8.0 HOT 1
- ZSTD_TrainDictionary runs even when the compression is set to kNoCompression for a given level HOT 4
- can I reuse a rocksdb writebatch by calling rocksdb_writebatch_clear?
- TtlDb.java doesn't set default column family handle HOT 4
- Discussion: requiring minimum of C++20 HOT 10
- Enable/Disable CacheEntryRoleOptions::chargedfor CacheEntryRole DataBlock is not supported on Ubuntu only HOT 5
- rocksdb Open may read over 160MB from an sst file in one Read request to file system
- Windows GitHub Action build of RocksDB failing silently without marking job as failed HOT 1
- Memory Leak with rocksdb version 6.6.3 ? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rocksdb.