Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Extend LIBRARY_PATH as well as LD_LIBRARY_PATH on Linux#909

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
tyrken wants to merge1 commit intoactions:main
base:main
Choose a base branch
Loading
fromtyrken:set-library-path

Conversation

@tyrken
Copy link

Description:

On Linux we already setLD_LIBRARY_PATH to thelib folder under the extracted Python, to allow running apps to findlibPython and other libraries. This is not enough to letgcc find those libraries during compilation, e.g. as some Python dependencies do when installing. For this we also need to add the lib folder to theLIBRARY_PATH env-var.

Related issue:
Shouldfix#275
Not sure if the suggestion to overrideAGENT_TOOLSDIRECTORY for Linux if the existingadvanced-docs is needed any more. It certainly didn't work for me and between the two*LIBRARY_PATH env-vars that should be enough.

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

@tyrkentyrken marked this pull request as ready for reviewJuly 12, 2024 20:18
@tyrkentyrken requested a review froma team as acode ownerJuly 12, 2024 20:18
@tyrken
Copy link
Author

While this PR has been tested and Works-For-Me (tm),actions/python-versions#275 sounds like it would be a better fix if it works as advertised, gets released & the pythons rebuilt...

if (!libPath.split(':').includes(pyLibPath)) {
core.exportVariable('LD_LIBRARY_PATH', pyLibPath + libPath);
}
ensurePathInEnvVar('LIBRARY_PATH', pyLibPath);
Copy link

@jaswanthikollajaswanthikollaJul 19, 2024
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

TBH, I wouldn't go with the route ofLD_LIBRARY_PATH as some systems ( including containers) doesn't allow it as it's a security issue.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@jaswanthikollajaswanthikollajaswanthikolla left review comments

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

ld: cannot find -lpython3.10

2 participants

@tyrken@jaswanthikolla

[8]ページ先頭

©2009-2025 Movatter.jp