Unix Technical Forum

Perl on Aix 5.2

This is a discussion on Perl on Aix 5.2 within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hello. I have perl 5.8 from aix 5.2 box. I need install several modules on cpan but i get ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 09:08 AM
jatetu
 
Posts: n/a
Default Perl on Aix 5.2

Hello.
I have perl 5.8 from aix 5.2 box. I need install several modules on cpan but
i get errors similar to:
# perl -MCPAN -e shell
install Digest::SHA1

Writing Makefile for Digest::SHA1
cp SHA1.pm blib/lib/Digest/SHA1.pm
/usr/bin/perl -e 'use ExtUtils::Mksymlists; Mksymlists("NAME" =>
"Digest::SHA1", "DL_FUNCS" => { }, "FUNCLIST" => [], "DL_VARS" => []);'
/usr/bin/perl /usr/opt/perl5/lib/5.8.0/ExtUtils/xsubpp -typemap
/usr/opt/perl5/lib/5.8.0/ExtUtils/typemap -typemap typemap SHA1.xs >
SHA1.xsc && mv SHA1.xsc SHA1.c
cc_r -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong
-O -DVERSION=\"2.11\" -DXS_VERSION=\"2.11\"
"-I/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE" SHA1.c
/bin/sh: cc_r: not found.
make: 1254-004 Error code of the last command is 127.
Stopped.
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

I only use gcc instead cc.

I think i cannot uninstall perl and install it from another site(bull or
ucla). It's true.

Any idea ?

Thanks.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 09:08 AM
Claudiu Costin
 
Posts: n/a
Default Re: Perl on Aix 5.2

jatetu wrote:

> Hello.
> I have perl 5.8 from aix 5.2 box. I need install several modules on cpan
> but i get errors similar to:
> # perl -MCPAN -e shell
> install Digest::SHA1
>
> Writing Makefile for Digest::SHA1
> cp SHA1.pm blib/lib/Digest/SHA1.pm
> /usr/bin/perl -e 'use ExtUtils::Mksymlists; Mksymlists("NAME" =>
> "Digest::SHA1", "DL_FUNCS" => { }, "FUNCLIST" => [], "DL_VARS" => []);'
> /usr/bin/perl /usr/opt/perl5/lib/5.8.0/ExtUtils/xsubpp -typemap
> /usr/opt/perl5/lib/5.8.0/ExtUtils/typemap -typemap typemap SHA1.xs >
> SHA1.xsc && mv SHA1.xsc SHA1.c
> cc_r -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
> -qmaxmem=16384
> -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES
> -qlonglong
> -O -DVERSION=\"2.11\" -DXS_VERSION=\"2.11\"
> "-I/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE" SHA1.c
> /bin/sh: cc_r: not found.
> make: 1254-004 Error code of the last command is 127.
> Stopped.
> /usr/bin/make -- NOT OK
> Running make test
> Can't test without successful make
> Running make install
> make had returned bad status, install seems impossible
>
> I only use gcc instead cc.

You may fake installer by using env variables: CC=gcc
I would recommend to not play with these tricks because
you may encounter unexpected results combining native perl (compiled
with Visual Age C I supose) and SOs (DLLs) (compiled with GCC).


>
> I think i cannot uninstall perl and install it from another site(bull or
> ucla). It's true.


You can install another Perl in some other dir (i.e. /usr/local/perl).

>
> Any idea ?
>
> Thanks.


--
kind regards,
Claudiu Costin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:47 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com