caddyserver / caddy

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
https://caddyserver.com
Apache License 2.0
56.83k stars 3.98k forks source link

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

Closed dncohen closed 8 years ago

dncohen commented 8 years ago

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 commented 8 years ago

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.)

weingart commented 8 years ago

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 https://github.com/mholt/caddy/issues/690#issuecomment-199809842

zoowar commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

@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