Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile:29: recipe for target 'build' failed #2

Open
Mazuco opened this issue Sep 30, 2016 · 1 comment
Open

Makefile:29: recipe for target 'build' failed #2

Mazuco opened this issue Sep 30, 2016 · 1 comment

Comments

@Mazuco
Copy link

Mazuco commented Sep 30, 2016

root@cdr-stats:/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: sobrescrever “/etc/cdr-pusher.yaml”? yes
_/opt/app/cdr-pusher
./cdr_generator.go:55: undefined: orm.DR_Sqlite
Makefile:29: recipe for target 'build' failed
make: *** [build] Error 2

Is not possible to install this cdr-pusher

@joenilson
Copy link

Please review this link: http://stackoverflow.com/questions/35033846/cdrstats-installation-error

check

// For version 1.6
orm.DRMySQL
orm.DRSqlite
orm.DRPostgres

// < 1.6
orm.DR_MySQL
orm.DR_Sqlite
orm.DR_Postgres

changes in the file cdr_generator.go line 55

orm.RegisterDriver ("sqlite3" orm.DR_Sqlite)

by this other=

orm.RegisterDriver ("sqlite3" orm.DRSqlite)

and then you make build and work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants