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 23e0f04
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 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 Down
3 changes: 3 additions & 0 deletions _build/ubuntu/setup_oracle_386.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ wget --quiet --tries=0 https://download.oracle.com/otn_software/linux/instantcli
unzip -q instantclient-basiclite-linux-19.5.0.0.0dbru.zip -d /opt/oracle
unzip -q instantclient-sdk-linux-19.5.0.0.0dbru.zip -d /opt/oracle
mv /opt/oracle/instantclient_19_5 /opt/oracle/instantclient

# c.f. https://forums.oracle.com/ords/apexds/post/instant-client-on-ubuntu-24-04-noble-numbat-7244
ln -s /usr/lib/$(uname -m)-linux-gnu/libaio.so.1t64 /opt/oracle/instantclient/libaio.so.1
3 changes: 3 additions & 0 deletions _build/ubuntu/setup_oracle_x64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ wget --quiet --tries=0 https://download.oracle.com/otn_software/linux/instantcli
unzip -q instantclient-basiclite-linux.x64-19.3.0.0.0dbru.zip -d /opt/oracle
unzip -q instantclient-sdk-linux.x64-19.3.0.0.0dbru.zip -d /opt/oracle
mv /opt/oracle/instantclient_19_3 /opt/oracle/instantclient

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

0 comments on commit 23e0f04

Please sign in to comment.