Giter VIP home page Giter VIP logo

Comments (9)

element-of-surprise avatar element-of-surprise commented on July 17, 2024 1

As an FYI, I believe Windows is not currently officially supported according to these threads:

#141
#136

However, at least for this issue, I receive the same error on MacOS 14.4.1 Arm:
github.com/marcboeker/[email protected]/transaction.go:6:5: undefined: conn

I tried both 1.6.1 and 1.6.2.

from go-duckdb.

hjlp20150803 avatar hjlp20150803 commented on July 17, 2024 1

it works fine for mac,but not on linux
GOOS=linux GOARCH=arm64 go build
../../../pkg/mod/github.com/marcboeker/[email protected]/transaction.go:6:5: undefined: conn

from go-duckdb.

naimsulejmani avatar naimsulejmani commented on July 17, 2024

@element-of-surprise

I was able to fix it today using Linking DuckDB which is in the documentation only for Linux, but not the statically link into db

!

from go-duckdb.

marcboeker avatar marcboeker commented on July 17, 2024

However, at least for this issue, I receive the same error on MacOS 14.4.1 Arm:
github.com/marcboeker/[email protected]/transaction.go:6:5: undefined: conn

@element-of-surprise That's weird. I've tested it with 1.6.2 just now and it works on a M3 with 14.4.1. Could you please manually check out the go-duckdb repo and run make test and make examples? This should work too. Otherwise please post the error message you receive.

from go-duckdb.

mixam85 avatar mixam85 commented on July 17, 2024

Hello, I have the similar issue in Debian 11 docker, but not on my Arch Linux.

# github.com/marcboeker/go-duckdb
/root/go/pkg/mod/github.com/marcboeker/[email protected]/transaction.go:6:5: undefined: conn

from go-duckdb.

mixam85 avatar mixam85 commented on July 17, 2024

Installing build-essential and running make and make test in /root/go/pkg/mod/github.com/marcboeker/[email protected]/ folder fixed it for me.

from go-duckdb.

alvaradojl avatar alvaradojl commented on July 17, 2024

I get the same error when building in WSL 2 Ubuntu 22.04

from go-duckdb.

alvaradojl avatar alvaradojl commented on July 17, 2024

I get the same error when building in WSL 2 Ubuntu 22.04

oh I actually had forgotten to set CGO_ENABLED=1 as instructed in the README, once I changed this, the build worked

from go-duckdb.

arbourd avatar arbourd commented on July 17, 2024

oh I actually had forgotten to set CGO_ENABLED=1 as instructed in the README, once I changed this, the build worked

Yup! I think this can be closed. CGO_ENABLED=1 must be enabled when using this.

from go-duckdb.

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.