You are advised to read init.conf file, and modify it as you wish. (this file will configure the basic options of gStore system)
gStore is a green software, and you just need to compile it with three commands. Please run
sudo ./scripts/setup/setup_$(ARCH).sh
make pre
make
in the gStore home directory to prepare the dependency, link the ANTLR lib, compile the gStore code, and build executable "gbuild", "gquery", "gadd", "gsub", "gmonitor", "gshow", "ghttp", "ginit", "gdrop", "shutdown", "gserver", "gclient", "gconsole".
(Please substitute the $(ARCH) with your system version, like setup_archlinux.sh, setup_centos.sh and setup_ubuntu.sh)
What is more, the api of gStore is also built now.
Setup scripts and dependency preparation only need to be done once, later you can directly use make
to compile the code.
(For faster compiling speed, use make -j4
instead, using how many threads is up to your machine)
To check the correctness of the program, please type make test
command.
Only if you use the make dist
command, then you need to run make pre
command again.
If you want to use API examples of gStore, please run make APIexample
to compile example codes for both C++ API and Java API. For details of API, please visit API chapter.
Use make clean
command to clean all objects, executables, and use make dist
command to clean all objects, executables, libs, datasets, databases, debug logs, temp/text files in the gStore root directory.
You are free to modify the source code of gStore and create your own project while respecting our work, and type make tarball
command to compress all useful files into a .tar.gz file, which is easy to carry.
Type make gtest
to compile the gtest program if you want to use this test utility. You can see the HOW TO USE for details of gtest program.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。