diff options
author | Jakob Unterwurzacher | 2016-01-09 16:00:11 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-01-09 16:00:11 +0100 |
commit | 59b2c6595e3d093df7ff0a2a1cefa3b797b63e07 (patch) | |
tree | df397f37653afab4977a253f703ffd68776dc813 /docs/compile.md | |
parent | 0581f4757114d2c387c9d31f227e419213a1b7f6 (diff) |
quickstart using precompiled binaries
Diffstat (limited to 'docs/compile.md')
-rw-r--r-- | docs/compile.md | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/docs/compile.md b/docs/compile.md new file mode 100644 index 0000000..b79a0d4 --- /dev/null +++ b/docs/compile.md @@ -0,0 +1,43 @@ +Compile gocryptfs from Source +============================= + +You need to have the Go runtime and the OpenSSL headers installed to +compile gocryptfs. + +On Fedora, + + $ sudo dnf install golang openssl-devel + +On Debian and Ubuntu, + + $ sudo apt-get install golang libssl-dev + +Also, GOPATH must be set. Usually it is simply set to the home directory: + + $ export GOPATH=~ + +Download Source Code +-------------------- + + $ go get -d github.com/rfjakob/gocryptfs + +Compile +------- + + $ ~/src/github.com/rfjakob/gocryptfs/build.bash + +If successful, build.bash will copy the gocryptfs binary to ~/bin. + +Test +---- + + $ ~/src/github.com/rfjakob/gocryptfs/test.bash + +The tests run about 1 minute and should produce the following output: + + ok github.com/rfjakob/gocryptfs/cryptfs 1.174s + gocryptfs v0.7-15-gf01f599; on-disk format 2 + ok github.com/rfjakob/gocryptfs/integration_tests 12.409s + +You can run "test.bash -v" to see the execution of individual tests. Note that +the tests also check error cases that produce error messages. |