2021年10月19日

go git

Err
main.go:7:2: cannot find package "github.com/lib/pq" in any of:
        /usr/local/go/src/github.com/lib/pq (from $GOROOT)
        /home/ub1/go/src/github.com/lib/pq (from $GOPATH)


sudo apt install git

Screenshot from 2021-10-19 09-40-44.png



Err
b1@ub1-System-Product-Name:~/golang/03$ go get github.com/mattn/go-sqlite3
# github.com/mattn/go-sqlite3
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in $PATH


sudo apt install gcc
Screenshot from 2021-10-19 09-49-05.png
posted by a23 at 09:39| Comment(0) | Golang

Ubuntu sqlitebrowser

posted by a23 at 09:11| Comment(0) | SQLite

2021年10月16日

Golang


sudo snap install go 

Screenshot from 2021-10-16 14-51-52.png

rror: This revision of snap "go" was published using classic confinement and
       thus may perform arbitrary system changes outside of the security
       sandbox that snaps are usually confined to, which may put your system at
       risk.

       If you understand and want to proceed repeat the command including
       --classic.


export PATH=$PATH:/usr/local/go/bin
source ~/.bashrcexport PATH=$PATH:/usr/local/go/bin
source ~/.bashrc


Screenshot from 2021-10-16 14-54-43.png




 sudo gedit ~/.bashrc
Screenshot from 2021-10-16 15-10-59.png

Screenshot from 2021-10-16 15-10-10.png


posted by a23 at 14:52| Comment(0) | Golang