Closed clach04 closed 4 years ago
I did try building (same machine) but that was not successful. I tried out a recent version of Go for Windows, I was able to build via:
go build
I did not try the install option:
go version go1.14.2 windows/amd64
I'm not familiar with the Go ecosystem so I don't know how to progress/debug this further.
Hello clach04: you don't have to build dir2opds you can take the build for releases: https://github.com/dubyte/dir2opds/releases for the raspbian you could try dir2opds_v0.0.3_Linux-arm6.tar.gz
If you want to build it I think the 1.7 is ok but you need to set your GOPATH env variable. usually is in $HOME/go so you can create a folder in $HOME called go
then in your $HOME/.bashrc add: export GOPATH="$HOME/go"
and that would be it.
additionally you could install go 1.14.3 for raspbian using: https://golang.org/doc/install?download=go1.14.3.linux-amd64.tar.gz
@dubyte thanks for the suggestion, I'll check out newer go versions (note the link you have is for amd64 not ARM). I already had GOPATH set (see issue description, last test build).
I can't use prebuilt binaries for a couple of reasons:
How was https://github.com/dubyte/dir2opds/releases/tag/v0.0.3 built, what version of Go/Rasbian?
I stumbled across https://llllllll.co/t/norns-on-raspberry-pi/14148/233 which indicated Go v1.10.3. was needed as a minimum for url.PathEscape
Update, found https://github.com/go-gitea/gitea/issues/3123#issuecomment-350401990 which indicates go v1.8 as minimum.
https://github.com/golang/go/commit/7e2bf952a905f16a17099970392ea17545cdd193
The think is that once that is compiled, you dont need go installed it will just work. is not like java or python. if you download a binary release it should work for in any raspberry with linux.
if you want to create a pull request for the cbz I can merge it and create a new release.
if you still have issue to compile it let me know i can help.
I am adding your suggestions in: https://github.com/dubyte/dir2opds/tree/release_0_4_0 So if you want to take a look and add more stuff please let me know.
Install instructions do not work for:
Issuing:
Results in:
Setting GOPATH progresses a little further: