-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Got message "Please install gflags to run rocksdb tools" while running ./db_bench #1775
Comments
RocksDB can compile even if gflags don't exist, please try re-compiling after installing gflags |
@IslamAbdelRahman, thanks for your reply. I still get the same error, as follows [root@localhost rocksdb-5.1.2]# ./db_bench --benchmarks=readrandomwriterandom --key_size=512 --value_size=3584 --open_files=65528 --num_levels=3 --max_bytes_for_level_base=629145600 --target_file_size_multiplier=10 --block_size=131072 --compaction_pri=3 --target_file_size_base=1048576 --threads=1 --num=500000 [root@localhost rocksdb-5.1.2]# rpm -qa|grep gflags |
Finally, I noticed the following comments in file build_tools/build_detect_platform,
After setting CPATH and LIBRARY_PATH, I can run db_bench now. I'll update the installation document to illustrate this. |
Close this issue as it is resolved. |
Summary: Add a notice on gflags installation to help people build and install RocksDB from source code correctly. Please see facebook#1775
Is there some solution to solve this problem?? |
@JevonQ Were you able to solve this issue. If yes, which OS version and how. I have tried several things mentioned in the readme etc, but unable to find the issue here. I am trying to compile it on Ubuntu 18.04 and was using the following command
Gflags is correctly installed in my machine
|
Please remember to "make clean" before "make" after installing gflags. |
I've seen this error too. but my situation was bit different. |
@JevonQ I am having this problem now but i do not understand how to set the CPATH and LIBRARY_PATH. Could you posted the step here? I am new to RocksDB. |
I just compiled RocksDB on CentOS 7.1 yesterday with no errors, but when I try to run ./db_bench command I got the message "Please install gflags to run rocksdb tools". I built and installed gflags from scratch. Since the compilation of RocksDB have succeeded, so I think the installation of gflags succeeds as well.
I also tried to google the problem but with no luck, can anyone help me out of this?
The text was updated successfully, but these errors were encountered: