AIX

AIX

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


#Power
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  [HOWTO request] perlcc using gcc

    Posted 04/24/07 10:24 AM

    Originally posted by: SystemAdmin


    How can perl %Config be altered at runtime?

    We have some perl-5.6 script that is used as glue to integrate
    several other c/c++ executables compiled with gcc/g++ -pedantic -std=c99/c++98 .
    We would like to use perlcc to translate our script to c99 code,
    that can be added into this suite.
    This would allow us to remove the requirement for perl on the target hosts.

    Our installation of perl (managed by an outside firm,
    and therefore difficult to recompile) sets $Config{cc} to cc_r,
    rather than gcc.

    Without recompiling perl, how can $Config{cc} be set to "gcc" at runtime,
    to direct perlcc to use gcc and not cc_r.

    TIA,
    #AIX-Forum


  • 2.  PATH

    Posted 05/15/07 05:51 AM

    Originally posted by: nagger


    I would change the PATH to include your own directory for bin files and in there add cc_r and link (ln) that to gcc.
    #AIX-Forum


  • 3.  Re: PATH

    Posted 06/08/07 10:47 AM

    Originally posted by: SystemAdmin


    I'm trying to do something similar to the OP. I tried the suggestion to link cc_r to gcc, but it didn't work.

    Are there any other possible solutions?

    What does one purchase from IBM to get cc_r? XL C/C++?

    #AIX-Forum


  • 4.  Re: [HOWTO request] perlcc using gcc

    Posted 06/12/07 06:59 AM

    Originally posted by: niella


    If you are looking for a bundling solution (i.e. for proprietrary/uncommon modules), you should consider using PAR (perl archiver). See http://par.perl.org.

    Regards,
    Niel
    #AIX-Forum