deepch / RTSPtoWeb

RTSP Stream to WebBrowser
MIT License
1.33k stars 313 forks source link

cannot find package #115

Open Gpwner opened 2 years ago

Gpwner commented 2 years ago

after execute this cmd:GO111MODULE=on go run *.go I got these errors:

(base) HwHiAiUser@ubuntu16-f0607-2u:~/project_xzc/RTSPtoWebRTC$ GO111MODULE=on go run *.go
config.go:15:2: cannot find package "github.com/deepch/vdk/av" in any of:
        /usr/lib/go-1.10/src/github.com/deepch/vdk/av (from $GOROOT)
        /home/HwHiAiUser/go/src/github.com/deepch/vdk/av (from $GOPATH)
config.go:13:2: cannot find package "github.com/deepch/vdk/codec/h264parser" in any of:
        /usr/lib/go-1.10/src/github.com/deepch/vdk/codec/h264parser (from $GOROOT)
        /home/HwHiAiUser/go/src/github.com/deepch/vdk/codec/h264parser (from $GOPATH)
stream.go:8:2: cannot find package "github.com/deepch/vdk/format/rtspv2" in any of:
        /usr/lib/go-1.10/src/github.com/deepch/vdk/format/rtspv2 (from $GOROOT)
        /home/HwHiAiUser/go/src/github.com/deepch/vdk/format/rtspv2 (from $GOPATH)
http.go:13:2: cannot find package "github.com/deepch/vdk/format/webrtcv3" in any of:
        /usr/lib/go-1.10/src/github.com/deepch/vdk/format/webrtcv3 (from $GOROOT)
        /home/HwHiAiUser/go/src/github.com/deepch/vdk/format/webrtcv3 (from $GOPATH)
http.go:14:2: cannot find package "github.com/gin-gonic/gin" in any of:
        /usr/lib/go-1.10/src/github.com/gin-gonic/gin (from $GOROOT)
        /home/HwHiAiUser/go/src/github.com/gin-gonic/gin (from $GOPATH)

Please help ,thanks

deepch commented 2 years ago

export GO111MODULE=on go get go run *.go

azrin1972 commented 2 years ago

running go get I received this error

package crypto/ed25519: unrecognized import path "crypto/ed25519" (import path does not begin with hostname)
# cd .; git clone https://gopkg.in/yaml.v2 /home/nvidia/go/src/gopkg.in/yaml.v2
Cloning into '/home/nvidia/go/src/gopkg.in/yaml.v2'...
fatal: unable to access 'https://gopkg.in/yaml.v2/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
package gopkg.in/yaml.v2: exit status 128

Please help, Thank you

deepch commented 2 years ago

download and install Golang last version

azrin1972 commented 2 years ago

download and install Golang last version

Thank you