Skip to content
New issue

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

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

Already on GitHub? # to your account

It don't run from a image named alpine when use docker. #341

Closed
barnettZQG opened this issue Oct 23, 2016 · 7 comments
Closed

It don't run from a image named alpine when use docker. #341

barnettZQG opened this issue Oct 23, 2016 · 7 comments

Comments

@barnettZQG
Copy link

I go build my app with go-sqlite3 in linux.but it don't run in alpine container.

backup.go:14:20: fatal error: stdlib.h: No such file or directory compilation terminated.

I don't know why is it.If I use ubuntu environment compiler can run in ubuntu?

@mattn
Copy link
Owner

mattn commented Oct 25, 2016

Did you install gcc?

@cobordism
Copy link

RUN apk add --update gcc g++

@rennanfelipe
Copy link

I'm passing the same problem
Did you solve it?

@rennanfelipe
Copy link

I'm solve it installing sqlite3 in my OS!

@goofansu
Copy link

RUN apk add --update gcc musl-dev is enough

@wmzy
Copy link

wmzy commented Jun 20, 2017

I go build my app with go-sqlite3 in alpine container.But it don't run in centos6.

/lib/ld-musl-x86_64.so.1: bad ELF interpreter: No such file or directory

@majewsky
Copy link

majewsky commented Sep 8, 2017

@wmzy Yeah, that's because Alpine uses musl libc, whereas Centos uses glibc. If your program is linked against one sort of libc, it cannot run on a system that uses a different one. Not a problem with this package.

gjrtimmer added a commit to gjrtimmer/go-sqlite3 that referenced this issue May 26, 2018
Compile Section Closes mattn#175
Compile Section Closes mattn#201
Compile Section Closes mattn#206
Compile Section Closes mattn#404
Compile Section Closes mattn#217
Compile Section Closes mattn#224
Compile Section Closes mattn#234
Compile Section Closes mattn#242
Feature table Closes mattn#255
Description Section Closes mattn#232
Golang:1.6 not supported Closes mattn#272
Golang:1.5 not supported + compilation section Closes mattn#283
usleep Implemented Closes mattn#285
FAQ Section Closes mattn#289
Compile Section closes mattn#295
FAQ Section Closes mattn#305
PR339 Closes mattn#318 mattn#321
Compilation Section Closes mattn#341
PR407 Closes mattn#364
Feature `sqlite_vtable` Closes mattn#393
Compile Section Closes mattn#416
sqlite_trace feature Closes mattn#433
Compilation Section Closes mattn#435
Compilation Section Closes mattn#443
Golang:1.6 Not Supported Closes mattn#445
Compilation Section Closes mattn#451
Compilation Section Closes mattn#467
Compilation Section Closes mattn#491
Compilation Section Closes mattn#495
Compilation Section Closes mattn#505
Compilation Section Closes mattn#557
Compilation Section Closes mattn#560
@mattn mattn closed this as completed in c9394b1 May 27, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants