mac installation error
GliderGeek opened this issue · comments
- Mac OS 10.15.3
- go1.13.5 / go1.14.2 darwin/amd64 (installed with homebrew)
- GNU Make 3.81
- ZSH
tried the install as described in the README and got the following error:
$ make install_nyt
go get ./...
go get: no install location for directory ~/remarkable_news outside GOPATH
For more details see: 'go help gopath'
make: *** [renews.arm] Error 1
will try to fix this and report if i encounter other problems
upgrading to go 1.14.2 does not make a change
https://stackoverflow.com/a/27428046/4629173
this solved it for me(export GOPATH and GOBIN)
This bring me a bit further: renews.arm
is produced. However another error pops up:
$ make install_nyt
go get ./...
env GOOS=linux GOARCH=arm GOARM=5 go build -o renews.arm
ssh-add
make: *** [install_nyt] Error 1
after adding an ssh key (per https://remarkablewiki.com/tech/ssh)
i got a step further.
unfortunately another error:
$ make install_nyt
go get ./...
env GOOS=linux GOARCH=arm GOARM=5 go build -o renews.arm
ssh-add
Identity added: ***
ssh root@10.11.99.1 systemctl stop renews
Failed to stop renews.service: Unit renews.service not loaded.
make: *** [install_nyt] Error 5
The block with ssh context did not work for me. replaced it with:
ssh root@$(host) systemctl daemon-reload
ssh root@$(host) systemctl enable renews
ssh root@$(host) systemctl restart renews
It now seems to work 🎉 😄
thanks for the nice project, let me know if you need some help debugging some of the problems i described above
The block with ssh context did not work for me. replaced it with:
That's weird. OSX uses either bash or zsh and both of those should support that syntax.
Can you paste the error you got? Be sure to use the latest commit.
Also, if you add SHELL=/bin/bash
to the top of the Makefile, does that fix anything?
will do so
So what's the verdict here? Does the SSH heredoc work on OSX?
@Evidlo I'm on macOS Big Sur and I needed both of @GliderGeek modifications for the install to work.