Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power


#Servers
#Opensource
 View Only
  • 1.  AIX 7.1 git clone fatal error

    Posted 11/22/21 04:31 AM
    I'm trying to install git on AIX on a closed network.

    After resolving the necessary dependencies, I installed it with rpm.

    However, when I clone git, I get the following error:


    $ sudo git clone http://~~

    Cloning into '~~'...

    Username for '~~':

    Password for '~~':

    remote: Enumerating objects: 755, done.

    remote: Counting objects: 100% (755/755), done.

    remote: Compressing objects: 100% (500/500), done.

    remote: Total 755 (delta 236), reused 686 (delta 183), pack-reused 0

    Receiving objects: 100% (755/755), 31.54 MiB | 11.34 MiB/s, done.

    Resolving deltas: 100% (236/236), done.

    fatal: could not open '/dev/null' for reading and writing: A system call received a parameter that is not valid.

    $ oslevel -s

    7100-03-08-1642

     

    $ lslpp -l | grep -i rpm

      rpm.rte                   4.13.0.3  COMMITTED  RPM Package Manager


    $ rpm -qa

    expect-5.42.1-3.ppc

    sudo-1.9.5-3.ppc

    tk-8.4.7-3.ppc

    glib2-2.48.1-2.ppc

    perl-5.30.1-1.ppc

    perl5.34-5.34.0-1.ppc

    sqlite-libs-3.34.1-1.ppc

    bash-5.1.8-1.ppc

    vim-common-8.2-1.ppc

    less-481-1.ppc

    gmp-6.2.1-1.ppc

    vim-enhanced-8.2-1.ppc

    AIX-rpm-7.1.3.45-10.ppc

    cpio-2.13-1.ppc

    zlib-1.2.11-6.ppc

    git-core-doc-2.33.1-2.noarch

    bzip2-1.0.8-4.ppc

    gdbm-1.22-1.ppc

    libffi-3.2.1-2.ppc

    libgcc10-10.3.0-6.ppc

    libssh2-1.10.0-1.ppc

    libstdc++10-10.3.0-6.ppc

    libunistring-0.9.10-4.ppc

    openldap-2.4.59-1.ppc

    xz-libs-5.2.5-1.ppc

    tcl-8.4.7-3.ppc

    libstdc++8-8.5.0-2.ppc

    db-5.3.28-1.ppc

    libxml2-2.9.10-1.ppc

    expat-2.4.1-1.ppc

    sqlite-3.34.1-1.ppc

    libcurl-7.80.0-1.ppc

    python3-3.8.6-2.ppc

    gettext-0.21-1.ppc

    git-core-2.33.1-2.ppc

    git-2.33.1-2.ppc

    cyrus-sasl-2.1.27-3.ppc

    gdbm-libs-1.22-1.ppc

    info-6.8-3.ppc

    libgcc-10-1.ppc

    libiconv-1.16-5.ppc

    libstdc++-10-1.ppc

    libtextstyle-0.21-1.ppc

    ncurses-6.3-1.ppc

    readline-8.0.4-1.ppc





    There was no problem until git-core installation, and there is nothing other than a forced installation because a perl dependency error occurred when installing git.

    Actual perl version 5.30 is installed, so I proceeded with the nodeps option.


    $ sudo rpm -ivh git-2.33.1-2.aix7.1.ppc.rpm

    error: Failed dependencies:

            perl(perl) >= 5.30.0 is needed by git-2.33.1-2.ppc

     

     

     

    $ perl -v

    perl: warning: Setting locale failed.

    perl: warning: Please check that your locale settings:

            LC_ALL = (unset),

            LC_CTYPE = "en_US",

            LANG = "en_US.UTF-8"

        are supported and installed on your system.

    perl: warning: Falling back to the standard locale ("C").

     

    This is perl 5, version 30, subversion 1 (v5.30.1) built for ppc-aix-thread-multi-64all

     

    Copyright 1987-2019, Larry Wall

     

    Perl may be copied only under the terms of either the Artistic License or the

    GNU General Public License, which may be found in the Perl 5 source kit.

     

    Complete documentation for Perl, including FAQ lists, should be found on

    this system using "man perl" or "perldoc perl".  If you have access to the

    Internet, point your browser at http://www.perl.org/, the Perl Home Page.

     

     


    I can't even guess the cause.

    Any assistance/suggestions are much appreciated.




    ------------------------------
    gyurim Lee
    ------------------------------

    #AIXOpenSource


  • 2.  RE: AIX 7.1 git clone fatal error

    Posted 11/22/21 07:31 AM
    Please check whether you have permissions to write to the directory.

    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: AIX 7.1 git clone fatal error

    Posted 11/22/21 09:07 PM
    Hi Ayppan P. Thanks for the reply.

    Are you mean the directory where I do a git clone?

    I gave 777 permission to that directory, and I confirmed that both dev and null have permission.

    thanks.

    ------------------------------
    gyurim Lee
    ------------------------------



  • 4.  RE: AIX 7.1 git clone fatal error

    Posted 11/26/21 02:06 AM
    From the error message, it looks like it's not a problem with the git software itself. 
    After resolving remote git repo, it is about to write it to the disk and that is where it failed (some permission or space issue).
    Please check it in another machine or as a root user.

    ------------------------------
    Ayappan P
    ------------------------------



  • 5.  RE: AIX 7.1 git clone fatal error

    Posted 11/29/21 01:41 AM
    Afterwards, I checked several parts, but couldn't find anything suspicious.

    Fortunately, after deleting the existing version and installing git-core-2.25 version, git clone works fine.

    I haven't identified and solved the root cause, but I'm sharing this because it's good enough for me.

    Thanks for the reply.

    Similarly, I'm trying to install git on AIX 6.1, but I'm running into another problem. This will be dealt with in another discussion.

    ------------------------------
    gyurim Lee
    ------------------------------