amazon-ion / ion-cli

Apache License 2.0
37 stars 15 forks source link

ion: error while loading shared libraries: `libion_events.so`: cannot open shared object file: No such file or directory #51

Closed dlurton closed 5 months ago

dlurton commented 1 year ago

While on Ubuntu 20.04, the ion executable installed with cargo install ion-cli does not work due to not being able to find libion_events.so.

$cargo install ion-cli                                                                                                                                                                                                                                                          
    Updating crates.io index
    ... downloading and compiling of dependencies
    Compiling ion-cli v0.4.1
    Finished release [optimized] target(s) in 22.86s
  Installing /home/ANT.AMAZON.COM/dlurton/.cargo/bin/ion
   Installed package `ion-cli v0.4.1` (executable `ion`)
$ ion --help                                                                                                                                                                                                                                                                    
ion: error while loading shared libraries: libion_events.so: cannot open shared object file: No such file or directory
JustinDaleGray commented 1 year ago

I am unable to reproduce the issue using Docker to build against Debian 11.1 and Ubuntu 20.04. If you are still encountering an issue, will you provide the output of ldd /usr/bin/ion so we can see what shared libraries it is looking for?

For example:

ion-cli-ion_ubuntu-1  |         linux-vdso.so.1 (0x00007ffcd3cbf000)
ion-cli-ion_ubuntu-1  |         libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f47105eb000)
ion-cli-ion_ubuntu-1  |         librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f47105e1000)
ion-cli-ion_ubuntu-1  |         libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f47105be000)
ion-cli-ion_ubuntu-1  |         libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f471046f000)
ion-cli-ion_ubuntu-1  |         libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f4710469000)
ion-cli-ion_ubuntu-1  |         libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4710277000)
ion-cli-ion_ubuntu-1  |         /lib64/ld-linux-x86-64.so.2 (0x00007f4710a1a000)
zslayton commented 5 months ago

I expect that the original problem was tied to the ion-c-sys that is no longer a dependency of the ion-cli. I'm going to close this out, please feel free to reopen it if it's still an issue.