Mattermost, Inc.

[SOLVED] Developer machine setup failed because of package missing

Hi,
I am new to mattermost. Trying to setup developer environment on Mac . When tried to run mattermost using make run am getting the following package missing errors

api/slackimport.go:7:2: cannot find package “archive/zip” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/archive/zip (vendor tree)
/usr/local/go/src/archive/zip (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/archive/zip (from $GOPATH)
mattermost.go:7:2: cannot find package “bufio” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/bufio (vendor tree)
/usr/local/go/src/bufio (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/bufio (from $GOPATH)
vendor/github.com/alecthomas/log4go/pattlog.go:6:2: cannot find package “bytes” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/bytes (vendor tree)
/usr/local/go/src/bytes (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/bytes (from $GOPATH)
vendor/github.com/gorilla/handlers/compress.go:8:2: cannot find package “compress/flate” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/compress/flate (vendor tree)
/usr/local/go/src/compress/flate (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/compress/flate (from $GOPATH)
vendor/github.com/gorilla/handlers/compress.go:9:2: cannot find package “compress/gzip” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/compress/gzip (vendor tree)
/usr/local/go/src/compress/gzip (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/compress/gzip (from $GOPATH)
vendor/golang.org/x/image/tiff/reader.go:11:2: cannot find package “compress/zlib” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/compress/zlib (vendor tree)
/usr/local/go/src/compress/zlib (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/compress/zlib (from $GOPATH)
utils/lru.go:11:2: cannot find package “container/list” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/container/list (vendor tree)
/usr/local/go/src/container/list (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/container/list (from $GOPATH)
vendor/golang.org/x/net/context/go17.go:10:2: cannot find package “context” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/context (vendor tree)
/usr/local/go/src/context (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/context (from $GOPATH)
utils/license.go:7:2: cannot find package “crypto” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/crypto (vendor tree)
/usr/local/go/src/crypto (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/crypto (from $GOPATH)
store/sql_store.go:7:2: cannot find package “crypto/aes” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/crypto/aes (vendor tree)
/usr/local/go/src/crypto/aes (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/crypto/aes (from $GOPATH)
store/sql_store.go:8:2: cannot find package “crypto/cipher” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/crypto/cipher (vendor tree)
/usr/local/go/src/crypto/cipher (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/crypto/cipher (from $GOPATH)
vendor/github.com/rsc/letsencrypt/lets.go:151:2: cannot find package “crypto/ecdsa” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/github.com/rsc/letsencrypt/vendor/crypto/ecdsa (vendor tree)
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/crypto/ecdsa
/usr/local/go/src/crypto/ecdsa (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/crypto/ecdsa (from $GOPATH)
vendor/github.com/rsc/letsencrypt/lets.go:152:2: cannot find package “crypto/elliptic” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/github.com/rsc/letsencrypt/vendor/crypto/elliptic (vendor tree)
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/crypto/elliptic
/usr/local/go/src/crypto/elliptic (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/crypto/elliptic (from $GOPATH)
vendor/github.com/dgryski/dgoogauth/googauth.go:11:2: cannot find package “crypto/hmac” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/crypto/hmac (vendor tree)
/usr/local/go/src/crypto/hmac (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/crypto/hmac (from $GOPATH)
model/channel_count.go:7:2: cannot find package “crypto/md5” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/crypto/md5 (vendor tree)
/usr/local/go/src/crypto/md5 (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/crypto/md5 (from $GOPATH)
vendor/github.com/gorilla/websocket/util.go:8:2: cannot find package “crypto/rand” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/crypto/rand (vendor tree)
/usr/local/go/src/crypto/rand (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/crypto/rand (from $GOPATH)
utils/license.go:9:2: cannot find package “crypto/rsa” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/crypto/rsa (vendor tree)
/usr/local/go/src/crypto/rsa (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/crypto/rsa (from $GOPATH)
vendor/github.com/dgryski/dgoogauth/googauth.go:12:2: cannot find package “crypto/sha1” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/crypto/sha1 (vendor tree)
/usr/local/go/src/crypto/sha1 (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/crypto/sha1 (from $GOPATH)
api/file.go:8:2: cannot find package “crypto/sha256” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/crypto/sha256 (vendor tree)
/usr/local/go/src/crypto/sha256 (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/crypto/sha256 (from $GOPATH)
store/sql_store.go:12:2: cannot find package “crypto/sha512” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/crypto/sha512 (vendor tree)
/usr/local/go/src/crypto/sha512 (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/crypto/sha512 (from $GOPATH)
vendor/golang.org/x/crypto/bcrypt/bcrypt.go:12:2: cannot find package “crypto/subtle” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/crypto/subtle (vendor tree)
/usr/local/go/src/crypto/subtle (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/crypto/subtle (from $GOPATH)
vendor/github.com/go-ldap/ldap/client.go:4:2: cannot find package “crypto/tls” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/crypto/tls (vendor tree)
/usr/local/go/src/crypto/tls (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/crypto/tls (from $GOPATH)
vendor/github.com/lib/pq/conn.go:7:2: cannot find package “crypto/x509” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/crypto/x509 (vendor tree)
/usr/local/go/src/crypto/x509 (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/crypto/x509 (from $GOPATH)
vendor/github.com/rsc/letsencrypt/vendor/github.com/xenolf/lego/acme/crypto.go:11:2: cannot find package “crypto/x509/pkix” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/github.com/rsc/letsencrypt/vendor/crypto/x509/pkix (vendor tree)
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/crypto/x509/pkix
/usr/local/go/src/crypto/x509/pkix (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/crypto/x509/pkix (from $GOPATH)
api/email_batching.go:7:2: cannot find package “database/sql” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/database/sql (vendor tree)
/usr/local/go/src/database/sql (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/database/sql (from $GOPATH)
vendor/github.com/go-gorp/gorp/db.go:17:2: cannot find package “database/sql/driver” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/database/sql/driver (vendor tree)
/usr/local/go/src/database/sql/driver (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/database/sql/driver (from $GOPATH)
vendor/github.com/nicksnyder/go-i18n/i18n/translation/template.go:5:2: cannot find package “encoding” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/encoding (vendor tree)
/usr/local/go/src/encoding (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/encoding (from $GOPATH)
vendor/golang.org/x/crypto/ocsp/ocsp.go:19:2: cannot find package “encoding/asn1” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/encoding/asn1 (vendor tree)
/usr/local/go/src/encoding/asn1 (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/encoding/asn1 (from $GOPATH)
vendor/github.com/dgryski/dgoogauth/googauth.go:13:2: cannot find package “encoding/base32” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/encoding/base32 (vendor tree)
/usr/local/go/src/encoding/base32 (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/encoding/base32 (from $GOPATH)
api/file.go:9:2: cannot find package “encoding/base64” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/encoding/base64 (vendor tree)
/usr/local/go/src/encoding/base64 (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/encoding/base64 (from $GOPATH)
vendor/github.com/dgryski/dgoogauth/googauth.go:14:2: cannot find package “encoding/binary” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/encoding/binary (vendor tree)
/usr/local/go/src/encoding/binary (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/encoding/binary (from $GOPATH)
vendor/github.com/go-ldap/ldap/dn.go:50:2: cannot find package “encoding/hex” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/encoding/hex (vendor tree)
/usr/local/go/src/encoding/hex (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/encoding/hex (from $GOPATH)
vendor/github.com/alecthomas/log4go/socklog.go:6:2: cannot find package “encoding/json” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/encoding/json (vendor tree)
/usr/local/go/src/encoding/json (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/encoding/json (from $GOPATH)
utils/license.go:13:2: cannot find package “encoding/pem” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/encoding/pem (vendor tree)
/usr/local/go/src/encoding/pem (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/encoding/pem (from $GOPATH)
vendor/github.com/alecthomas/log4go/config.go:6:2: cannot find package “encoding/xml” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/encoding/xml (vendor tree)
/usr/local/go/src/encoding/xml (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/encoding/xml (from $GOPATH)
vendor/github.com/alecthomas/log4go/log4go.go:49:2: cannot find package “errors” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/errors (vendor tree)
/usr/local/go/src/errors (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/errors (from $GOPATH)
mattermost.go:8:2: cannot find package “flag” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/flag (vendor tree)
/usr/local/go/src/flag (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/flag (from $GOPATH)
mattermost.go:9:2: cannot find package “fmt” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/fmt (vendor tree)
/usr/local/go/src/fmt (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/fmt (from $GOPATH)
vendor/github.com/pborman/uuid/hash.go:10:2: cannot find package “hash” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/hash (vendor tree)
/usr/local/go/src/hash (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/hash (from $GOPATH)
vendor/github.com/mattermost/rsc/qr/png.go:13:2: cannot find package “hash/crc32” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/hash/crc32 (vendor tree)
/usr/local/go/src/hash/crc32 (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/hash/crc32 (from $GOPATH)
api/user.go:10:2: cannot find package “hash/fnv” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/hash/fnv (vendor tree)
/usr/local/go/src/hash/fnv (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/hash/fnv (from $GOPATH)
api/post.go:9:2: cannot find package “html” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/html (vendor tree)
/usr/local/go/src/html (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/html (from $GOPATH)
utils/html.go:8:2: cannot find package “html/template” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/html/template (vendor tree)
/usr/local/go/src/html/template (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/html/template (from $GOPATH)
vendor/golang.org/x/image/bmp/reader.go:12:2: cannot find package “image” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/image (vendor tree)
/usr/local/go/src/image (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/image (from $GOPATH)
vendor/golang.org/x/image/bmp/reader.go:13:2: cannot find package “image/color” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/image/color (vendor tree)
/usr/local/go/src/image/color (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/image/color (from $GOPATH)
vendor/github.com/golang/freetype/raster/paint.go:11:2: cannot find package “image/draw” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/image/draw (vendor tree)
/usr/local/go/src/image/draw (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/image/draw (from $GOPATH)
vendor/github.com/disintegration/imaging/helpers.go:15:2: cannot find package “image/gif” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/image/gif (vendor tree)
/usr/local/go/src/image/gif (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/image/gif (from $GOPATH)
vendor/github.com/disintegration/imaging/helpers.go:16:2: cannot find package “image/jpeg” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/image/jpeg (vendor tree)
/usr/local/go/src/image/jpeg (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/image/jpeg (from $GOPATH)
vendor/github.com/disintegration/imaging/helpers.go:17:2: cannot find package “image/png” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/image/png (vendor tree)
/usr/local/go/src/image/png (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/image/png (from $GOPATH)
vendor/github.com/alecthomas/log4go/pattlog.go:8:2: cannot find package “io” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/io (vendor tree)
/usr/local/go/src/io (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/io (from $GOPATH)
vendor/github.com/alecthomas/log4go/config.go:8:2: cannot find package “io/ioutil” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/io/ioutil (vendor tree)
/usr/local/go/src/io/ioutil (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/io/ioutil (from $GOPATH)
vendor/github.com/go-ldap/ldap/add.go:14:2: cannot find package “log” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/log (vendor tree)
/usr/local/go/src/log (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/log (from $GOPATH)
vendor/gopkg.in/asn1-ber.v1/identifier.go:7:2: cannot find package “math” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/math (vendor tree)
/usr/local/go/src/math (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/math (from $GOPATH)
vendor/golang.org/x/crypto/ocsp/ocsp.go:21:2: cannot find package “math/big” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/math/big (vendor tree)
/usr/local/go/src/math/big (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/math/big (from $GOPATH)
vendor/github.com/gorilla/websocket/conn.go:13:2: cannot find package “math/rand” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/math/rand (vendor tree)
/usr/local/go/src/math/rand (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/math/rand (from $GOPATH)
model/file_info.go:12:2: cannot find package “mime” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/mime (vendor tree)
/usr/local/go/src/mime (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/mime (from $GOPATH)
model/client.go:12:2: cannot find package “mime/multipart” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/mime/multipart (vendor tree)
/usr/local/go/src/mime/multipart (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/mime/multipart (from $GOPATH)
vendor/github.com/alecthomas/log4go/socklog.go:8:2: cannot find package “net” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/net (vendor tree)
/usr/local/go/src/net (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/net (from $GOPATH)
vendor/github.com/gorilla/handlers/canonical.go:4:2: cannot find package “net/http” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/net/http (vendor tree)
/usr/local/go/src/net/http (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/net/http (from $GOPATH)
vendor/github.com/minio/minio-go/api.go:28:2: cannot find package “net/http/httputil” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/net/http/httputil (vendor tree)
/usr/local/go/src/net/http/httputil (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/net/http/httputil (from $GOPATH)
api/server.go:10:2: cannot find package “net/http/pprof” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/net/http/pprof (vendor tree)
/usr/local/go/src/net/http/pprof (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/net/http/pprof (from $GOPATH)
model/utils.go:14:2: cannot find package “net/mail” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/net/mail (vendor tree)
/usr/local/go/src/net/mail (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/net/mail (from $GOPATH)
utils/mail.go:14:2: cannot find package “net/smtp” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/net/smtp (vendor tree)
/usr/local/go/src/net/smtp (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/net/smtp (from $GOPATH)
vendor/github.com/dgryski/dgoogauth/googauth.go:16:2: cannot find package “net/url” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/net/url (vendor tree)
/usr/local/go/src/net/url (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/net/url (from $GOPATH)
vendor/github.com/alecthomas/log4go/config.go:9:2: cannot find package “os” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/os (vendor tree)
/usr/local/go/src/os (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/os (from $GOPATH)
mattermost.go:14:2: cannot find package “os/exec” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/os/exec (vendor tree)
/usr/local/go/src/os/exec (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/os/exec (from $GOPATH)
vendor/github.com/tylerb/graceful/graceful.go:9:2: cannot find package “os/signal” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/os/signal (vendor tree)
/usr/local/go/src/os/signal (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/os/signal (from $GOPATH)
vendor/github.com/lib/pq/conn.go:17:2: cannot find package “os/user” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/os/user (vendor tree)
/usr/local/go/src/os/user (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/os/user (from $GOPATH)
vendor/github.com/gorilla/mux/mux.go:11:2: cannot find package “path” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/path (vendor tree)
/usr/local/go/src/path (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/path (from $GOPATH)
vendor/github.com/disintegration/imaging/helpers.go:20:2: cannot find package “path/filepath” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/path/filepath (vendor tree)
/usr/local/go/src/path/filepath (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/path/filepath (from $GOPATH)
vendor/gopkg.in/asn1-ber.v1/ber.go:9:2: cannot find package “reflect” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/reflect (vendor tree)
/usr/local/go/src/reflect (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/reflect (from $GOPATH)
vendor/github.com/gorilla/handlers/proxy_headers.go:5:2: cannot find package “regexp” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/regexp (vendor tree)
/usr/local/go/src/regexp (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/regexp (from $GOPATH)
vendor/github.com/alecthomas/log4go/log4go.go:52:2: cannot find package “runtime” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/runtime (vendor tree)
/usr/local/go/src/runtime (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/runtime (from $GOPATH)
vendor/github.com/gorilla/handlers/recovery.go:6:2: cannot find package “runtime/debug” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/runtime/debug (vendor tree)
/usr/local/go/src/runtime/debug (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/runtime/debug (from $GOPATH)
mattermost.go:17:2: cannot find package “runtime/pprof” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/runtime/pprof (vendor tree)
/usr/local/go/src/runtime/pprof (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/runtime/pprof (from $GOPATH)
vendor/github.com/dgryski/dgoogauth/googauth.go:17:2: cannot find package “sort” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/sort (vendor tree)
/usr/local/go/src/sort (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/sort (from $GOPATH)
vendor/github.com/alecthomas/log4go/config.go:10:2: cannot find package “strconv” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/strconv (vendor tree)
/usr/local/go/src/strconv (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/strconv (from $GOPATH)
vendor/github.com/alecthomas/log4go/config.go:11:2: cannot find package “strings” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/strings (vendor tree)
/usr/local/go/src/strings (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/strings (from $GOPATH)
vendor/github.com/go-ldap/ldap/conn.go:13:2: cannot find package “sync” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/sync (vendor tree)
/usr/local/go/src/sync (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/sync (from $GOPATH)
vendor/github.com/disintegration/imaging/utils.go:7:2: cannot find package “sync/atomic” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/sync/atomic (vendor tree)
/usr/local/go/src/sync/atomic (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/sync/atomic (from $GOPATH)
vendor/golang.org/x/sys/unix/env_unix.go:11:8: cannot find package “syscall” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/syscall (vendor tree)
/usr/local/go/src/syscall (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/syscall (from $GOPATH)
vendor/github.com/nicksnyder/go-i18n/i18n/translation/template.go:7:2: cannot find package “text/template” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/text/template (vendor tree)
/usr/local/go/src/text/template (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/text/template (from $GOPATH)
vendor/github.com/alecthomas/log4go/filelog.go:8:2: cannot find package “time” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/time (vendor tree)
/usr/local/go/src/time (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/time (from $GOPATH)
vendor/gopkg.in/yaml.v2/sorter.go:5:2: cannot find package “unicode” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/unicode (vendor tree)
/usr/local/go/src/unicode (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/unicode (from $GOPATH)
vendor/gopkg.in/square/go-jose.v1/json/decode.go:20:2: cannot find package “unicode/utf16” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/unicode/utf16 (vendor tree)
/usr/local/go/src/unicode/utf16 (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/unicode/utf16 (from $GOPATH)
vendor/github.com/go-ldap/ldap/filter.go:13:2: cannot find package “unicode/utf8” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/unicode/utf8 (vendor tree)
/usr/local/go/src/unicode/utf8 (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/unicode/utf8 (from $GOPATH)
vendor/golang.org/x/sys/unix/flock.go:11:8: cannot find package “unsafe” in any of:
/Users/smartrplanet/Desktop/projects/go/src/github.com/mattermost/platform/vendor/unsafe (vendor tree)
/usr/local/go/src/unsafe (from $GOROOT)
/Users/smartrplanet/Desktop/projects/go/src/unsafe (from $GOPATH)

Thanks in advance,

Ajith

Hi @Ajith that’s weird, it seems that for some reason you are missing the vendor folder, there are serveral ways you can fix this

  1. You can checkout the master branch again with git
  2. Clone the repo once more
  3. install glide and run glide install from within the platform folder

Hope this helps

Thanks @elias for your support. Finally I resolved that issue, Actually I tried to install mattermost using mattermost developer machine setup ( https://docs.mattermost.com/developer/developer-setup.html) . There they are telling to set,

export GOROOT=/usr/local/go/

Actually I installed go using brew , it is installed in another path . So I changed the GOROOT as

export GOROOT=/usr/local/Cellar/go/1.7.3/libexec/

Now it is working.