AgensGraph is a cutting-edge multi-model graph database designed for modern complex data environments. By supporting both relational and graph data models simultaneously, AgensGraph allows developers to seamlessly integrate legacy relational data with the flexible graph data model within a single database. AgensGraph is built on the robust PostgreSQL RDBMS, providing a highly reliable, fully-featured platform ready for enterprise use.
Follow these steps to build AgensGraph from the source code:
Clone the Repository
$ git clone https://github.com/bitnine-oss/agensgraph.git
Install Dependencies
$ yum install gcc glibc glib-common readline readline-devel zlib zlib-devel
$ dnf install gcc glibc bison flex readline readline-devel zlib zlib-devel
$ yum install gcc glibc glib-common readline readline-devel zlib zlib-devel flex bison
$ sudo apt-get install build-essential libreadline-dev zlib1g-dev flex bison
$ xcode-select --install
Configure the Source Tree
$ ./configure --prefix=$(pwd)
By default,
make install
installs files in/usr/local/pgsql/bin
,/usr/local/pgsql/lib
, etc. Specify an installation prefix to the current directory. Ifconfigure
encounters missing headers, use--with-includes=/path/to/headers
.
Build and Install AgensGraph
$ make install
Set Up Environment Variables
PATH
environment variable:
$ . ag-env.sh
OR edit your /.bashrc
file (/.bash_profile
on macOS):
$ echo "export PATH=/path/to/agensgraph/bin:\$PATH" >> ~/.bashrc
$ echo "export LD_LIBRARY_PATH=/path/to/agensgraph/lib:\$LD_LIBRARY_PATH" >> ~/.bashrc
Optional: Build and Install with Additional Modules
$ make install-world
Optional: Set AGDATA
Environment Variable
$ echo "export AGDATA=/path/to/agensgraph/data" >> ~/.bashrc
AgensGraph supports various drivers for seamless connection and interaction with the database. Below are the supported drivers:
Driver | Description |
---|---|
JDBC | JDBC Driver Enables Java applications to interact with AgensGraph. |
Python | Python Driver Facilitates interaction between Python applications and AgensGraph. |
Node.js | Node.js Driver Allows Node.js applications to interface with AgensGraph. |
Go | Go Driver Provides connectivity for Go applications to AgensGraph. |
Comprehensive documentation is available to help you get started with AgensGraph and make the most of its features.
AgensGraphViewer is a web-based user interface that provides visualization of graph data stored in an AgensGraph database. It allows users to easily interact with and visualize their graph data, making it easier to understand and analyze complex relationships within the database.
For more information and to get started with AgensGraphViewer, visit the AgensGraphViewer GitHub repository.