On my distribution (Void Linux), go get -u github.com/visualfc/atk/tk gives the error:
# github.com/visualfc/atk/tk/interp
/bin/ld: cannot find -ltcl
/bin/ld: cannot find -ltk
collect2: error: ld returned 1 exit status
This is because on some systems the libraries are called tcl8.6 and tk8.6.
Using pkg-config (documented here) fixes the problem. I don't know if it works on darwin too, if so you could simplify the code by using only that directive for all unix systems.
On my distribution (Void Linux),
go get -u github.com/visualfc/atk/tk
gives the error:This is because on some systems the libraries are called
tcl8.6
andtk8.6
. Using pkg-config (documented here) fixes the problem. I don't know if it works on darwin too, if so you could simplify the code by using only that directive for all unix systems.