Comments (5)
Hope this help anyone who try to install this package on windows machine, you can try installing git-bash and mingw using chocolatey and then locate the the mingw lib directory, in my case it's on C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\lib
then copy duckdb.dll there. You need to copy the duckdb header files (duckdb.h and duckdb.hpp?) to the root of go-duckdb directory, I am cloning this package btw, not installing it through go get
from go-duckdb.
Hi @sdmcallister,
as I don't have access to a Windows machine, I've tried to compile go-duckdb in a VM with the WSL. Unfortunately I'm getting an error, that the DuckDB library could not be found.
/usr/bin/ld: cannot find -lduckdb
collect2: error: ld returned 1 exit status
I think that it is not sufficient to only adjust the CGO_LDFLAGS
and CGO_CFLAGS
environment vars to point to the DuckDB library and header files. I've tried that and failed. There must be another way under windows to fix the library and include paths.
Unfortunately I have very little free time at the moment. Maybe you could try some Stackoverflow exploring for compiling CGO packages under the WSL and setting the CGO env vars properly.
Sorry, that I couldn't help you with this issue :(
from go-duckdb.
Thanks! I'll keep trying and if I have any success I'll be sure to post here.
from go-duckdb.
@dedisuryadi Thank for the help!
My solution was a bit different. I used go mod.
I downloaded the recent compiled release windows 64 C/C++ release:
https://github.com/cwida/duckdb/releases/download/v0.2.5/libduckdb-windows-amd64.zip
I copied the duckdb.h and duckdb.hpp
into
C:\Users\me\go\pkg\mod\github.com\marcboeker\[email protected]
Then I copied the duckdb.dll
into C:\Windows\System32
That seemed to work. Amazing!
@marcboeker Thank you for the working on this package!
from go-duckdb.
here is what u miss. -lduckdb.
assuming path-to-lib is patche where .dll, .h, .lib is present correct env params will be
CGO_CFLAGS=-Ipath-to-lib
CGO_LDFLAGS=-Lpath-to-lib -lduckdb
Anddd it works on windows :)
from go-duckdb.
Related Issues (20)
- Is go-duckdb affected by duckdb/duckdb#10634? HOT 2
- NULL-bytes in BLOB HOT 1
- JSON (or any extension type) usage with Appender HOT 1
- Tables containing columns of type TIMESTAMPTZ cannot be queried. HOT 15
- install HOT 13
- Compilation error HOT 4
- Cannot pass schema and search_path as a DSN query param HOT 4
- Cannot create tables with Primary Key (silent fail) HOT 1
- How to manually commit the contents of the WAL file to the main database file before db closed? HOT 8
- [email protected]\appender.go:451:11: invalid array length 1 << 31 (untyped int constant 2147483648) HOT 2
- "unsupported type 17" on duckdb > 0.10.0 HOT 2
- Uncaught exception of type duckdb::InternalException HOT 1
- Add CI script to run gofumpt
- hope create a new tag for last update HOT 1
- Build failures on redhat linux HOT 1
- Support missing timestamp types in the appender HOT 1
- Detect incorrect column counts in the appender
- transaction.go:6:5: undefined: conn HOT 9
- Exposing filesystem interface HOT 1
- Make Apache Arrow Optional HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-duckdb.