Skip to content

Commit

Permalink
Fixed libaio.so.1: cannot open shared object file
Browse files Browse the repository at this point in the history
```
/usr/bin/ld: warning: libaio.so.1, needed by /opt/oracle/instantclient//libclntsh.so, not found (try using -rpath or -rpath-link)
/tmp/go-build28588451/b271/oracle.test: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
```

https://github.com/sue445/plant_erd/actions/runs/12930392258/job/36061795754?pr=260
  • Loading branch information
sue445 committed Jan 23, 2025
1 parent 67b2031 commit 217bbd0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function retry {
case "${RUNNER_OS}" in
"Linux")
sudo apt-get update
sudo apt-get install -y gcc-multilib g++-multilib
sudo apt-get install -y gcc-multilib g++-multilib libaio1t64

case "${TARGET_ARCH}" in
"amd64")
Expand All @@ -47,6 +47,9 @@ case "${RUNNER_OS}" in

sudo mkdir -p /usr/local/lib/pkgconfig/
sudo cp _build/ubuntu/oci8.pc /usr/local/lib/pkgconfig/oci8.pc

# c.f. https://forums.oracle.com/ords/apexds/post/instant-client-on-ubuntu-24-04-noble-numbat-7244
sudo ln -s /usr/lib/$(uname -m)-linux-gnu/libaio.so.1t64 /opt/oracle/instantclient_21_13/libaio.so.1
;;

"macOS")
Expand Down

0 comments on commit 217bbd0

Please sign in to comment.