From a0704364ce7e4e65e805083a54362a53182cec7a Mon Sep 17 00:00:00 2001 From: Joey Zhou Date: Fri, 31 Jan 2014 01:59:30 -0800 Subject: [PATCH 1/3] fix build failure --- test_runner_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test_runner_test.go b/test_runner_test.go index 0a0b0d69c..5c8461ad8 100644 --- a/test_runner_test.go +++ b/test_runner_test.go @@ -27,8 +27,7 @@ func TestTestRunner(t *testing.T) { for key, value := range source.Inputs { trie.Update(key, value) } - - if hex.EncodeToString([]byte(trie.Root)) != source.Expectation { + if hex.EncodeToString(trie.Root.([]byte)) != source.Expectation { t.Error("trie root did not match") } }) From 6a7cd0c676f56ab1bf2205ee29f6bb24a2449f29 Mon Sep 17 00:00:00 2001 From: Ramesh Nair Date: Sat, 1 Feb 2014 11:10:18 +0800 Subject: [PATCH 2/3] Update README --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fe3ec304d..ac3235e93 100644 --- a/README.md +++ b/README.md @@ -38,10 +38,22 @@ Deps Ethereum Go makes use of a modified `secp256k1-go` and therefor GMP. -Install +Ubuntu 12+ +* `apt-get install libgmp3-dev` + +OS X 10.9+: +* `brew install gmp4` +* Symlink the headers and libs if necessary: + * `sudo ln -s /usr/local/opt/gmp4/include/gmp.h /usr/local/include/gmp.h` + * `sudo ln -s /usr/local/opt/gmp4/lib/libgmp.a /usr/local/lib/libgmp.a` + * `sudo ln -s /usr/local/opt/gmp4/lib/libgmpxx.a /usr/local/lib/libgmpxx.a` + +Build ======= -```go get -u -t https://github.com/ethereum/go-ethereum``` +* `go get -u -t github.com/ethereum/go-ethereum` +* `cd $GOPATH/src/github.com/ethereum/go-etherum` +* `go build` Command line options From 9cdf8f2cba0469429f3d3f2aeacdbb4844928a0a Mon Sep 17 00:00:00 2001 From: Ramesh Nair Date: Sat, 1 Feb 2014 11:20:29 +0800 Subject: [PATCH 3/3] Updated build instructions --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ac3235e93..10527931e 100644 --- a/README.md +++ b/README.md @@ -39,14 +39,10 @@ Deps Ethereum Go makes use of a modified `secp256k1-go` and therefor GMP. Ubuntu 12+ -* `apt-get install libgmp3-dev` +* `apt-get install gmp-dev` OS X 10.9+: -* `brew install gmp4` -* Symlink the headers and libs if necessary: - * `sudo ln -s /usr/local/opt/gmp4/include/gmp.h /usr/local/include/gmp.h` - * `sudo ln -s /usr/local/opt/gmp4/lib/libgmp.a /usr/local/lib/libgmp.a` - * `sudo ln -s /usr/local/opt/gmp4/lib/libgmpxx.a /usr/local/lib/libgmpxx.a` +* `brew install gmp` Build =======