Discussion:
CPAN Module Installation problem
(too old to reply)
Ajeet Kumar
2010-03-24 13:43:21 UTC
Permalink
From: Ajeet Kumar
Sent: Wednesday, March 24, 2010 7:12 PM
To: 'cpan-***@perl.org!'
Subject: CPAN Module Installation problem


Hello Everybody..

I have problem regarding perl module installation.

I had downloaded a perl module from CPAN,while installation MakeFile.PL goes fine, but "make" creates problem, it reports me error about saying that "/usr/ucb/cc- Language optional software package not installed" , however i have gcc installed in my system(Solaris), Now i modified the environment to use gcc instead of cc, but again it reports error, something like below..

cp t1.pl blib/lib/Acme/t1.pl

cp Damn.pm blib/lib/Acme/Damn.pm

/usr/bin/perl /usr/local/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /us

+r/local/lib/perl5/5.8.8/ExtUtils/typemap Damn.xs > Damn.xsc && mv Da

+mn.xsc Damn.c

cc -c -I. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -I/

+usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_U

+SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_U

+SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_U

+SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_U

+SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_U

+SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_U

+SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_U

+SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_U

+SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_U

+SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_U

+SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_U

+SE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -xO3 -xspace -xildoff -DVERS

+ION=\"0.04\" -DXS_VERSION=\"0.04\" -KPIC "-I/usr/local/lib/perl5/5.8

+.8/sun4-solaris/CORE" Damn.c

ucbcc: unrecognized option `-Xs'

ucbcc: unrecognized option `-KPIC'

ucbcc: language ildoff not recognized

ucbcc: Damn.c: linker input file unused because linking not done

ucbcc: -lucb: linker input file unused because linking not done

ucbcc: -lsocket: linker input file unused because linking not done

ucbcc: -lnsl: linker input file unused because linking not done

ucbcc: -lelf: linker input file unused because linking not done

ucbcc: -laio: linker input file unused because linking not done

Running Mkbootstrap for Acme::Damn ()

chmod 644 Damn.bs

rm -f blib/arch/auto/Acme/Damn/Damn.so

cc -G -L/usr/local/lib -L/usr/lib Damn.o -o blib/arch/auto/Acme/Damn

+/Damn.so \

\



ucbcc: Damn.o: No such file or directory

ucbcc: unrecognized option `-Xs'

*** Error code 1

make: Fatal error: Command failed for target `blib/arch/auto/Acme/Damn

+/Damn.so'



I guess the command line switches supported by "cc" is not supported by "gcc",Please provide any solution...I dont want to install "cc",

I guess without installation also, One can use the perl module, by putting the module file in the same directory. This works for me, except one module "Acme::Damn", in which it says, can not found loadable for "Acme::Damn".... Please have some look into the matter and provide solution...as i can not move with my project without it..

I also tried it to install from CPAN prompt, but that reports me



CPAN: Storable loaded ok

Going to read /opt/home/netboss/.cpan/Metadata

Warning: Found only 0 objects in /opt/home/netboss/.cpan/Metadata

CPAN: LWP::UserAgent loaded ok

Fetching with LWP:

ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz

LWP failed with code[500] message[LWP::Protocol::MyFTP: Bad hostname 'ftp.perl.org']

Fetching with Net::FTP:

ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz



Trying with "/usr/sfw/bin/ncftpget" to get

ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz

ftp.perl.org: unknown host.

ncftpget: cannot open ftp.perl.org: unknown host.



System call "cd /opt/home/netboss/.cpan/sources/authors && /usr/sfw/bin/ncftpget "ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz" "

returned status 1 (wstat 256)

Warning: expected file [/opt/home/netboss/.cpan/sources/authors/01mailrc.txt.gz] doesn't exist



Trying with "/usr/sfw/bin/wget -O -" to get

ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz

--18:49:27-- ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz

=> `-'

Resolving ftp.perl.org... failed: Host not found.



System call "/usr/sfw/bin/wget -O - "ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz" > /opt/home/netboss/.cpan/sources/authors/01mailrc.txt"

returned status 1 (wstat 256)

Warning: expected file [/opt/home/netboss/.cpan/sources/authors/01mailrc.txt.gz] doesn't exist

Issuing "/usr/bin/ftp -n"

ftp.perl.org: unknown host or invalid literal address

Not connected.

Local directory now /opt/home/netboss/.cpan/sources/authors

Not connected.

Not connected.

Not connected.

Not connected.

Not connected.

Not connected.

Bad luck... Still failed!

Can't access URL ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz.



Please check, if the URLs I found in your configuration file () are valid.

The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/'



Could not fetch authors/01mailrc.txt.gz

Fetching with LWP:

ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz

LWP failed with code[500] message[LWP::Protocol::MyFTP: Bad hostname 'ftp.perl.org']

Fetching with Net::FTP:

ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz



Trying with "/usr/sfw/bin/ncftpget" to get

ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz

ftp.perl.org: unknown host.

ncftpget: cannot open ftp.perl.org: unknown host.



System call "cd /opt/home/netboss/.cpan/sources/modules && /usr/sfw/bin/ncftpget "ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz" "

returned status 1 (wstat 256)

Warning: expected file [/opt/home/netboss/.cpan/sources/modules/02packages.details.txt.gz] doesn't exist



Trying with "/usr/sfw/bin/wget -O -" to get

ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz

--18:49:32-- ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz

=> `-'

Resolving ftp.perl.org... failed: Host not found.



System call "/usr/sfw/bin/wget -O - "ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz" > /opt/home/netboss/.cpan/sources/modules/02packages.details.txt"

returned status 1 (wstat 256)

Warning: expected file [/opt/home/netboss/.cpan/sources/modules/02packages.details.txt.gz] doesn't exist

Issuing "/usr/bin/ftp -n"

ftp.perl.org: unknown host or invalid literal address

Not connected.

Local directory now /opt/home/netboss/.cpan/sources/modules

Not connected.

Not connected.

Not connected.

Not connected.

Not connected.

Not connected.

Bad luck... Still failed!

Can't access URL ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz.



Please check, if the URLs I found in your configuration file () are valid.

The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/'



Could not fetch modules/02packages.details.txt.gz

Fetching with LWP:

ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz

LWP failed with code[500] message[LWP::Protocol::MyFTP: Bad hostname 'ftp.perl.org']

Fetching with Net::FTP:

ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz



Trying with "/usr/sfw/bin/ncftpget" to get

ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz

ftp.perl.org: unknown host.

ncftpget: cannot open ftp.perl.org: unknown host.



System call "cd /opt/home/netboss/.cpan/sources/modules && /usr/sfw/bin/ncftpget "ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz" "

returned status 1 (wstat 256)

Warning: expected file [/opt/home/netboss/.cpan/sources/modules/03modlist.data.gz] doesn't exist



Trying with "/usr/sfw/bin/wget -O -" to get

ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz

--18:49:36-- ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz

=> `-'

Resolving ftp.perl.org... failed: Host not found.



System call "/usr/sfw/bin/wget -O - "ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz" > /opt/home/netboss/.cpan/sources/modules/03modlist.data"

returned status 1 (wstat 256)

Warning: expected file [/opt/home/netboss/.cpan/sources/modules/03modlist.data.gz] doesn't exist

Issuing "/usr/bin/ftp -n"

ftp.perl.org: unknown host or invalid literal address

Not connected.

Local directory now /opt/home/netboss/.cpan/sources/modules

Not connected.

Not connected.

Not connected.

Not connected.

Not connected.

Not connected.

Bad luck... Still failed!

Can't access URL ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz.



Please check, if the URLs I found in your configuration file () are valid.

The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/'



Could not fetch modules/03modlist.data.gz

Going to write /opt/home/netboss/.cpan/Metadata

Warning: Cannot install Acme::Damn, don't know what it is.

Try the command



i /Acme::Damn/



to find objects with matching identifiers.





Please Help me with installation....





Thanks in Advance



Thanks & Regards
AJEET KUMAR GUPTA

Trainee-Software Engineer



A R I C E N T



Plot 17 Electronic City Sector 18

Gurgaon 122015 India



Hand Phone +91 9871675405

Extension 3445





________________________________
"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."
Marc Girod
2010-03-24 15:34:12 UTC
Permalink
Hi Ajeet,
Post by Ajeet Kumar
Now i modified the environment to use gcc instead of cc, but again it reports error, something like below..
...
Post by Ajeet Kumar
ucbcc: unrecognized option `-Xs'
You may have gcc installed, but obviously, this is not the version
that the makefile sees first.
So, you $PATH may not be wrong.

There is something weird in this output, and it is that I guess
backslashes have been used instead of forward ones.

I.e. I guess the compiler above is to be found in some relative ucb/cc
path (in fact, there should be a 'bin' somewhere).
The 'ucbcc' result looks like an intemediate 'ucb\cc' was being evaluated.
All this is quite utterly wrong...
One of your tool thought it was running on Windows?

However, "unrecognized option `-Xs'" is a sensible thing for a ucb/cc to say...
So that the (wrong but still) compiler was found.
Something else munged the output afterwards?!

Try to narrow your problem down. Can you compile a hello.c?

Marc
Ajeet Kumar
2010-03-25 06:11:55 UTC
Permalink
Thanks Marc for your reply...yeah Hello.c is working on my system.. I check all of my utility and all of them are working fine, except of that "cc", Is there any binary distributions of perl CPAN modules, I need to install forks.pm and it demands Acme::Damn and Sys::SigAction. However I managed to install SigAction.pm by putting it in same directory where my program resides, but Acme::Damn is creating problem,saying that it can not find the loadable object...

I am seriously screwed up, by installing of this perl module. I can not re-install perl, because this is not my personal system, System is a Solaris Server and belongs to organization and they can not allow me to re-install perl. Also CPAN does not seem to work, says that unable to resolve host name for ftp, just feeling helpless with this issue...

Any any pointer most welcome....

-----Original Message-----
From: Marc Girod [mailto:***@gmail.com]
Sent: Wednesday, March 24, 2010 9:04 PM
To: Ajeet Kumar
Cc: cpan-***@perl.org
Subject: Re: FW: CPAN Module Installation problem

Hi Ajeet,
Post by Ajeet Kumar
Now i modified the environment to use gcc instead of cc, but again it reports error, something like below..
...
Post by Ajeet Kumar
ucbcc: unrecognized option `-Xs'
You may have gcc installed, but obviously, this is not the version
that the makefile sees first.
So, you $PATH may not be wrong.

There is something weird in this output, and it is that I guess
backslashes have been used instead of forward ones.

I.e. I guess the compiler above is to be found in some relative ucb/cc
path (in fact, there should be a 'bin' somewhere).
The 'ucbcc' result looks like an intemediate 'ucb\cc' was being evaluated.
All this is quite utterly wrong...
One of your tool thought it was running on Windows?

However, "unrecognized option `-Xs'" is a sensible thing for a ucb/cc to say...
So that the (wrong but still) compiler was found.
Something else munged the output afterwards?!

Try to narrow your problem down. Can you compile a hello.c?

Marc

"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."
Marc Girod
2010-03-25 08:45:23 UTC
Permalink
Hi,
Post by Ajeet Kumar
Thanks Marc for your reply...yeah Hello.c is working on my system..
OK building with gcc.
But I see that I missed the obvious.
perl will use the same compiler as was used to build it, and from a
config.pm (or similar) file saved at installation time.
Post by Ajeet Kumar
I can not re-install perl, because this is not my personal system
I have always built perl myself, and shared the result, via a ClearCase vob.
So, I don't know what would happen if you managed to get libraries
which would be built with different compilers.
They would anyway have to be link compatible, since the existing perl
will load them.
You may try first to install a minimal module set locally.
There are flags to use with 'perl Makefile.PL', and a PERL5xxx
environment variable to set.
You'll find the details in the man pages/pods.
Post by Ajeet Kumar
Also CPAN does not seem to work, says that unable to resolve host name for ftp,
just feeling helpless with this issue...
That's likely to be a matter of proxy settings.
Again, I don't remember the details from the top of my head...

Marc

Continue reading on narkive:
Loading...