Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

dyld: Library not loaded: @rpath/libclntsh.dylib.12.1 #427

Open
gftao opened this issue Feb 23, 2022 · 0 comments
Open

dyld: Library not loaded: @rpath/libclntsh.dylib.12.1 #427

gftao opened this issue Feb 23, 2022 · 0 comments

Comments

@gftao
Copy link

gftao commented Feb 23, 2022

hi, in my mac , I have an problem

db, err := sql.Open("oci8", openString)`
if err != nil {
fmt.Printf("Open error is not nil: %v", err)
return
}

...
rows, err := db.QueryContext(ctx, "select REMARK2 from table")
if err != nil {
fmt.Println("QueryContext error is not nil:", err)
return
}
...
for rows.Next() {
fmt.Println(rows.Columns())
}

go build main.go && ./main is ok, but go run main.go then program go wrong like this.

image

how can i deal with that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant