My environment: Ubuntu 20.04 LTS, Go version go1.13.8 linux/amd64.
As suggested I run:
go get github.com/weaming/md2png
It builded an executable of 8.5MB in /home/jerzy/go/bin/
with the following details:
-rwxrwxr-x 1 jerzy jerzy 8.5M Jul 24 13:21 md2png
but wasn't able to run it:
./md2png
2021/07/24 13:26:01 open : no such file or directory
Resolved to clone the repo and build it manually I did:
git clone https://github.com/weaming/md2png.git && cd md2png && go build
I got the following from Go:
main.go:12:2: cannot find package "github.com/golang-commonmark/markdown" in any of:
/usr/lib/go-1.13/src/github.com/golang-commonmark/markdown (from $GOROOT)
/home/jerzy/go/src/github.com/golang-commonmark/markdown (from $GOPATH)
I then installed the dependency:
go get github.com/golang-commonmark/markdown && go build
and got the same issue, the binary is present but I cannot run it.
./md2png
2021/07/24 13:26:01 open : no such file or directory
As can be seen, the built binary has all the right permissions to be run. What may be the cause of this issue?