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.:

Copymkdir /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.

Answer from zerocog on Stack Overflow
🌐
Anaconda.org
anaconda.org › conda-forge › libzlib
libzlib - conda-forge | Anaconda.org
conda-forge/libzlib · Community · zlib data compression library for the next generation systems · Copied fromcf-post-staging / libzlib · Overview · Files 103 · Labels 2 · Badges · Versions · 1.3.1 · To install this package, run one of the following: $conda install conda-forge::libzlib ·
🌐
Conda
docs.conda.io › projects › conda-build › en › stable › resources › use-shared-libraries.html
Using shared libraries — conda-build 0.0.0.dev0+placeholder documentation
On Linux, conda-build modifies any shared libraries or generated executables to use a relative dynamic link by calling the patchelf tool. On macOS, the install_name_tool tool is used.
🌐
GitHub
github.com › conda › conda-build › issues › 1883
can't run conda-build from central install without write access · Issue #1883 · conda/conda-build
March 28, 2017 - For a centrally installed conda, where users don't have write access, they can't run conda-build. ... OSError: [Errno 13] Permission denied: '/reg/g/psdm/sw/conda/inst/miniconda2-prod-rhel7/locks/L3JlZy9nL3BzZG0vc3cv' ... ... number of files: 8 Fixing permissions Making absolute symlink lib/libsz.so.2 -> libsz.so.2.0.0 relative Making absolute symlink lib/libsz.so -> libsz.so.2.0.0 relative patchelf: file: /reg/neh/home/davidsch/conda-bld/szip_1490722924710/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p
Author   conda
🌐
GitHub
github.com › conda-forge › zlib-feedstock
GitHub - conda-forge/zlib-feedstock: A conda-smithy repository for zlib.
A feedstock is made up of a conda recipe (the instructions on what and how to build the package) and the necessary configurations for automatic building using freely available continuous integration services. Thanks to the awesome service provided by Azure, GitHub, CircleCI, AppVeyor, Drone, and TravisCI it is possible to build and upload installable packages to the conda-forge anaconda.org channel for Linux, Windows and OSX respectively.
Starred by 3 users
Forked by 36 users
Languages   Batchfile 75.2% | Shell 12.9% | C 11.9% | Batchfile 75.2% | Shell 12.9% | C 11.9%
🌐
Anaconda.org
anaconda.org › anaconda › zlib
zlib - anaconda
View packages from the anaconda channel on Anaconda.org.
🌐
Conda
docs.conda.io › projects › conda › en › stable › commands › install.html
conda install — conda 26.5.3 documentation
Install a list of packages into a specified conda environment · This command accepts a list of package specifications (e.g, bitarray=0.8) and installs a set of packages consistent with those specifications and compatible with the underlying environment. If full compatibility cannot be assured, ...
🌐
Conda
docs.conda.io › projects › conda-build › en › latest › resources › compiler-tools.html
Anaconda compiler tools — conda-build 0.0.0.dev0+placeholder documentation
Anaconda 5.0 switched from OS-provided compiler tools to our own toolsets. This allows improved compiler capabilities, including better security and performance. This page describes how to use these tools and enable these benefits · Before Anaconda 5.0, compilers were installed using system ...
🌐
Conda
docs.conda.io › projects › conda › en › latest › user-guide › install › index.html
Installing conda — conda 26.5.4.dev85 documentation
To install conda, you must first pick the right installer for you. The following are the most popular installers currently available: · Miniconda is a minimal installer provided by Anaconda. Use this installer if you want to install most packages yourself
Find elsewhere
🌐
Anaconda
anaconda.com › docs › getting-started › working-with-conda › packages › install-packages
Installing conda packages - Anaconda
To install a package in an environment that is not your currently active environment, specify the environment name: ... By default, conda installs packages using the channel priority defined in your .condarc configuration file.
Top answer
1 of 5
1
I'd ensure that this was seen by R, and that the header for libz (typically, installing the '-dev' version of the library) are available. · As a next step, if from the command line and with the unpacked source tarball available you try to install the package · > download.packages("ShortRead", ".", repos = BiocInstaller::biocinstallRepos()) · > quit() · $ tar xzf ShortRead_*gz · $ cd ShortRead · ShortRead$ R CMD INSTALL . · and then look for config.log you'll see something like · configure:2897: checking for gzeof in -lz · configure:2922: gcc -o conftest -g -O2 conftest.c -lz >&5 · configure:2922: $? = 0 · configure:2931: result: yes · except that you won't get that result, and there'll be a conftest.c file and perhaps informative messages. I'd also look on the mailing list / support site for whatever 'conda' manager you're using for similar messages.
2 of 5
1
I had what seems to be the exact same problem, installing ShortRead in a conda environment. I was able to solve the problem for myself, so I hope this can help others having the same issue. · Long story short, this error seems to happen with zlib v1.2.11 but not zlib v1.2.8. So I made sure my environment was using this version: · $ conda create -n myenv zlib=1.2.8 · After this, installing ShortRead worked fine. · $ source activate myenv · $ R · > source("https://bioconductor.org/biocLite.R") · > biocLite("ShortRead") · Note that it might be possible to downgrade zlib: · $ conda install -c anaconda zlib=1.2.8 · However, in my case this broke some other packages, which is why I had to create an entirely new environment. Hope this helps.
🌐
Stack Overflow
stackoverflow.com › questions › 59414637 › conda-packaging-and-the-c-library-as-a-dependency
anaconda - Conda packaging and the C library as a dependency - Stack Overflow
This is one of the big advantages of source distributions, that the user is able to compile against their local libc, so they know it will work on their computer. Of course, they have to have the compiler toolchain installed... ... The packages built in the conda-forge ecosystem target a specific kernel version and glibc version using a sysroot on Linux.
🌐
Conda
docs.conda.io › projects › conda › en › stable › user-guide › concepts › installing-with-conda.html
Installing with conda — conda 26.5.2 documentation
Conda packages can be installed by running the following command: · When conda installs a package, it is automatically added to your active environment. These packages are collections of files and directories that make up everything you need to use that particular library or software.
🌐
GitHub
github.com › JuliaPy › PyPlot.jl › issues › 151
error loading ZLIB (wrong libz library being linked) · Issue #151 · JuliaPy/PyPlot.jl
July 31, 2015 - julia> using PyCall julia> @pyimport matplotlib.pyplot as plt ERROR: PyError (:PyImport_ImportModule) <type 'exceptions.ImportError'> ImportError("/lib64/libz.so.1: version `ZLIB_1.2.3.4' not found (required by /usr/local/anaconda/lib/python2.7/site-packages/matplotlib/../../.././libpng16.so.16)",) File "/usr/local/anaconda/lib/python2.7/site-packages/matplotlib/pyplot.py", line 27, in <module> import matplotlib.colorbar File "/usr/local/anaconda/lib/python2.7/site-packages/matplotlib/colorbar.py", line 34, in <module> import matplotlib.collections as collections File "/usr/local/anaconda/lib/
Author   JuliaPy
Top answer
1 of 3
2

I believe that the problem lies with the configuration of autotools in r-base>3.4.1b2, but I'm not competent to fix that. The plus side is that, although configure can't find zlib during the pre-installation, zlib is actually present in any Conda environment with r-base and can be linked during the actual installation. I filed an issue at Conda-Forge, but until and unless the issue is resolved in r-base, I made a fork of ShortRead which skips the check. It works for me with r-base=3.5.1.

tldr: remotes::install_github("brendanf/ShortRead")

2 of 3
0

I had the same error for the past week. I tried every thing that was mentioned regarding the zlib library on the internet. I couldn't fix it properly. I have the zlib installed as when I run: pkg-config zlib --libs; I get as output: -lz $ pkg-config zlib --libs -lz

I am running conda (v4.5.4). R version 3.4.3 and I have R as a conda environment. I think the problem is with multiple zlib libraries (ubuntu base and conda).

Somehow I just made this to work. What I did was to install R in ubuntu shell (i.e. outside conda) and install the ShortRead library there. There was no conflict/error with the zlib. After that I added the core Rlib directories to libPaths in conda.

$.libPaths(c('/home/aridaman/.conda/envs/rstudio/lib/R/library','/usr/local/lib/R/site-library/','/usr/lib/R/site-library','/usr/lib/R/site-library'))

This is not ideal but somehow worked for me. I would be glad to have a better conda based solution.

🌐
Libraries.io
libraries.io › conda › libzlib
libzlib 1.3.1 on conda - Libraries.io - security & maintenance data for open source software
March 26, 2022 - Another example is given in the file test/minigzip.c. The compression library itself is composed of all source files in the root directory. To compile all files and run the test program, follow the instructions given at the top of Makefile.in. In short "./configure; make test", and if that goes well, "make install" should work for most flavors of Unix.
🌐
Anaconda.org
anaconda.org › conda-forge › zlib
zlib - conda-forge | Anaconda.org
conda-forge/zlib · Community · Massively spiffy yet delicately unobtrusive compression library · Copied fromcf-post-staging / zlib · Overview · Files 211 · Labels 6 · Badges · Versions · 1.3.2 · To install this package, run one of the following: $conda install conda-forge::zlib ·
🌐
Conda
docs.conda.io
Conda Documentation — conda-docs documentation
Conda provides package, dependency, and environment management for any language. The following documentation site provides all you need to get started with leveraging the power of conda · Learn how to get started using conda with tutorials and quick start guides