Skip to content

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

@gftao

Description

@gftao

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions