我试图在安装了星号11.13的Debian 8.2计算机上安装CDRstats Pusher。但是当我#Make build时,它总是给我这个消息:
安装网址:http://docs.cdr-stats.org/en/latest/installation/install-cdr-pusher.html
错误:
root@cdrstats:/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
cp -i cdr-pusher.yaml /etc/cdr-pusher.yaml
cp: overwrite ‘/etc/cdr-pusher.yaml’? y
# _/opt/app/cdr-pusher
./cdr_generator.go:55: undefined: orm.DR_Sqlite
Makefile:29: recipe for target 'build' failed
make: *** [build] Error 2
答案 0 :(得分:2)
检查
// For version 1.6
orm.DRMySQL
orm.DRSqlite
orm.DRPostgres
// < 1.6
orm.DR_MySQL
orm.DR_Sqlite
orm.DR_Postgres
文件cdr_generator.go第55行的更改
orm.RegisterDriver ("sqlite3" orm.DR_Sqlite)
由另一个=
orm.RegisterDriver ("sqlite3" orm.DRSqlite)
然后你进行构建和工作