Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build libxcrypt. #64

Open
dumol opened this issue Mar 22, 2022 · 2 comments
Open

Build libxcrypt. #64

dumol opened this issue Mar 22, 2022 · 2 comments

Comments

@dumol
Copy link
Contributor

dumol commented Mar 22, 2022

Unless glibc is built with --disable-crypt, it includes /usr/lib/libcrypt.so.1, which we link against.

However, at least on current Arch Linux and Amazon Linux 2022 (still in preview mode), this is not the case. Consequently, there's this error when trying to run our generic Linux runtime:

bash-5.1# ./bin/admin-commands.sh initialize --init-admin admin --init-password pass
Traceback (most recent call last):
  File "/opt/sftpplus/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/opt/sftpplus/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/opt/sftpplus-lnx-x64-4.17.0/lib/python2.7/site-packages/chevah/slim_server/__main__.py", line 10, in <module>
    from chevah.compat import local_filesystem
  File "/opt/sftpplus/lib/python2.7/site-packages/chevah/compat/__init__.py", line 15, in <module>
    from chevah.compat.unix_users import (
  File "/opt/sftpplus/lib/python2.7/site-packages/chevah/compat/unix_users.py", line 13, in <module>
    import crypt
ImportError: libcrypt.so.1: cannot open shared object file: No such file or directory

Current workaround is to install the OS-provided libxcrypt package, e.g. on Amazon Linux 2022 the package is named libxcrypt-compat.

A comprehensive solution would be to just build libxcrypt statically for generic Linux, as we do with other libs.

@adiroiban
Copy link
Member

Thanks. For now it can be low priority, as we don't support Arch and Amazon 2022 is not yet public

@dumol dumol transferred this issue from chevah/python-package Oct 4, 2024
@dumol
Copy link
Contributor Author

dumol commented Oct 4, 2024

Nowadays, this also affects RHEL 9 and derivatives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants