Coder Social home page Coder Social logo

Comments (7)

otoolep avatar otoolep commented on May 26, 2024

@LuKks -- you can see successful Windows build here: https://ci.appveyor.com/project/otoolep/rqlite

@dwco-z -- you build on Windows. Do you do anything special, beyond the docs at https://rqlite.io/docs/install-rqlite/building-from-source/

from rqlite.

otoolep avatar otoolep commented on May 26, 2024

@LuKks -- do you have a C compiler installed, and is CGO_ENABLED=1 set?

from rqlite.

otoolep avatar otoolep commented on May 26, 2024

Because what you are seeing implies it is not. I can reproduce your build errors like this:

$ CGO_ENABLED=0 go build .
# github.com/rqlite/rqlite/v8/db
../../db/db.go:84:28: undefined: sqlite3.Version
../../db/db.go:1225:21: c.Prepare undefined (type *sqlite3.SQLiteConn has no field or method Prepare)
../../db/db.go:1335:17: dst.Backup undefined (type *sqlite3.SQLiteConn has no field or method Backup)

See https://github.com/mattn/go-sqlite3?tab=readme-ov-file#compilation

from rqlite.

otoolep avatar otoolep commented on May 26, 2024

I've updated the build documentation to make this clearer:

https://rqlite.io/docs/install-rqlite/building-from-source/#compilation-errors-locating-sqlite-functions

I can leave this issue open, but may close it soon. I'm pretty sure you just need to make sure you have a C compiler installed.

from rqlite.

LuKks avatar LuKks commented on May 26, 2024

Thanks! CGO_ENABLED=1 plus installing gcc via https://jmeubank.github.io/tdm-gcc did it!

from rqlite.

LuKks avatar LuKks commented on May 26, 2024

In case someone wants to easily install it anywhere: https://github.com/like/rqlite-runtime

npm i -g rqlite

Then just rqlited ./data1 or rqilte

I'm missing builds for macOS x64 and Raspberry Pi but will look into it when I find some machines for that

from rqlite.

LuKks avatar LuKks commented on May 26, 2024

There is also a new tiny and simple Node.js wrapper in the works but private atm until it's complete, excited for that!

from rqlite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.