Skip to content

Missing libiconv.so.2 library #98

@blowekamp

Description

@blowekamp

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

On a clean ubuntu docker image with miniconda installed and activated, the following is run:

$ conda install -c conda-forge
$itkTestDriver 
itkTestDriver: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory

It appears that the libiconv library is not install and a dependency is missing. Groking through the ITK libraries I see the following:

$for lib in *.so; do echo $lib; ldd $lib |grep libiconv; done
libITKTestKernel-5.4.so
	libiconv.so.2 => not found
libITKIOGDCM-5.4.so
	libiconv.so.2 => not found

Installed packages

# conda list
Error while loading conda entry point: conda-libmamba-solver (libarchive.so.19: cannot open shared object file: No such file or directory)                                                                                        
# packages in environment at /root/miniconda3:                                                                                                                                                                                    
#                                                                                                                                                                                                                                 
# Name                    Version                   Build  Channel                                                                                                                                                                
_libgcc_mutex             0.1                 conda_forge    conda-forge                                                                                                                                                          
_openmp_mutex             4.5                       2_gnu    conda-forge                                                                                                                                                          
anaconda-anon-usage       0.4.4           py312hfc0e8ea_100                                                                                                                                                                       
archspec                  0.2.3              pyhd3eb1b0_0                                                                                                                                                                         
boltons                   23.0.0          py312h06a4308_0                                                                                                                                                                         
brotli-python             1.0.9           py312h6a678d5_8                                                                                                                                                                         
bzip2                     1.0.8                h5eee18b_6                                                                                                                                                                         
c-ares                    1.19.1               h5eee18b_0                                                                                                                                                                         
ca-certificates           2024.7.4             hbcca054_0    conda-forge                                                                                                                                                          
certifi                   2024.7.4           pyhd8ed1ab_0    conda-forge                                                                                                                                                          
cffi                      1.16.0          py312h5eee18b_1                                                                                                                                                                         
charset-normalizer        2.0.4              pyhd3eb1b0_0                                                                                                                                                                         
conda                     24.7.1          py312h7900ff3_0    conda-forge                                                                                                                                                          
conda-content-trust       0.2.0           py312h06a4308_1                                                                                                                                                                         
conda-libmamba-solver     24.1.0             pyhd3eb1b0_0                                                                                                                                                                         
conda-package-handling    2.3.0           py312h06a4308_0                                                                                                                                                                         
conda-package-streaming   0.10.0          py312h06a4308_0                                                                                                                                                                         
cryptography              42.0.5          py312hdda0065_1                                                                                                                                                                         
distro                    1.9.0           py312h06a4308_0                                                                                                                                                                         
eigen                     3.4.0                h00ab1b0_0    conda-forge                                                                                                                                                          
expat                     2.6.2                h6a678d5_0  
fftw                      3.3.10          nompi_hf1063bd_110    conda-forge
fmt                       9.1.0                hdb19cb5_1  
frozendict                2.4.2           py312h06a4308_0  
hdf5                      1.14.3          nompi_h4f84152_101    conda-forge
icu                       73.1                 h6a678d5_0  
idna                      3.7             py312h06a4308_0  
jsonpatch                 1.33            py312h06a4308_1  
jsonpointer               2.1                pyhd3eb1b0_0  
krb5                      1.20.1               h143b758_1  
ld_impl_linux-64          2.38                 h1181459_1  
lerc                      4.0.0                h27087fc_0    conda-forge
libaec                    1.1.3                h59595ed_0    conda-forge
libarchive                3.6.2                h039dbb9_1    conda-forge
libcurl                   8.7.1                h251f7ec_0  
libdeflate                1.20                 hd590300_0    conda-forge
libedit                   3.1.20230828         h5eee18b_0  
libev                     4.33                 h7f8727e_1  
libexpat                  2.6.2                h59595ed_0    conda-forge
libffi                    3.4.4                h6a678d5_1  
libgcc-ng                 14.1.0               h77fa898_0    conda-forge
libgfortran-ng            14.1.0               h69a702a_0    conda-forge
libgfortran5              14.1.0               hc5f4f2c_0    conda-forge
libgomp                   14.1.0               h77fa898_0    conda-forge
libhwloc                  2.11.1          default_hecaa2ac_1000    conda-forge
libitk                    5.4.0                ha759891_2    conda-forge
libjpeg-turbo             3.0.0                hd590300_1    conda-forge
libmamba                  1.5.8                hfe524e5_2  
libmambapy                1.5.8           py312h2dafd23_2  
libnghttp2                1.57.0               h2d74bed_0  
libnsl                    2.0.1                hd590300_0    conda-forge
libpng                    1.6.43               h2797004_0    conda-forge
libsolv                   0.7.24               he621ea3_1  
libsqlite                 3.46.0               hde9e2c9_0    conda-forge
libssh2                   1.11.0               h251f7ec_0  
libstdcxx-ng              14.1.0               hc0a3c3a_0    conda-forge
libtiff                   4.6.0                h1dd3fc0_3    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libwebp-base              1.4.0                hd590300_0    conda-forge
libxcrypt                 4.4.36               hd590300_1    conda-forge
libxml2                   2.13.1               hfdd30dd_2  
libzlib                   1.2.13               h4ab18f5_6    conda-forge
lz4-c                     1.9.4                h6a678d5_1  
lzo                       2.10              hd590300_1001    conda-forge
menuinst                  2.1.1           py312h06a4308_0  
ncurses                   6.4                  h6a678d5_0  
openssl                   3.3.1                h4bc722e_2    conda-forge
packaging                 23.2            py312h06a4308_0  
pcre2                     10.42                hebb0a14_1  
pip                       24.0            py312h06a4308_0  
platformdirs              3.10.0          py312h06a4308_0  
pluggy                    1.0.0           py312h06a4308_1  
pybind11-abi              5                    hd3eb1b0_0  
pycosat                   0.6.6           py312h5eee18b_1  
pycparser                 2.21               pyhd3eb1b0_0  
pysocks                   1.7.1           py312h06a4308_0  
python                    3.12.2          hab00c5b_0_cpython    conda-forge
python_abi                3.12                    4_cp312    conda-forge
readline                  8.2                  h5eee18b_0  
reproc                    14.2.4               h6a678d5_2  
reproc-cpp                14.2.4               h6a678d5_2  
requests                  2.32.2          py312h06a4308_0  
ruamel.yaml               0.17.21         py312h5eee18b_0  
setuptools                69.5.1          py312h06a4308_0  
simpleitk                 2.4.0           py312hcacb968_0    conda-forge
sqlite                    3.45.3               h5eee18b_0  
tbb                       2021.12.0            h434a139_3    conda-forge
tk                        8.6.14               h39e8969_0  
tqdm                      4.66.4          py312he106c6f_0  
truststore                0.8.0           py312h06a4308_0  
tzdata                    2024a                h04d1e81_0  
urllib3                   2.2.2           py312h06a4308_0  
wheel                     0.43.0          py312h06a4308_0  
xz                        5.4.6                h5eee18b_1  
yaml-cpp                  0.8.0                h6a678d5_1  
zlib                      1.2.13               h4ab18f5_6    conda-forge
zstandard                 0.22.0          py312h2c38b39_0  
zstd                      1.5.5                hc292b87_2

Environment info

# conda info
Error while loading conda entry point: conda-libmamba-solver (libarchive.so.19: cannot open shared object file: No such file or directory)

     active environment : base
    active env location : /root/miniconda3
            shell level : 1
       user config file : /root/.condarc
 populated config files : 
          conda version : 24.7.1
    conda-build version : not installed
         python version : 3.12.2.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=x86_64
                          __conda=24.7.1=0
                          __glibc=2.39=0
                          __linux=6.6.26=0
                          __unix=0=0
       base environment : /root/miniconda3  (writable)
      conda av data dir : /root/miniconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /root/miniconda3/pkgs
                          /root/.conda/pkgs
       envs directories : /root/miniconda3/envs
                          /root/.conda/envs
               platform : linux-64
             user-agent : conda/24.7.1 requests/2.32.2 CPython/3.12.2 Linux/6.6.26-linuxkit ubuntu/24.04 glibc/2.39 solver/libmamba aau/0.4.4 c/. s/. e/.
                UID:GID : 0:0
             netrc file : None
           offline mode : False

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions