AIX

AIX

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


#Power
 View Only

Issue compiling perl on AIX

  • 1.  Issue compiling perl on AIX

    Posted Fri July 15, 2011 11:08 AM

    Originally posted by: mmjasso


    Hello, I'm trying to build an application server on aix6.1 using pkgsrc as package repository, I\m able to install perl without problems, but after installing apache22 or mysql5-client perl outputs the next error:

    bash-3.2# perl
    exec(): 0509-036 Cannot load program perl because of the following errors:
    0509-150 Dependent module libperl.a(libperl.o) could not be loaded.
    0509-022 Cannot load module libperl.a(libperl.o).
    0509-026 System error: A file or directory in the path name does not exist.

    If i just set var LIBPATH= /usr/pkg/lib/perl5/5.12.0/powerpc-aix-thread-multi/CORE
    perl works, I can see some warning on my compilations logs:
    gcc -maix32 -Wl,-R/usr/pkg/lib -Wl,-R/usr/pkg/lib/perl5/5.12.0/powerpc-aix-thread-multi/CORE -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -Wl,-brtl -Wl,-bdynamic -Wl,-b32 -Wl,-bmaxdata:0x80000000 -o miniperl_nonshr miniperlmain.o opmini.o perlmini.o libperl_nonshr.a -lm -lcrypt -ldl -lnsl -lbind -lpthreads -lc -lpthread -lrt
    ld: 0706-027 The -R /usr/pkg/lib flag is ignored.
    ld: 0706-027 The -R /usr/pkg/lib/perl5/5.12.0/powerpc-aix-thread-multi/CORE flag is ignored.
    Thanks for your help!
    #AIX-Forum