The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Perl Module Help suprcool Shell Programming and Scripting 7 07-25-2008 02:14 AM
Perl module question hankooknara Shell Programming and Scripting 3 07-08-2007 08:26 AM
help with perl module installation sabyasm UNIX for Advanced & Expert Users 2 01-04-2007 09:13 AM
perl module installation problems... experts advice needed,... sekar sundaram Shell Programming and Scripting 4 12-11-2005 08:24 PM
Replace Perl Module name in all Perl scripts rahulrathod Shell Programming and Scripting 2 12-02-2005 01:00 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-04-2008
surjithss surjithss is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 11
Perl Module installation

Hi All,
I am failry new to Perl.I am trying to install a Perl module (Filesys::df.pm) in an IBM AIX5.3 server.But I could not succeed in that.I am getting the following error:


abcd3dev# make
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=\"0.92\" -DXS_VERSION=\"0.92\" "-I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE" Df.c
/bin/sh: cc_r: not found.
make: 1254-004 The error code from the last command is 127.
Stop.

Could anybody please help in this regards.Any help will be highly appreciated.
  #2 (permalink)  
Old 08-04-2008
ynilesh's Avatar
ynilesh ynilesh is offline
Registered User
  
 

Join Date: Oct 2007
Location: Bangalore, India.
Posts: 222
You have one more option to install perl module

Code:
 perl -MCPAN -e 'shell'

but you'll need to configure the CPAN module. If you've never done this, it's really simple.

- nilesh
  #3 (permalink)  
Old 08-04-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
Does the file have a Makefile.PL? Did you run it before running make?
  #4 (permalink)  
Old 08-04-2008
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
cc_r seems to be like a C compiler executable. Does the compiler exist on your system? You need to use the same C compiler used to compile perl on your machine. Run 'perl -V' for hints on the compiler information.
  #5 (permalink)  
Old 08-05-2008
surjithss surjithss is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 11
I configured cpan module,then I tried to install.But the following error is getting:

cpan> force install Filesys:: Df
Warning: Cannot install Filesys:: Df, don't know what it is.
Try the command

i /Filesys:: Df/

to find objects with matching identifiers.

********************************************************

I tried to first perl makefile.PL, it showed the following

abcd3dev# cd Filesys-Df-0.92
abcd3dev# perl Makefile.PL
OS = aix
Checking for statvfs .....
d_statvfs is defined.
i_sysstatvfs is defined.
Building with statvfs ....
Writing Makefile for Filesys:: Df

then only I tried make.

*******************************************************

I could see that ,in the server it is the same compiler using for Perl as well.After giving the command Perl -V


Compiler:
cc='cc_r', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong',



Could anybody,please shed some lights on this ?
  #6 (permalink)  
Old 08-05-2008
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
Running "make" after perl Makefile.PL, is the error message the same as what you first posted? Is "cc_r" on your PATH?
  #7 (permalink)  
Old 08-08-2008
surjithss surjithss is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 11
Hi All,
Thanks for your efforts to help me in regarding to Perl module installation.I have resolved the issue by installing gcc compiler in the server.As you have mentioned about the cc_r complier,it was due to that only,I was not able to install the module.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:13 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0