AIX

 View Only
Expand all | Collapse all

make: 1254-004 The error code from the last command is 127

  • 1.  make: 1254-004 The error code from the last command is 127

    Posted Thu February 09, 2023 09:42 AM
    Hi all,
    I am trying to install
    Net::SSLeay module for AIX with CPAN. But I got this result: make: 1254-004 The error code from the last command is 127.
    Any ideas?

    # cpan fforce install Net::SSLeay
    Loading internal logger. Log::Log4perl recommended for better logging
    Reading '/.cpan/Metadata'
    Database was generated on Mon, 23 Jan 2023 16:54:02 GMT
    Fetching with LWP:
    http://www.cpan.org/authors/01mailrc.txt.gz
    Reading '/.cpan/sources/authors/01mailrc.txt.gz'
    ............................................................................DONE
    Fetching with LWP:
    http://www.cpan.org/modules/02packages.details.txt.gz
    Reading '/.cpan/sources/modules/02packages.details.txt.gz'
    Database was generated on Wed, 08 Feb 2023 19:29:02 GMT
    ..............
    New CPAN.pm version (v2.34) available.
    [Currently running version is v2.28]
    You might want to try
    install CPAN
    reload cpan
    to both upgrade CPAN.pm and run the new version without leaving
    the current session.


    ..............................................................DONE
    Fetching with LWP:
    http://www.cpan.org/modules/03modlist.data.gz
    Reading '/.cpan/sources/modules/03modlist.data.gz'
    DONE
    Writing /.cpan/Metadata
    >(error): Could not expand [fforce]. Check the module name.
    >(info): I can suggest names if you install one of Text::Levenshtein::XS, Text::Levenshtein::Damerau::XS, Text::Levenshtein, and Text::Levenshtein::Damerau::PP
    >(info): and you provide the -x option on invocation.
    >(error): Skipping fforce because I couldn't find a matching namespace.
    install is up to date (0.01).
    Running install for module 'Net::SSLeay'
    Checksum for /.cpan/sources/authors/id/C/CH/CHRISN/Net-SSLeay-1.92.tar.gz ok
    'YAML' not installed, will not store persistent state
    Configuring C/CH/CHRISN/Net-SSLeay-1.92.tar.gz with Makefile.PL
    Do you want to run external tests?
    These tests *will* *fail* if you do not have network connectivity. [n] n
    *** Be sure to use the same compiler and options to compile your OpenSSL, perl,
    and Net::SSLeay. Mixing and matching compilers is not supported.
    *** Found OpenSSL-3.0.5 installed in /usr
    Checking if your kit is complete...
    Looks good
    Generating a Unix-style Makefile
    Writing Makefile for Net::SSLeay
    Writing MYMETA.yml and MYMETA.json
    CHRISN/Net-SSLeay-1.92.tar.gz
    /usr/opt/perl5/bin/perl Makefile.PL -- OK
    Running make for C/CH/CHRISN/Net-SSLeay-1.92.tar.gz
    cp lib/Net/SSLeay/Handle.pm blib/lib/Net/SSLeay/Handle.pm
    cp lib/Net/SSLeay.pm blib/lib/Net/SSLeay.pm
    AutoSplitting blib/lib/Net/SSLeay.pm (blib/lib/auto/Net/SSLeay)
    blib/lib/Net/SSLeay.pm: some names are not unique when truncated to 8 characters:
    directory blib/lib/auto/Net/SSLeay:
    do_https3.al, do_https2.al, do_https4.al, do_https.al truncate to do_https
    do_httpx3.al, do_httpx2.al, do_httpx4.al truncate to do_httpx
    get_https.al, get_https3.al, get_https4.al, get_http.al, get_http3.al, get_http4.al, get_httpx.al, get_httpx3.al, get_httpx4.al truncate to get_http
    head_https.al, head_https3.al, head_https4.al, head_http.al, head_http3.al, head_http4.al, head_httpx.al, head_httpx3.al, head_httpx4.al truncate to head_htt
    post_https.al, post_https3.al, post_https4.al, post_http.al, post_http3.al, post_http4.al, post_httpx.al, post_httpx3.al, post_httpx4.al truncate to post_htt
    put_https.al, put_https3.al, put_https4.al, put_http.al, put_http3.al, put_http4.al, put_httpx.al, put_httpx3.al, put_httpx4.al truncate to put_http
    ssl_read_all.al, ssl_read_until.al, ssl_read_CRLF.al truncate to ssl_read
    ssl_write_all.al, ssl_write_CRLF.al truncate to ssl_writ
    tcp_read_all.al, tcp_read_until.al, tcp_read_CRLF.al truncate to tcp_read
    tcp_write_all.al, tcp_write_CRLF.al truncate to tcp_writ
    cp lib/Net/SSLeay.pod blib/lib/Net/SSLeay.pod
    Running Mkbootstrap for SSLeay ()
    chmod 644 "SSLeay.bs"
    "/usr/opt/perl5/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- SSLeay.bs blib/arch/auto/Net/SSLeay/SSLeay.bs 644
    "/usr/opt/perl5/bin/perl" "/usr/opt/perl5/lib/5.34.1/ExtUtils/xsubpp" -typemap '/usr/opt/perl5/lib/5.34.1/ExtUtils/typemap' -typemap '/.cpan/build/Net-SSLeay-1.92-6/typemap' SSLeay.xs > SSLeay.xsc
    mv SSLeay.xsc SSLeay.c
    xlc_r -q32 -c -I"/usr/include" -DNET_SSLEAY_32BIT_INT_PERL -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -qlanglvl=extc99 -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -O -DVERSION=\"1.92\" -DXS_VERSION=\"1.92\" "-I/usr/opt/perl5/lib/5.34.1/aix-thread-multi/CORE" SSLeay.c
    /bin/sh: xlc_r: not found.
    make: 1254-004 The error code from the last command is 127.


    Stop.
    CHRISN/Net-SSLeay-1.92.tar.gz
    /usr/bin/make -- NOT OK



    # lslpp -l | grep -i xlC
    xlC.aix61.rte 16.1.0.10 COMMITTED IBM XL C++ Runtime for AIX 6.1
    xlC.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor
    xlC.msg.en_US.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor
    xlC.msg.en_US.rte 16.1.0.10 COMMITTED IBM XL C++ Runtime
    xlC.rte 16.1.0.10 COMMITTED IBM XL C++ Runtime for AIX
    xlC.sup.aix50.rte 9.0.0.1 COMMITTED XL C/C++ Runtime for AIX 5.2





    ------------------------------
    Eduardo Montes de Oca Sanchez
    IBM
    DIF
    ------------------------------


  • 2.  RE: make: 1254-004 The error code from the last command is 127

    IBM Champion
    Posted Fri February 10, 2023 03:15 AM

    Hello Eduardo,

    1) you have a typo in the command:

    # cpan fforce install Net::SSLeay
    >(error): Could not expand [fforce]. Check the module name.

    2) you should add path to xlc_r into your PATH variable:

    xlc_r -q32 -c -I"/usr/include" -DNET_SSLEAY_32BIT_INT_PERL -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -qlanglvl=extc99 -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -O -DVERSION=\"1.92\" -DXS_VERSION=\"1.92\" "-I/usr/opt/perl5/lib/5.34.1/aix-thread-multi/CORE" SSLeay.c
    /bin/sh: xlc_r: not found.

    3) update your OpenSSL to 3.0.7 if you want to use OpenSSL 3.

    *** Found OpenSSL-3.0.5 installed in /usr


    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------



  • 3.  RE: make: 1254-004 The error code from the last command is 127

    Posted Fri February 10, 2023 11:59 AM

    Hi @Andrey Klyachkin 

    Thanks for the steps you provide. I will try to test them.



    ------------------------------
    Eduardo Montes de Oca Sanchez
    IBM
    DIF
    ------------------------------