From 217bbd0317b3a88e1d21485e90153ce4cb46446e Mon Sep 17 00:00:00 2001 From: sue445 Date: Thu, 23 Jan 2025 22:43:12 +0900 Subject: [PATCH] Fixed libaio.so.1: cannot open shared object file ``` /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 --- .github/workflows/setup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/setup.sh b/.github/workflows/setup.sh index 28f3432..7d8a406 100755 --- a/.github/workflows/setup.sh +++ b/.github/workflows/setup.sh @@ -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") @@ -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")