Skip to content

Installation

Rishi edited this page Sep 2, 2017 · 3 revisions

Installation

The transfer2go tool is written in Go-language. As such, it can be compiled into static executable and deployed simply by copying it to desired node. To compile code please obtain Go-language first and appropriate list of dependencies, see below. Afterwards, just invoke make to build an executable.

NOTE: Need go version >= 1.8

Dependencies

transfer2go code is written in Go programming language. Once compiled it produces a static executable and does not require additional dependencies, but internally it depends on the following packages:

  • go get github.com/vkuznet/x509proxy # provides x509 support
  • go get github.com/buger/jsonparser # provides fast json parser
  • go get github.com/pkg/profile # provides profile info
  • go get github.com/rcrowley/go-metrics # provides various metrics
  • go get github.com/go-sql-driver/mysql # MySQL driver
  • go get github.com/mattn/go-sqlite3 # SQLiteDB driver
  • go get gopkg.in/rana/ora.v3 # ORACLE driver We listed them in a way how they can be obtained via go tool.

Installation instruction for ora Oracle driver

If you'll be required to setup ORACLE back-end, please follow these steps:

  • Download oracle client libraries and sdk from Oracle web site
  • Setup the environment and build ora.v3 package
export CGO_CFLAGS=-I/path/Oracle/instantclient_12_1/sdk/include
# for Linux
export CGO_LDFLAGS="-L/path/Oracle/instantclient_12_1/ -locci -lclntsh -lipc1 -lmql1 -lnnz12 -lclntshcore -lons"
# for OSX
export CGO_LDFLAGS="-L/opt/Oracle/instantclient_11_2/ -locci -lclntsh -lnnz11"
go get gopkg.in/rana/ora.v3

To use this driver we define dbfile with ora entry

ora oracleLogin/oraclePassword@DB

Build Project

$ go build
$ ./transfer2go
Clone this wiki locally