brew install pkg-config
brew install cmake
brew install openssl
git clone https://github.com/neo4j-drivers/seabolt
--------------请务必替换1.0.2r 和 你的目录-----------
export OPENSSL_ROOT_DIR=/usr/local/Cellar/openssl/1.0.2r
export OPENSSL_LIBRARIES=/usr/local/Cellar/openssl/1.0.2r/lib
export PKG_CONFIG_PATH=$HOME/你的目录/seabolt/build/dist/share/pkgconfig
export C_INCLUDE_PATH=$HOME/你的目录/seabolt/build/dist/include
export DYLD_LIBRARY_PATH=$HOME/你的目录/seabolt/build/dist/lib
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/usr/local/lib
source ~/.bash_profile
./make_release.sh
cd seabolt
sudo cp build/share/pkgconfig/seabolt17.pc build/share/pkgconfig/seabolt17-static.pc /usr/local/lib/pkgconfig
sudo cp build/lib/libseabolt17.1.dylib /usr/local/lib
go build -ldflags "-r $(pkg-config --variable=libdir seabolt17)"