error while loading shared libraries: libaws-c-common.so.1 #47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Error
Metadata
Received this error message on a fresh Fedora Server 42 install. FWIW, the disk partition layout was customized during install and is as follows:
In an effort to resolve the issue, the
aws-c-common-devel
package was installed but the error message persists.<autogenerated-issue>to error while loading shared libraries: libaws-c-common.so.1Experiencing the same problem on RHEL 10 (Workstation) with 1:1 error message.
,
aws-c-common-devel
also didn't help, butldconfig -p
shows the library is in fact installed:Uhhhhhhhhh. That looks like we have RPATH being busted, as it should never be actually using system libraries and is supposed to provide its own. Needs further investigation I think.
Hey, Just hit this right now on Centos Stream 10. I tried installing some aws libs from dnf but that didnt seem to help. If I were to guess its somehow not including this lib in the closure for lix when installing. Not including logs as they are the same as above.
Is there a hotfix known? Perhaps a static binary? Its a bit of a roadblock...
Okay I ran
ldd
on the nix-store binary fetched by the installer and it is infact a busted rpathWhats surprising is that this is not the case for nix-store binary from the lix-module. I'm gonna try pointing the installer at the 2.93.1 version tarball and see if something changes
Created above issue as this seems to be more than a broken installer problem.
It is in fact an installer problem. Some paths, like
/nix/store/1k1bnir265n7jpbmwinj8hiwygnwrw3s-aws-c-common-0.9.27
which triggers the error, end up being symlinks to themselves. The reason appears to be that in the move loopwhile let Some(entry) = src_store_listing
.next_entry()
.await
.map_err(|e| ActionErrorKind::ReadDir(src_store.clone(), e))
.map_err(Self::error)?
the source directory being read gets modified
tokio::fs::rename(&entry.path(), &entry_dest)
.await
.map_err(|e| ActionErrorKind::Rename(entry.path(), entry_dest.to_owned(), e))
.map_err(Self::error)?;
tokio::fs::symlink(&entry_dest, entry.path())
.await
.map_err(|e| ActionErrorKind::Symlink(entry_dest.to_owned(), entry.path(), e))
.map_err(Self::error)?;
triggering unspecified behaviour in the directory enumeration.
On XFS, this leads to several of the new entries (including
1k1bnir265n7jpbmwinj8hiwygnwrw3s-aws-c-common-0.9.27
) being returned. The installer is not prepared for that, removes the legitimate target and moving the backup symlink there instead, which now is a symlink pointing to itself instead of the desired directory.