Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go get fails on fedora due to elliptic.P224 #690

Closed
dncohen opened this issue Mar 22, 2016 · 7 comments
Closed

go get fails on fedora due to elliptic.P224 #690

dncohen opened this issue Mar 22, 2016 · 7 comments

Comments

@dncohen
Copy link

dncohen commented Mar 22, 2016

I'm brand new to caddy, and almost as new to golang, so please forgive me if this is a FAQ.

My problem is this on fedora23:

[user@sandbox ~]$ go get -u github.com/mholt/caddy/caddy
# golang.org/x/crypto/ocsp
gocode/src/golang.org/x/crypto/ocsp/ocsp.go:199: undefined: elliptic.P224

A little searching tells me the dependency is omitted on fedora due to a patent issue. But the searching has yet to turn up a workaround.

I'm wondering if this dependency could be made optional in Caddy?

It occurs to me possibly the change has to be in crypto/ocsp. If so, pardon the noise! Caddy looks quite nice and I'm eager to try it out.

Thanks. -Dave

@dncohen
Copy link
Author

dncohen commented Mar 22, 2016

Ok, so I did I miss the "You will need Go 1.6 or newer." in the README.md

In case it saves any fedora users some time... first sudo dnf remove golang, then follow instructions on https://golang.org/doc/install, which are simple and clear.

Then go get -u github.com/mholt/caddy/caddy will succeed. (Although does not create a $GOPATH/bin/caddy. Haven't figured that out yet.)

@dncohen dncohen closed this as completed Mar 22, 2016
@weingart
Copy link

go test github.com/mholt/caddy/...
go install github.com/mholt/caddy/caddy

-Toby.

On Tue, Mar 22, 2016 at 6:19 AM, dncohen notifications@github.com wrote:

Ok, so I did I miss the "You will need Go 1.6 or newer." in the README.md

In case it saves any fedora users some time... first sudo dnf remove
golang, then follow instructions on https://golang.org/doc/install, which
are simple and clear.

Then go get -u github.com/mholt/caddy/caddy will succeed. (Although does
not create a $GOPATH/bin/caddy. Haven't figured that out yet.)


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#690 (comment)

@zoowar
Copy link

zoowar commented Oct 17, 2016

This issue persists with Fedora 24. Today I upgraded to Fedora 24 so I would have a 1.6 version of golang.

[user]$ go version
go version go1.6.3 linux/amd64

[user]$ go get -u github.com/mholt/caddy/caddy
# golang.org/x/crypto/ocsp
work/golang/src/golang.org/x/crypto/ocsp/ocsp.go:199: undefined: elliptic.P224

@elcore
Copy link
Collaborator

elcore commented Oct 17, 2016

Hello @zoowar,

please follow the instructions on https://golang.org/doc/install, download Caddy here https://caddyserver.com/download or use https://getcaddy.com

@anovanmaximuz
Copy link

Hi @elcore it solve or just trying ? I seem problem like @dncohen

go build mattermost.go

github.com/mattermost/platform/vendor/golang.org/x/crypto/ocsp

../go/src/github.com/mattermost/platform/vendor/golang.org/x/crypto/ocsp/ocsp.go:199: undefined: elliptic in elliptic.P224
../go/src/github.com/mattermost/platform/vendor/golang.org/x/crypto/ocsp/ocsp.go:199: undefined: elliptic in elliptic.P256
../go/src/github.com/mattermost/platform/vendor/golang.org/x/crypto/ocsp/ocsp.go:202: undefined: elliptic in elliptic.P384
../go/src/github.com/mattermost/platform/vendor/golang.org/x/crypto/ocsp/ocsp.go:205: undefined: elliptic in elliptic.P521

@elcore
Copy link
Collaborator

elcore commented Oct 24, 2016

Hello @anovanmaximuz,

please follow the instructions on https://golang.org/doc/install, download Caddy here https://caddyserver.com/download or use https://getcaddy.com

In case it saves any fedora users some time... first sudo dnf remove golang, then follow instructions on https://golang.org/doc/install, which are simple and clear. Then go get -u github.com/mholt/caddy/caddy will succeed.

https://caddyserver.com/download/build?os=linux&arch=amd64&features=

@anovanmaximuz
Copy link

@elcore thanks it works
step :

  1. remove golang
  2. install caddy
  3. install golang for latest (1.7.x) , do not package manager llinux, download manual and add it into PATH, follow https://golang.org/doc/install
  4. try build - no errors affect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants