conda.exe:加载共享库时出错:libz.so.1 [英] conda.exe: error while loading shared libraries: libz.so.1

查看:133
本文介绍了conda.exe:加载共享库时出错:libz.so.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法在我的RHEL机器上安装Anaconda3-2019.10-Linux-x86_64;出现错误-> conda.exe:加载共享库时出错: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或Miniconda版本:Anaconda3-2019.10-Linux-x86_64操作系统:"Red Hat Enterprise Linux服务器" VERSION ="7.7(Maipo)"

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

重现步骤

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

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

我已经按照@ davidlowryduda,@ Pastthesun的方法在Github#11493和#11154中提到的解决步骤,但这并不能解决我的问题.已在Github上将其发布为#11587.

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.

我尝试使用较旧版本的Anaconda-> Anaconda3-2019.07-Linux-x86_64和Anaconda3-2019.03-Linux-x86_64.Anaconda3-2019.07-Linux-x86_64没有给出与libz.so.1相关的相同问题,但给出了另一个错误.但是我使用Anaconda3-2019.03-Linux-x86_64进行了顺利安装.

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.

推荐答案

问题可能是您的/tmp /etc/fstab中设置为 noexec .使用 grep tmp/etc/fstab 进行验证.

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

在具有可执行权限的文件系统上,将 TMPDIR 设置为您具有写许可权的目录,运行安装程序.即:

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

解决方案位于 Anaconda问题11587

文件系统可执行性的快速测试:

A quick test of executability on a file system:

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

noexec 将导致权限被拒绝"即使在文件上设置了 x .

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

这篇关于conda.exe:加载共享库时出错:libz.so.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆