tinode / chat

Instant messaging platform. Backend in Go. Clients: Swift iOS, Java Android, JS webapp, scriptable command line; chatbots
GNU General Public License v3.0
12.06k stars 1.88k forks source link

Building from source #92

Closed jsign closed 6 years ago

jsign commented 6 years ago

I followed 'Building from source' step by step (for mysql) but:

I did a quick lookup and found that 'store' has a 'RegisterAdapter', but I didn't see any call to it.

Maybe I'm missing something.

Thanks!

or-else commented 6 years ago

When I should run 'init-db', wouldn't now be 'tinode-db'?

Yes, you are correct.

If I run 'tinode-db', it fails with: Failed to init DB: store: database adapter is missing

The most likely reason you did not specify the tags option when building. Note the required -tags rethinkdb or -tags mysql build option. The instruction is very clear about it.

jsign commented 6 years ago

You're right. I basically copy pasted it from the instructions, but then did a 'go build' without the flag.

Thanks