Evidlo / remarkable_news

Daily news/comics on your reMarkable's suspend screen
GNU General Public License v3.0
285 stars 32 forks source link

mac installation error #3

Closed GliderGeek closed 4 years ago

GliderGeek commented 4 years ago

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

GliderGeek commented 4 years ago

upgrading to go 1.14.2 does not make a change

GliderGeek commented 4 years ago

https://stackoverflow.com/a/27428046/4629173 this solved it for me(export GOPATH and GOBIN)

GliderGeek commented 4 years ago

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

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

service is not yet present. thus the first time, that command should not be executed. out-commenting this line in makefile made it work

(only needed for first run)

UPDATE: i created a PR for this: https://github.com/Evidlo/remarkable_news/pull/4

GliderGeek commented 4 years ago

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

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

Evidlo commented 4 years ago

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?

GliderGeek commented 4 years ago

will do so

Evidlo commented 4 years ago

So what's the verdict here? Does the SSH heredoc work on OSX?

acrogenesis commented 4 years ago

@Evidlo I'm on macOS Big Sur and I needed both of @GliderGeek modifications for the install to work.