use go 1.3 or higher
This commit is contained in:
parent
83f5855bba
commit
8a7efa9929
16
README.md
16
README.md
@ -6,7 +6,21 @@ This repository contains resources used by the core daemon which is located [her
|
||||
|
||||
## getting started ##
|
||||
|
||||
start [here](doc/build.md)
|
||||
Get the dependancies
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get --no-install-recommends install imagemagick libsodium-dev ffmpegthumbnailer sox build-essential git golang ca-certificates
|
||||
|
||||
Check out this repo and build it
|
||||
|
||||
git clone https://github.com/majestrate/nntpchan
|
||||
cd nntpchan
|
||||
./build.sh
|
||||
|
||||
Now configure the database. [Next](docs/database.md)
|
||||
|
||||
|
||||
---
|
||||
|
||||
*PLEASE* report any bugs you find while setting up or building [(here)](https://github.com/majestrate/nntpchan/issues) so that the problems get fixed :^)
|
||||
|
||||
|
7
build.sh
Executable file
7
build.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/env/bin bash
|
||||
set -e
|
||||
root=$(readlink -e $(dirname $0))
|
||||
cd $root
|
||||
export GOPATH=$root/go
|
||||
mkdir -p $GOPATH
|
||||
go get -u github.com/majestrate/srndv2
|
42
doc/build.md
42
doc/build.md
@ -4,7 +4,7 @@
|
||||
## requirements ##
|
||||
|
||||
* linux or freebsd
|
||||
* go 1.4 or higher
|
||||
* go 1.3 or higher
|
||||
* libsodium 1.0 or higher
|
||||
* imagemagick
|
||||
* ffmpegthumbnailer
|
||||
@ -15,42 +15,14 @@
|
||||
|
||||
Get the dependancies
|
||||
|
||||
# as root
|
||||
sudo apt-get update
|
||||
sudo apt-get --no-install-recommends install imagemagick libsodium-dev ffmpegthumbnailer sox build-essential git golang ca-certificates
|
||||
|
||||
apt update
|
||||
apt-get --no-install-recommends install imagemagick libsodium-dev ffmpegthumbnailer sox build-essential git
|
||||
|
||||
Debian Jessie has go 1.3, we need 1.4 or higher to build the nntpchan daemon so let's do that first, assumes 64bit linux:
|
||||
Check out the repo and build it
|
||||
|
||||
#
|
||||
# --->> DO NOT RUN AS ROOT <<---
|
||||
# (you probably will break stuff really bad if you do)
|
||||
#
|
||||
|
||||
# make directory for go's packages
|
||||
mkdir -p $HOME/go
|
||||
|
||||
# set up a directory for our go distribution
|
||||
mkdir -p $HOME/local
|
||||
cd $HOME/local
|
||||
|
||||
# obtain and unpack go binary distribution
|
||||
wget https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz -O go-stable.tar.gz
|
||||
tar -xzvf go-stable.tar.gz
|
||||
|
||||
# set up environmental variables for go
|
||||
export GOROOT=$HOME/local/go
|
||||
export GOPATH=$HOME/go
|
||||
export PATH=$GOROOT/bin:$GOPATH/bin:$PATH
|
||||
|
||||
# put environmental variables in bash_alises for later
|
||||
echo 'export GOROOT=$HOME/local/go' >> $HOME/.bash_aliases
|
||||
echo 'export GOPATH=$HOME/go' >> $HOME/.bash_aliases
|
||||
echo 'export PATH=$GOROOT/bin:$GOPATH/bin:$PATH' >> $HOME/.bash_aliases
|
||||
|
||||
# now build the daemon
|
||||
go get -u github.com/majestrate/srndv2
|
||||
|
||||
It will create an executable at $GOPATH/bin/srndv2 which is already in our $PATH so it can be run by typing ``srndv2``
|
||||
git clone https://github.com/majestrate/nntpchan
|
||||
cd nntpchan
|
||||
./build.sh
|
||||
|
||||
Now configure the database. [next](database.md)
|
||||
|
Reference in New Issue
Block a user