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

Set CMAKE_SKIP_RPATH to TRUE #331

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bluca
Copy link

@bluca bluca commented Nov 7, 2024

When skipping RPATH make doc raise:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sphinx/config.py", line 368, in eval_config_file
    execfile_(filename, namespace)
  File "/usr/lib/python3/dist-packages/sphinx/util/pycompat.py", line 150, in execfile_
    exec_(code, _globals)
  File "/home/user/librepo/doc/python/conf.py", line 15, in <module>
    import librepo
  File "/home/user/librepo/build/librepo/python/python3/librepo/__init__.py", line 1081, in <module>
    import librepo._librepo
ImportError: librepo.so.0: cannot open shared object file: No such file or directory

A fix is to set properly LD_LIBRARY_PATH in sphinx env call

When skipping RPATH make doc raise:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sphinx/config.py", line 368, in eval_config_file
    execfile_(filename, namespace)
  File "/usr/lib/python3/dist-packages/sphinx/util/pycompat.py", line 150, in execfile_
    exec_(code, _globals)
  File "/home/user/librepo/doc/python/conf.py", line 15, in <module>
    import librepo
  File "/home/user/librepo/build/librepo/python/python3/librepo/__init__.py", line 1081, in <module>
    import librepo._librepo
ImportError: librepo.so.0: cannot open shared object file: No such file or directory

A fix is to set properly LD_LIBRARY_PATH in sphinx env call
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 this pull request may close these issues.

2 participants