AIX Open Source

 View Only
  • 1.  bash installation issue, not showing version after bash installed

    Posted Tue May 24, 2022 12:39 AM
    Hi,
    We tried to install bash in our aix7.2 system, it installed but failed to show the version due to dependency issue. 

    hfatsweb01:/root # oslevel -s
    7200-05-03-2148

    hfatsweb01:/root # rpm -qa|grep -i bash
    bash-5.1.4-2.ppc

    hfatsweb01:/root # bash --version
    exec(): 0509-036 Cannot load program bash_64 because of the following errors:
    0509-130 Symbol resolution failed for bash_64 because:
    0509-136 Symbol _GLOBAL__AIXI_libiconv_so (number 222) is not exported from
    dependent module /opt/freeware/lib/libiconv.a[libiconv.so.2].
    0509-136 Symbol _GLOBAL__AIXD_libiconv_so (number 223) is not exported from
    dependent module /opt/freeware/lib/libiconv.a[libiconv.so.2].
    0509-192 Examine .loader section symbols with the
    'dump -Tv' command.

    hfatsweb01:/root # whereis bash
    bash: /usr/bin/bash

    hfatsweb01:/root # unset LIBPATH

    hfatsweb01:/root # echo $PATH
    /opt/freeware/bin:/opt/freeware/sbin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14_64/jre/bin:/usr/java14_64/bin:/usr/local/bin:/usr/local/sysadmin/bin:/usr/local/sysadmin/perftools/nmon/NMON12:/opt/csm/bin:/usr/sbin:/usr/bin:/usr/local/bin:/opt/LicenseUseManagement/bin:/usr/opt/ifor/ls/os/aix/bin


    hfatsweb01:/root # rpm -qi libiconv
    Name : libiconv
    Version : 1.16
    Release : 1
    Architecture: ppc
    Install Date: Wed Jul 21 15:23:49 CDT 2021
    Group : System Environment/Libraries
    Size : 2786858
    License : LGPL
    Signature : (none)
    Source RPM : libiconv-1.16-1.src.rpm
    Build Date : Mon Apr 29 03:18:22 CDT 2019
    Build Host : aix51.perzl.org
    URL : http://www.gnu.org/software/libiconv/
    Summary : Character set conversion library, portable iconv implementation
    Description :
    GNU libiconv provides an iconv() implementation for use on systems
    which don't have one or whose implementation cannot convert from/to Unicode.
    It supports all the important encodings in use today.

    The library is available as 32-bit and 64-bit.

    If you are compiling a 32-bit program, no special compiler options are
    needed.

    If you are compiling a 64-bit program, you have to compile and link your
    application with "cc_r -q64" or "gcc -maix64".
    Name : libiconv
    Version : 1.14
    Release : 1
    Architecture: ppc
    Install Date: Mon May 23 07:41:07 CDT 2022
    Group : System Environment/Libraries
    Size : 2715232
    License : LGPL
    Signature : (none)
    Source RPM : libiconv-1.14-1.src.rpm
    Build Date : Tue Aug 9 15:38:59 CDT 2011
    Build Host : aix51.perzl.org
    URL : http://www.gnu.org/software/libiconv/
    Summary : Character set conversion library, portable iconv implementation
    Description :
    GNU libiconv provides an iconv() implementation for use on systems
    which don't have one or whose implementation cannot convert from/to Unicode.
    It supports all the important encodings in use today.

    The library is available as 32-bit and 64-bit.

    If you are compiling a 32-bit program, no special compiler options are
    needed.

    If you are compiling a 64-bit program, you have to compile and link your
    application with "cc -q64" or "gcc -maix64".
    hfatsweb01:/root #

    hfatsweb01:/root # rpm -qi bash
    Name : bash
    Version : 5.1.4
    Release : 2
    Architecture: ppc
    Install Date: Wed Sep 1 09:12:39 CDT 2021
    Group : System Environment/Shells
    Size : 9488635
    License : GPLv3+
    Signature : (none)
    Source RPM : bash-5.1.4-2.src.rpm
    Build Date : Fri Aug 13 03:33:12 CDT 2021
    Build Host : pokndd10.pok.stglabs.ibm.com
    Packager : IBM AIX Toolbox <https://ibm.biz/AIXToolbox>
    URL : http://www.gnu.org/software/bash
    Bug URL : https://ibm.biz/aixoss_forum
    Summary : The GNU Bourne Again shell (bash) version 5.1.4
    Description :
    The GNU Bourne Again shell (Bash) is a shell or command language
    interpreter that is compatible with the Bourne shell (sh). Bash
    incorporates useful features from the Korn shell (ksh) and the C shell
    (csh). Most sh scripts can be run by bash without modification. This
    package (bash) contains bash version 5.1.4.

    There are 32bit and 64bit binary versions available for bash

    In this release, process substitution is not completely working. The output
    of a command might not be redirected correctly when using <(cmd) or >(cmd).
    hfatsweb01:/root #

    hfatsweb01:/root # rpm -qa |sort
    AIX-rpm-7.1.5.33-13.ppc
    atk-1.12.3-2.ppc
    bash-5.1.4-2.ppc
    bzip2-1.0.8-2.ppc
    ca-certificates-2016.10.7-2.ppc
    cairo-1.8.8-1.ppc
    curl-7.52.1-1.ppc
    db-5.3.28-1.ppc
    expat-2.2.9-2.ppc
    fontconfig-2.4.2-1.ppc
    freetype2-2.3.9-1.ppc
    gdbm-1.19-1.ppc
    gettext-0.20.2-1.ppc
    glib2-2.56.1-3.ppc
    gtk2-2.10.6-4.ppc
    info-6.7-1.ppc
    libffi-3.2.1-3.ppc
    libgcc-8-1.ppc
    libgcc8-8.3.0-6.ppc
    libgomp-8-1.ppc
    libgomp8-8.3.0-4.ppc
    libiconv-1.14-1.ppc
    libiconv-1.16-1.ppc
    libjpeg-6b-6.ppc
    libpng-1.2.32-2.ppc
    libstdc++-8-1.ppc
    libstdc++8-8.3.0-6.ppc
    libtextstyle-0.20.2-1.ppc
    libtiff-3.8.2-1.ppc
    libunistring-0.9.10-1.ppc
    libxml2-2.9.10-1.ppc
    lpar2rrd-agent-5.05-2.ppc
    ncurses-6.2-2.ppc
    openssl-0.9.7d-2.ppc
    openssl-devel-0.9.7d-2.ppc
    openssl-doc-0.9.7d-2.ppc
    pango-1.14.5-4.ppc
    pixman-0.12.0-3.ppc
    pysqlite-1.1.7-2.ppc
    python-2.7.18-3.ppc
    python-devel-2.7.18-3.ppc
    python-iniparse-0.4-1.noarch
    python-pycurl-7.19.3-1.ppc
    python-tools-2.7.18-3.ppc
    python-urlgrabber-3.10.1-1.noarch
    readline-8.1-1.ppc
    sqlite-3.35.5-1.ppc
    swiagent-2020.2.6.20131-b5170e0.ppc
    unzip-5.51-1.ppc
    vim-common-8.1.2424-1.ppc
    vim-enhanced-8.1.2424-1.ppc
    vnc-3.3.3r2-6.ppc
    xcursor-1.1.7-3.ppc
    xft-2.1.6-5.ppc
    xrender-0.9.1-3.ppc
    xz-libs-5.2.5-1.ppc
    yum-3.4.3-7.noarch
    yum-metadata-parser-1.1.4-2.ppc
    zip-2.3-3.ppc
    zlib-1.2.11-2.ppc
    hfatsweb01:/root #


    Pleas help us to fix the issue.

    Thanks,
    HD Team







    ------------------------------
    Harley AIX
    ------------------------------


  • 2.  RE: bash installation issue, not showing version after bash installed

    Posted Tue May 24, 2022 05:22 AM
    Hi Harley,

    As mentioned before in your environment you have RPMs installed from other sources and hence you are seeing all these problem.
    Please install on a clean AIX system. 
    In this case libiconv is from Perzl and that is not working with bash from AIX toolbox.

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 3.  RE: bash installation issue, not showing version after bash installed

    Posted Tue May 24, 2022 10:21 AM
    Hi,
    I remove the Perzl libiconv and reinstalled downloaded one from aix toolbox. After that it is showing version of bash fine. 
    But now, in my another system, I get below error when I tried to install bash in another systems,

    hfatwastrn01:/tmp # rpm -qa bash
    hfatwastrn01:/tmp #
    hfatwastrn01:/tmp #
    hfatwastrn01:/tmp # rpm -qa libiconv
    libiconv-1.15-1.ppc
    hfatwastrn01:/tmp #
    hfatwastrn01:/tmp #
    hfatwastrn01:/tmp # rpm -qa gettext
    gettext-0.19.7-1.ppc
    hfatwastrn01:/tmp #


    hfatwastrn01:/tmp # rpm -ivh bash-5.1.4-2.aix6.1.ppc.rpm
    error: Failed dependencies:
    libiconv >= 1.16 is needed by bash-5.1.4-2.ppc
    hfatwastrn01:/tmp #
    hfatwastrn01:/tmp #
    hfatwastrn01:/tmp #
    hfatwastrn01:/tmp # rpm --reinstall libiconv-1.16-1.aix6.1.ppc.rpm
    error: Failed dependencies:
    gettext >= 0.19.8.1-1 is needed by libiconv-1.16-1.ppc
    hfatwastrn01:/tmp #
    hfatwastrn01:/tmp #
    hfatwastrn01:/tmp # rpm -qa gettext
    gettext-0.19.7-1.ppc
    hfatwastrn01:/tmp # rpm -Uvh gettext-0.19.8.1-3.aix6.1.ppc.rpm
    error: Failed dependencies:
    libncurses.a(libncurses.so.6) is needed by gettext-0.19.8.1-3.ppc
    hfatwastrn01:/tmp # rpm --reinstall gettext-0.19.8.1-3.aix6.1.ppc.rpm
    error: Failed dependencies:
    libncurses.a(libncurses.so.6) is needed by gettext-0.19.8.1-3.ppc
    hfatwastrn01:/tmp # rpm -qi gettext
    Name : gettext
    Version : 0.19.7
    Release : 1
    Architecture: ppc
    Install Date: Fri Mar 29 06:20:45 2019
    Group : Development/Tools
    Size : 12602657
    License : GPLv3 and LGPLv2+
    Signature : (none)
    Source RPM : gettext-0.19.7-1.src.rpm
    Build Date : Thu Jun 2 07:02:07 2016
    Build Host : green52.in.ibm.com
    URL : http://www.gnu.org/software/gettext/
    Summary : GNU libraries and utilities for producing multi-lingual messages.
    Description :
    The GNU gettext package provides a set of tools and documentation for
    producing multi-lingual messages in programs. Tools include a set of
    conventions about how programs should be written to support message
    catalogs, a directory and file naming organization for the message
    catalogs, a runtime library which supports the retrieval of translated
    messages, and stand-alone programs for handling the translatable and
    the already translated strings. Gettext provides an easy to use
    library and tools for creating, using, and modifying natural language
    catalogs and is a powerful and simple method for internationalizing
    programs.

    The library is available as 32-bit and 64-bit.
    hfatwastrn01:/tmp #


    hfatwastrn01:/tmp # rpm -qi libiconv-1.15-1.ppc
    Name : libiconv
    Version : 1.15
    Release : 1
    Architecture: ppc
    Install Date: Mon Apr 1 12:49:25 2019
    Group : System Environment/Libraries
    Size : 2802495
    License : LGPL
    Signature : (none)
    Source RPM : libiconv-1.15-1.src.rpm
    Build Date : Thu Feb 2 23:01:06 2017
    Build Host : aix51.perzl.org
    URL : http://www.gnu.org/software/libiconv/
    Summary : Character set conversion library, portable iconv implementation
    Description :
    GNU libiconv provides an iconv() implementation for use on systems
    which don't have one or whose implementation cannot convert from/to Unicode.
    It supports all the important encodings in use today.

    The library is available as 32-bit and 64-bit.

    If you are compiling a 32-bit program, no special compiler options are
    needed.

    If you are compiling a 64-bit program, you have to compile and link your
    application with "cc_r -q64" or "gcc -maix64".
    hfatwastrn01:/tmp #

    Thanks,
    HD Team

    ------------------------------
    Harley AIX
    ------------------------------



  • 4.  RE: bash installation issue, not showing version after bash installed

    Posted Tue May 24, 2022 11:48 AM
    Hello
    As we have explained in previous posts, you have conflicting packages.

    Note: 
    Signature : (none)
    Source RPM : libiconv-1.15-1.src.rpm
    Build Date : Thu Feb 2 23:01:06 2017
    Build Host : aix51.perzl.org

    You will continue to have issues as long as you have non-Toolbox packages installed which conflict with AIX packages.
    I recommend that you start with a clean system, and use DNF to manage package dependencies.

    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------



  • 5.  RE: bash installation issue, not showing version after bash installed

    Posted Tue May 24, 2022 02:30 PM
    Hi, 
    So for now, can we remove Perzl libiconv-1.15-1.ppc and install libiconv-1.16-1.aix6.1.ppc.rpm from aix toolbox? Or after remove old libiconv and install new from aix toolbox will ask for similar dependency about gettext and libncurses.a ?
    Thanks,
    HD Team

    ------------------------------
    Harley AIX
    ------------------------------



  • 6.  RE: bash installation issue, not showing version after bash installed

    Posted 25 days ago
    Edited by SANKET RATHI 25 days ago
    Hi Harley,
    It is really hard for us to tell because we do not know your environment and do not know why did you install these packages from Perzl site.
    What we recommend is to install packages from AIX toolbox on a clean AIX ? Right now we are seeing issues with some of the packages installed on the system
    but it is possible there are more and we see new issues. So resolving one one package is tough and results can be uncertain (because of other packages installed)
    Our recommendation is to start on a clean AIX system with dnf.

    ------------------------------
    SANKET RATHI
    ------------------------------