Last active
July 25, 2016 22:59
-
-
Save drwasho/eaec94d5f31056f4923b40c2f131214b to your computer and use it in GitHub Desktop.
Install script for the OpenBazaar-Go Server. Remember to give the script executable permissions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!bin/bash | |
# README | |
# Give the script executable permissions by typing: sudo chmod +x install.sh | |
# Run the script: sudo bash install.sh | |
# Install Dependencies and Tools | |
sudo apt-get update && sudo apt-get upgrade | |
sudo apt-get install git build-essential autoconf automake pkg-config libtool htop tree | |
# Install Golang | |
(cd /$HOME/; sudo wget https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz) | |
sudo mkdir /$HOME/golang | |
sudo mkdir /$HOME/go | |
(cd /$HOME/; sudo tar -C /$HOME/golang -xzf go1.6.2.linux-amd64.tar.gz) | |
export PATH=$PATH:/$HOME/golang/go/bin | |
echo $PATH | |
export GOPATH=/$HOME/go | |
export PATH=$PATH:$GOPATH/bin | |
echo $GOPATH | |
export GOROOT=/$HOME/golang/go | |
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin | |
# Install and Run OpenBazaar-Go and Dependencies | |
go get github.com/OpenBazaar/openbazaar-go | |
(cd $GOPATH/src/github.com/OpenBazaar/openbazaar-go; make toolkit_upgrade && make install) | |
(cd $GOPATH/src/github.com/OpenBazaar/openbazaar-go; go run openbazaard.go start) |
@agentbond007 thank goodness the latest version of openbazaar-go
doesn't require ZMQ anymore; I've update the script.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Dr. Some feedback on script.
Got the following
"# github.com/OpenBazaar/openbazaar-go/vendor/github.com/pebbe/zmq4
In file included from go/src/github.com/OpenBazaar/openbazaar-go/vendor/github.com/pebbe/zmq4/zmq4.go:8:0:
/usr/local/include/zmq_utils.h:44:9: note: #pragma message: Warning: zmq_utils.h is deprecated. All its functionality is provided by zmq.h.
#pragma message("Warning: zmq_utils.h is deprecated. All its functionality is provided by zmq.h.")
^
github.com/OpenBazaar/openbazaar-go/vendor/github.com/xeodou/go-sqlcipher
go/src/github.com/OpenBazaar/openbazaar-go/vendor/github.com/xeodou/go-sqlcipher/sqlite3-binding.c:16824:26: fatal error: openssl/rand.h: No such file or directory
#include <openssl/rand.h>"
also......
"go get -u github.com/whyrusleeping/gx
go get -u github.com/whyrusleeping/gx-go
gx --verbose install --global
installing package: openbazaar-go-0.2.0
successfully found all deps for openbazaar-go
installation of openbazaar-go complete!
go install -ldflags "-X github.com/OpenBazaar/openbazaar-go/main.Version=0.2.0" ./...
github.com/OpenBazaar/openbazaar-go/vendor/github.com/xeodou/go-sqlcipher
vendor/github.com/xeodou/go-sqlcipher/sqlite3-binding.c:16824:26: fatal error: openssl/rand.h: No such file or directory
#include <openssl/rand.h>
^
compilation terminated."