Comments on: How to Install and Run Multiple glibc Libraries in Linux https://www.tecmint.com/install-multiple-glibc-libraries-linux/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 08 Aug 2024 02:30:06 +0000 hourly 1 By: Ravi Saive https://www.tecmint.com/install-multiple-glibc-libraries-linux/comment-page-1/#comment-2199863 Thu, 08 Aug 2024 02:30:06 +0000 https://www.tecmint.com/?p=52013#comment-2199863 In reply to Stefano Cacciatore.

@Stefano,

This could be due to compatibility issues between the versions of glibc and your Python installation.

Verify that the version of ld-linux-x86-64.so.2 you are using is compatible with your installed glibc versions in the same directory.

ls /usr/local/glibc-2.38/lib/ld-linux-x86-64.so.2

You can try setting the LD_LIBRARY_PATH to include the glibc library path before running the pip install command.

export LD_LIBRARY_PATH=/usr/local/glibc-2.38/lib:$LD_LIBRARY_PATH
/opt/python/${PYTHON_VERSION}/bin/pip install ipykernel

Another approach is to create a symbolic link to the required version of ld-linux-x86-64.so.2 in the directory where your ld-2.30.so is expected.

ln -s /usr/local/glibc-2.38/lib/ld-linux-x86-64.so.2 /usr/local/glibc-2.38/lib/ld-2.30.so

If the segmentation fault persists, you may want to debug it using gdb.

gdb --args /opt/python/${PYTHON_VERSION}/bin/python -m pip install ipykernel
]]>
By: Stefano Cacciatore https://www.tecmint.com/install-multiple-glibc-libraries-linux/comment-page-1/#comment-2199529 Wed, 07 Aug 2024 08:45:14 +0000 https://www.tecmint.com/?p=52013#comment-2199529 Hi,

I followed the script and was able to install both glibc-2.39 and glibc-2.38, but I do not have the file ld-2.30.so.

I tried to use the code with the file ld-linux-x86-64.so.2, but it failed.

LD_PRELOAD=/usr/local/glibc-2.38/lib/ld-linux-x86-64.so.2 /opt/python/${PYTHON_VERSION}/bin/pip install ipykernel

Segmentation fault (core dumped)

]]>
By: Jalal Hajigholamali https://www.tecmint.com/install-multiple-glibc-libraries-linux/comment-page-1/#comment-2188254 Mon, 08 Jul 2024 08:58:17 +0000 https://www.tecmint.com/?p=52013#comment-2188254 Hi,
Thanks a lot
very useful article

]]>