root@cdr:/opt# go version
go version go1.4.2 linux/amd64
root@cdr:/opt#
root@cdr:/opt# mkdir /opt/app
root@cdr:/opt# cd /opt/app
root@cdr:/opt/app# git clone https://github.com/cdr-stats/cdr-pusher.git
Cloning into 'cdr-pusher'...
remote: Counting objects: 563, done.
remote: Total 563 (delta 0), reused 0 (delta 0), pack-reused 563
Receiving objects: 100% (563/563), 3.52 MiB | 1.82 MiB/s, done.
Resolving deltas: 100% (375/375), done.
Checking connectivity... done.
root@cdr:/opt/app# cd cdr-pusher
root@cdr:/opt/app/cdr-pusher# export GOPATH=pwd
root@cdr:/opt/app/cdr-pusher# make build
found packages fetch_orm.go (fetch) and insert_gorm.go (main) in archive
found packages fetch_orm.go (fetch) and insert_gorm.go (main) in archive
Makefile:29: ошибка выполнения рецепта для цели «build»
make: *** [build] Ошибка 2
root@cdr:/opt/app/cdr-pusher# git --version
git version 2.1.4
wget http://ftp.tu-chemnitz.de/pub/linux/dag/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
rpm -i rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
yum install --enablerepo=rpmforge-extras git
install the right go version:
yum -y install mercurial git bzr bison
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
source /root/.gvm/scripts/gvm
gvm install go1.5.1 --binary
gvm use go1.5.1 --default
orm.RegisterDriver ("sqlite3" orm.DRSqlite)
to install and run the cdr-pusher:
mkdir /opt/app cd /opt/app git clone https://github.com/areski/cdr-pusher.git cd cdr-pusher export GOPATH=`pwd` make build ./bin/cdr-pusher
If you still having issues, take a look at this manual (but keep my changes to get it to work)
https://github.com/areski/cdr-pusher
Thank you,
Dani
Hello,
It should be equal or greater to 1.7.10
Try to compile the cdr-pusher with this version and tell us what is the results.
Thank you,
Dani
--
You received this message because you are subscribed to a topic in the Google Groups "CDR-Stats" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cdr-stats/VvkN6424dLc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cdr-stats+...@googlegroups.com.
To post to this group, send email to cdr-...@googlegroups.com.
Visit this group at https://groups.google.com/group/cdr-stats.
For more options, visit https://groups.google.com/d/optout.
root@msticklerjaeger-cdrstats:~/.gvm/gos/go1.7/global/src/opt/app/cdr-pusher# make build
can't load package: package ./archive: found packages fetch (fetch_orm.go) and main (insert_gorm.go) in /root/.gvm/gos/go1.7/global/src/opt/app/cdr-pusher/archive
src/github.com/beego/x2j/examples/books.go:5:2: cannot find package "github.com/clbanning/x2j" in any of:
/root/.gvm/gos/go1.7/src/github.com/clbanning/x2j (from $GOROOT)
/root/.gvm/gos/go1.7/global/src/opt/app/cdr-pusher/src/github.com/clbanning/x2j (from $GOPATH)
src/github.com/couchbase/go-couchbase/examples/cb_auth/example.go:6:2: cannot find package "github.com/couchbase/cbauth" in any of:
/root/.gvm/gos/go1.7/src/github.com/couchbase/cbauth (from $GOROOT)
/root/.gvm/gos/go1.7/global/src/opt/app/cdr-pusher/src/github.com/couchbase/cbauth (from $GOPATH)
src/github.com/couchbase/go-couchbase/examples/mb-15442/repro.go:8:2: cannot find package "github.com/couchbaselabs/go_n1ql" in any of:
/root/.gvm/gos/go1.7/src/github.com/couchbaselabs/go_n1ql (from $GOROOT)
/root/.gvm/gos/go1.7/global/src/opt/app/cdr-pusher/src/github.com/couchbaselabs/go_n1ql (from $GOPATH)
src/github.com/couchbase/go-couchbase/perf/generate-json.go:5:2: cannot find package "github.com/Pallinder/go-randomdata" in any of:
/root/.gvm/gos/go1.7/src/github.com/Pallinder/go-randomdata (from $GOROOT)
/root/.gvm/gos/go1.7/global/src/opt/app/cdr-pusher/src/github.com/Pallinder/go-randomdata (from $GOPATH)
src/github.com/couchbase/gomemcached/client/mocks/ClientIface.go:7:8: cannot find package "github.com/stretchr/testify/mock" in any of:
/root/.gvm/gos/go1.7/src/github.com/stretchr/testify/mock (from $GOROOT)
/root/.gvm/gos/go1.7/global/src/opt/app/cdr-pusher/src/github.com/stretchr/testify/mock (from $GOPATH)
src/github.com/couchbase/goutils/go-cbaudit/audit_service.go:27:2: cannot find package "github.com/couchbase/clog" in any of:
/root/.gvm/gos/go1.7/src/github.com/couchbase/clog (from $GOROOT)
/root/.gvm/gos/go1.7/global/src/opt/app/cdr-pusher/src/github.com/couchbase/clog (from $GOPATH)
can't load package: /root/.gvm/gos/go1.7/global/src/opt/app/cdr-pusher/src/github.com/ssdb/gossdb/test.go:7:2: local import "./ssdb" in non-local package
Makefile:26: recipe for target 'get' failed
make: *** [get] Error 1
cd /root/.gvm/gos/go1.8/global/src/opt/app/cdr-pusher
gvm use go1.8 --default
mkdir bin
go build -a -o bin/cdr-pusher .
BINARY = ./bin/cdr-pusher
install-daemon:
go install ./...
deps:
go get .
clean:
rm $(BINARY)
test:
go test .
golint
servedoc:
godoc -http=:6060
configfile:
cp -i cdr-pusher.yaml /etc/cdr-pusher.yaml
logdir:
@mkdir /var/log/cdr-pusher
get:
@go get -d ./...
build: get configfile
@mkdir -p bin
@go build -a -o bin/cdr-pusher .