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

Remove $SKA/lib from LD_LIBRARY_PATH #856

Closed
javierggt opened this issue May 24, 2022 · 2 comments
Closed

Remove $SKA/lib from LD_LIBRARY_PATH #856

javierggt opened this issue May 24, 2022 · 2 comments
Labels

Comments

@javierggt
Copy link
Contributor

javierggt commented May 24, 2022

Description

In RH8, there is a conflict between the libcrypto.so.1.1 library in the conda env and the one in /usr/lib64 (#854 ).

The issue can be traced to the presence of $SKA/lib in $LD_LIBRARY_PATH (this line). I do not think we need $SKA/lib in $LD_LIBRARY_PATH. Everything works if one sets up the environment with conda (see below).

This is not fixed by installing git in the conda env.

What other alternative is there?

To Reproduce

on RH8 and within a local git repo:

jgonzale skare3 $ source /proj/sot/ska/jgonzalez/miniconda3/envs/ska3-flight-rh8/bin/ska_envs.sh
jgonzale skare3 $ git pull
/usr/bin/ssh: symbol lookup error: /usr/bin/ssh: undefined symbol: EVP_KDF_ctrl, version OPENSSL_1_1_1b
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Expected behavior

Git should work.

Additional context

there is no issue if I setup the environment using conda:

eval "$(/proj/sot/ska3/flight/bin/conda shell.bash hook)"
git pull
@javierggt javierggt added the bug label May 24, 2022
@javierggt javierggt changed the title Remove Remove $SKA/lib from LD_LIBRARY_PATH May 24, 2022
@jeanconn
Copy link
Contributor

The other alternative is probably to alias git to "env LD_LIBRARY_PATH="" git" like I've done with emacs, but I agree something like that should only be a fallback if other plans fail.

@jeanconn
Copy link
Contributor

jeanconn commented Jun 1, 2022

Closed by #855

@jeanconn jeanconn closed this as completed Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants