Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

conda.exe: error while loading shared libraries: libz.so.1

Unable to install Anaconda3-2019.10-Linux-x86_64 in my RHEL machine; Getting the error -> conda.exe: error while loading shared libraries: libz.so.1: failed to map segment from shared object: Operation not permitted.

Anaconda or Miniconda version: Anaconda3-2019.10-Linux-x86_64 Operating System:"Red Hat Enterprise Linux Server" VERSION="7.7 (Maipo)"

Steps to Reproduce

wget https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh bash ./Anaconda3-2019.10-Linux-x86_64.sh

I've followed the resolution steps mentioned in Github #11493, and #11154 by @davidlowryduda, @Pastthesun, but that doesn't fix my issue. Have posted the issue in Github as #11587.

I tried with older version of Anaconda --> Anaconda3-2019.07-Linux-x86_64 and Anaconda3-2019.03-Linux-x86_64. Anaconda3-2019.07-Linux-x86_64 did not give the same issue related to libz.so.1, but gave another error. But I had a smooth installation with Anaconda3-2019.03-Linux-x86_64.

like image 756
bkrishna2006 Avatar asked Feb 07 '20 03:02

bkrishna2006


1 Answers

The problem may be your /tmp is set to noexec in /etc/fstab. Verify with grep tmp /etc/fstab.

Run the installer with TMPDIR set to a directory you have write permissions to, on a file system with executable permission. i.e.:

mkdir /users/$USER/tmpconda
TMPDIR=/users/$USER/tmpconda bash Miniconda2-latest-Linux-x86_64.sh

Solution was found at Anaconda Issues 11587

A quick test of executability on a file system:

$ touch foo && chmod +x foo && ./foo
-bash: ./foo: Permission denied

noexec will cause "Permission denied" even if x is set on the file.

like image 106
zerocog Avatar answered Sep 20 '22 01:09

zerocog