You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicecomb.apache.org by GitBox <gi...@apache.org> on 2018/03/18 09:45:05 UTC

[GitHub] asifdxtreme commented on issue #312: did service center do some basic install test when developer commit code to master?

asifdxtreme commented on issue #312: did service center do some basic install test when developer commit code to master?
URL: https://github.com/apache/incubator-servicecomb-service-center/issues/312#issuecomment-373984977
 
 
   @lexkong We are sorry to hear that you were not able to build the service-center from source.
   
   I just now tried building the service-center from source and it was success, below is my logs
   ```
   root1@root1-HP-EliteBook-840-G2:~/servicecomb/go/src/github.com/apache$ git clone https://github.com/apache/incubator-servicecomb-service-center
   Cloning into 'incubator-servicecomb-service-center'...
   remote: Counting objects: 12244, done.
   remote: Compressing objects: 100% (32/32), done.
   remote: Total 12244 (delta 11), reused 18 (delta 6), pack-reused 12206
   Receiving objects: 100% (12244/12244), 12.34 MiB | 102.00 KiB/s, done.
   Resolving deltas: 100% (5920/5920), done.
   Checking connectivity... done.
   root1@root1-HP-EliteBook-840-G2:~/servicecomb/go/src/github.com/apache$ cd incubator-servicecomb-service-center/
   root1@root1-HP-EliteBook-840-G2:~/servicecomb/go/src/github.com/apache/incubator-servicecomb-service-center$ gvt restore
   2018/03/18 15:03:36 fetching github.com/apache/thrift 
   2018/03/18 15:03:36 fetching github.com/belogik/goes 
   2018/03/18 15:03:36 fetching github.com/beorn7/perks 
   2018/03/18 15:03:36 fetching github.com/astaxie/beego 
   2018/03/18 15:03:36 fetching github.com/beego/x2j 
   2018/03/18 15:03:36 fetching github.com/ServiceComb/paas-lager 
   2018/03/18 15:03:36 fetching github.com/Shopify/sarama 
   2018/03/18 15:03:36 fetching github.com/Knetic/govaluate 
   2018/03/18 15:03:40 fetching github.com/bgentry/speakeasy 
   2018/03/18 15:03:40 fetching github.com/boltdb/bolt 
   2018/03/18 15:03:40 fetching github.com/bradfitz/gomemcache 
   2018/03/18 15:03:41 fetching github.com/casbin/casbin 
   2018/03/18 15:03:41 fetching github.com/cloudflare/golz4 
   2018/03/18 15:03:43 fetching github.com/cockroachdb/cmux 
   2018/03/18 15:03:44 fetching github.com/coreos/etcd 
   2018/03/18 15:03:44 fetching github.com/coreos/go-semver 
   2018/03/18 15:03:45 fetching github.com/coreos/go-systemd 
   2018/03/18 15:03:45 fetching github.com/coreos/pkg 
   2018/03/18 15:03:45 fetching github.com/couchbase/go-couchbase 
   2018/03/18 15:03:46 fetching github.com/couchbase/gomemcached 
   2018/03/18 15:03:48 fetching github.com/cupcake/rdb 
   2018/03/18 15:03:48 fetching github.com/davecgh/go-spew 
   2018/03/18 15:03:49 fetching github.com/dustin/go-humanize 
   2018/03/18 15:03:49 fetching github.com/eapache/go-resiliency 
   2018/03/18 15:03:51 fetching github.com/eapache/go-xerial-snappy 
   2018/03/18 15:03:52 fetching github.com/eapache/queue 
   2018/03/18 15:03:53 fetching github.com/edsrzf/mmap-go 
   2018/03/18 15:03:53 fetching github.com/garyburd/redigo 
   2018/03/18 15:03:53 fetching github.com/ghodss/yaml 
   2018/03/18 15:03:53 fetching github.com/go-logfmt/logfmt 
   2018/03/18 15:03:55 fetching github.com/gogo/protobuf 
   2018/03/18 15:03:55 fetching github.com/golang/protobuf 
   2018/03/18 15:03:56 fetching github.com/golang/snappy 
   2018/03/18 15:03:56 fetching github.com/google/btree 
   2018/03/18 15:03:56 fetching github.com/gorilla/websocket 
   2018/03/18 15:03:57 fetching github.com/hsluoyz/casbin 
   2018/03/18 15:04:00 fetching github.com/jonboulle/clockwork 
   2018/03/18 15:04:01 fetching github.com/karlseguin/ccache 
   2018/03/18 15:04:03 fetching github.com/klauspost/crc32 
   2018/03/18 15:04:03 fetching github.com/kr/pty 
   2018/03/18 15:04:06 fetching github.com/lib/pq 
   2018/03/18 15:04:07 fetching github.com/mattn/go-runewidth 
   2018/03/18 15:04:08 fetching github.com/matttproud/golang_protobuf_extensions 
   2018/03/18 15:04:08 fetching github.com/onsi/ginkgo 
   2018/03/18 15:04:08 fetching github.com/onsi/gomega 
   2018/03/18 15:04:11 fetching github.com/opentracing-contrib/go-observer 
   2018/03/18 15:04:11 fetching github.com/opentracing/opentracing-go 
   2018/03/18 15:04:12 fetching github.com/openzipkin/zipkin-go-opentracing 
   2018/03/18 15:04:14 fetching github.com/pelletier/go-toml 
   2018/03/18 15:04:15 fetching github.com/prometheus/client_golang 
   2018/03/18 15:04:16 fetching github.com/prometheus/client_model 
   2018/03/18 15:04:16 fetching github.com/prometheus/common 
   2018/03/18 15:04:17 fetching github.com/prometheus/procfs 
   2018/03/18 15:04:20 fetching github.com/rs/cors 
   2018/03/18 15:04:20 fetching github.com/satori/go.uuid 
   2018/03/18 15:04:21 fetching github.com/siddontang/go 
   2018/03/18 15:04:21 fetching github.com/siddontang/ledisdb 
   2018/03/18 15:04:23 fetching github.com/siddontang/rdb 
   2018/03/18 15:04:24 fetching github.com/spf13/cobra 
   2018/03/18 15:04:24 fetching github.com/spf13/pflag 
   2018/03/18 15:04:25 fetching github.com/syndtr/goleveldb 
   2018/03/18 15:04:26 fetching github.com/ugorji/go 
   2018/03/18 15:04:30 fetching github.com/urfave/cli 
   2018/03/18 15:04:31 fetching github.com/widuu/gojson 
   2018/03/18 15:04:32 fetching github.com/xiang90/probing 
   2018/03/18 15:04:34 fetching golang.org/x/crypto 
   2018/03/18 15:04:35 fetching golang.org/x/net 
   2018/03/18 15:04:39 fetching golang.org/x/text 
   2018/03/18 15:04:39 fetching golang.org/x/time 
   2018/03/18 15:04:43 fetching google.golang.org/genproto 
   2018/03/18 15:04:44 fetching google.golang.org/grpc 
   2018/03/18 15:04:45 fetching gopkg.in/cheggaaa/pb.v1 
   2018/03/18 15:04:47 fetching gopkg.in/yaml.v2 
   root1@root1-HP-EliteBook-840-G2:~/servicecomb/go/src/github.com/apache/incubator-servicecomb-service-center$ ll
   total 108
   drwxrwxr-x 15 root1 root1  4096 Mar 18 15:03 ./
   drwxrwxr-x  3 root1 root1  4096 Mar 18 15:02 ../
   -rw-rw-r--  1 root1 root1   564 Mar 18 15:03 DISCLAIMER
   drwxrwxr-x  3 root1 root1  4096 Mar 18 15:03 docs/
   drwxrwxr-x  3 root1 root1  4096 Mar 18 15:03 etc/
   drwxrwxr-x  3 root1 root1  4096 Mar 18 15:03 examples/
   drwxrwxr-x  4 root1 root1  4096 Mar 18 15:03 frontend/
   drwxrwxr-x  8 root1 root1  4096 Mar 18 15:03 .git/
   drwxrwxr-x  2 root1 root1  4096 Mar 18 15:03 .github/
   -rw-rw-r--  1 root1 root1   414 Mar 18 15:03 .gitignore
   -rw-rw-r--  1 root1 root1    96 Mar 18 15:03 .gitmodules
   drwxrwxr-x  2 root1 root1  4096 Mar 18 15:03 integration/
   -rw-rw-r--  1 root1 root1 12496 Mar 18 15:03 LICENSE
   drwxrwxr-x  2 root1 root1  4096 Mar 18 15:03 licenses/
   -rw-rw-r--  1 root1 root1  1012 Mar 18 15:03 main.go
   -rw-rw-r--  1 root1 root1   187 Mar 18 15:03 NOTICE
   drwxrwxr-x 13 root1 root1  4096 Mar 18 15:03 pkg/
   -rw-rw-r--  1 root1 root1  6312 Mar 18 15:03 README.md
   drwxrwxr-x  4 root1 root1  4096 Mar 18 15:03 scripts/
   drwxrwxr-x 16 root1 root1  4096 Mar 18 15:03 server/
   -rw-rw-r--  1 root1 root1  1322 Mar 18 15:03 .travis.yml
   drwxrwxr-x  6 root1 root1  4096 Mar 18 15:04 vendor/
   drwxrwxr-x  2 root1 root1  4096 Mar 18 15:03 version/
   root1@root1-HP-EliteBook-840-G2:~/servicecomb/go/src/github.com/apache/incubator-servicecomb-service-center$ go build -o service-center-trial-binary
   root1@root1-HP-EliteBook-840-G2:~/servicecomb/go/src/github.com/apache/incubator-servicecomb-service-center$ ll
   total 30708
   drwxrwxr-x 15 root1 root1     4096 Mar 18 15:05 ./
   drwxrwxr-x  3 root1 root1     4096 Mar 18 15:02 ../
   -rw-rw-r--  1 root1 root1      564 Mar 18 15:03 DISCLAIMER
   drwxrwxr-x  3 root1 root1     4096 Mar 18 15:03 docs/
   drwxrwxr-x  3 root1 root1     4096 Mar 18 15:03 etc/
   drwxrwxr-x  3 root1 root1     4096 Mar 18 15:03 examples/
   drwxrwxr-x  4 root1 root1     4096 Mar 18 15:03 frontend/
   drwxrwxr-x  8 root1 root1     4096 Mar 18 15:03 .git/
   drwxrwxr-x  2 root1 root1     4096 Mar 18 15:03 .github/
   -rw-rw-r--  1 root1 root1      414 Mar 18 15:03 .gitignore
   -rw-rw-r--  1 root1 root1       96 Mar 18 15:03 .gitmodules
   drwxrwxr-x  2 root1 root1     4096 Mar 18 15:03 integration/
   -rw-rw-r--  1 root1 root1    12496 Mar 18 15:03 LICENSE
   drwxrwxr-x  2 root1 root1     4096 Mar 18 15:03 licenses/
   -rw-rw-r--  1 root1 root1     1012 Mar 18 15:03 main.go
   -rw-rw-r--  1 root1 root1      187 Mar 18 15:03 NOTICE
   drwxrwxr-x 13 root1 root1     4096 Mar 18 15:03 pkg/
   -rw-rw-r--  1 root1 root1     6312 Mar 18 15:03 README.md
   drwxrwxr-x  4 root1 root1     4096 Mar 18 15:03 scripts/
   drwxrwxr-x 16 root1 root1     4096 Mar 18 15:03 server/
   -rwxrwxr-x  1 root1 root1 31331360 Mar 18 15:05 service-center-trial-binary*
   -rw-rw-r--  1 root1 root1     1322 Mar 18 15:03 .travis.yml
   drwxrwxr-x  6 root1 root1     4096 Mar 18 15:04 vendor/
   drwxrwxr-x  2 root1 root1     4096 Mar 18 15:03 version/
   root1@root1-HP-EliteBook-840-G2:~/servicecomb/go/src/github.com/apache/incubator-servicecomb-service-center$ 
   
   ```
   
   Where are my go env is below
   ```
   root1@root1-HP-EliteBook-840-G2:~/servicecomb/go/src/github.com/apache/incubator-servicecomb-service-center$ go env
   GOARCH="amd64"
   GOBIN=""
   GOCACHE="/home/root1/.cache/go-build"
   GOEXE=""
   GOHOSTARCH="amd64"
   GOHOSTOS="linux"
   GOOS="linux"
   GOPATH="/home/root1/servicecomb/go"
   GORACE=""
   GOROOT="/home/root1/go"
   GOTMPDIR=""
   GOTOOLDIR="/home/root1/go/pkg/tool/linux_amd64"
   GCCGO="gccgo"
   CC="gcc"
   CXX="g++"
   CGO_ENABLED="1"
   CGO_CFLAGS="-g -O2"
   CGO_CPPFLAGS=""
   CGO_CXXFLAGS="-g -O2"
   CGO_FFLAGS="-g -O2"
   CGO_LDFLAGS="-g -O2"
   PKG_CONFIG="pkg-config"
   GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build901425817=/tmp/go-build -gno-record-gcc-switches"
   
   ```
   
   We have a guide in the Readme for building the Service-Center from source over [here](https://github.com/apache/incubator-servicecomb-service-center/#building--running-service-center-from-source).
   
   We also do a constant check of build and integration test through Travis-CI over [here](https://travis-ci.org/apache/incubator-servicecomb-service-center) for each and every commit which is done in Service-Center.
   
   I would suggest you to clear up your GOPATH, there might be a chance that you already have a conflicting etcd package in your GOPATH which is not compatible with service-centre.
   
   Please try this and let us know if you still face any problems, we will be happy to help you with that.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services