AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 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 Mon November 05, 2018 12:52 AM

    Originally posted by: shahmeer


     I am trying to install DBI module for aix. Perl Makefile.PL runs okay but when I run 'make' after that it gives the following 'xlc' error. I have xlc installed on my machine.

     

    xlc_r -q32 -c    -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -qlanglvl=extended -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong -O    -DVERSION=\"1.642\"  -DXS_VERSION=\"1.642\"  "-I/usr/opt/perl5/lib/5.10.1/aix-thread-multi/CORE"   Perl.c
    /bin/sh: xlc_r:  not found.
    make: 1254-004 The error code from the last command is 127.

     

    XLC Compiler Command

    bash-4.2# lslpp -l | grep -i xlc
      xlC.aix61.rte             12.1.0.0  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         12.1.0.0  COMMITTED  IBM XL C++ Runtime
      xlC.rte                   12.1.0.0  COMMITTED  IBM XL C++ Runtime for AIX 
      xlC.sup.aix50.rte          9.0.0.1  COMMITTED  XL C/C++ Runtime for AIX 5.2

     

    Any help would be appreciated.

     

     



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

    Posted Mon November 05, 2018 01:25 AM

    Originally posted by: AyappanP


    You need to set the PATH variable. xlc will be in /usr/vac/bin.

    So set PATH accordingly (ie., export PATH=/usr/vac/bin:$PATH)