PDA

View Full Version : CPAN problems



navilon
April 11th, 2006, 02:30 AM
Can anyone help? Almost any module i try to get from cpan i get the following error:


Running make for A/AU/AUTRIJUS/Module-Signature-0.53.tar.gz
Is already unwrapped into directory /home/media/.cpan/build/Module-Signature-0.53

CPAN.pm: Going to build A/AU/AUTRIJUS/Module-Signature-0.53.tar.gz

-- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

3david
April 11th, 2006, 11:54 AM
I'm having the same problem.

johnnymac
April 11th, 2006, 09:25 PM
make sure you upgrade your CPAN::Bundle

3david
April 12th, 2006, 12:51 AM
tried that with:


$ cpan
cpan> install Bundle::CPAN


but i get the same error messages

quirpy
May 2nd, 2006, 01:51 PM
I get the same error, cannot seem to find an answer in this forum :-(

3david
May 2nd, 2006, 02:14 PM
Run cpan with sudo, and then it should work (worked for me)

quirpy
May 2nd, 2006, 03:13 PM
I was just trying that out as you posted :-)
I read up on 'sudo' here:
https://wiki.ubuntu.com/RootSudo

then entered:
> sudo perl -MCPAN -e shell

you'll be asked to enter your password

then entered:
cpan> install Bundle::CPAN

it cruised along, no problems.
every other module I installed after this went fine.

so it's all about permissions...

ewelin
June 21st, 2006, 05:06 AM
I'm having this same problem and tried using sudo with no success... any other ideas?

Zed
June 24th, 2006, 01:39 AM
try
sudo apt-get install build-essential

I'm guessing you're getting tripped up for want of the GNU make command.

md81544
June 26th, 2006, 10:00 PM
I had exactly the same issues as described, and it wasn't because of a lack of GNU make... it finally worked when I ran 'cpan' AS ROOT - not as a sudo command.

If you haven't set a root password, you can become root by typing 'sudo su -'

cascader
April 9th, 2007, 02:13 PM
Thanks, quirpy, after problems getting modules and bundles sorted, what finally pulled it together was the reading you did, as quoted;

"I read up on 'sudo' here:
https://wiki.ubuntu.com/RootSudo" (https://wiki.ubuntu.com/RootSudo)
and of course, I

"then entered:
> sudo perl -MCPAN -e shell"
Appreciate benefiting from your research,


(http://ubuntuforums.org/newreply.php?do=newreply&p=976709)

phossal
April 9th, 2007, 07:06 PM
This same error is common when the cpan config is not properly set. "Man" it, and don't forget "commit"

cascader
April 10th, 2007, 10:27 AM
Thanks again, this time to phossal . . . I am afraid in my ignorance I have never issued a 'commit' command . . . this is great for my learning curve . . .

cascader
April 11th, 2007, 12:11 AM
And again, thanks md81544, yep, had to be root, and I think what I just did was as quirpy suggested . . . mind you, I haven't tested the software yet, have been paying attention to her indoors for a couple of days, itching to get back 'puter-wise . . . ;)

cascader
April 11th, 2007, 12:13 AM
I just answered the wrong thread . . . doh !

phossal
April 11th, 2007, 12:38 AM
Thanks again, this time to phossal . . . I am afraid in my ignorance I have never issued a 'commit' command . . . this is great for my learning curve . . .

It's not intuitive to issue commit. It's retarded. Another Ubuntu Member and I spent a couple hours figuring that one out. Good example of: RTFM!

lol Glad my pain saved you some.

Regards!

servant74
August 16th, 2007, 04:06 PM
I am getting the same problem running as root after doing this:

sudo su -
apt-get install build-essential
cpan
install Bundle::CPAN

:confused:

mättu
August 16th, 2007, 07:05 PM
sudo apt-get install build-essential

to make sure having all make tools installed

sudo -i

to get a root terminal

cpan

to start cpan shell

answer questions manually!
read carefully ;-) remind it's perl, so that's what you do, not just click ok..
if you see text about "commit" and some such, answer "yes" instead of default "no".

to be completely safe, in cpan-shell:

install Bundle::CPAN

and to get full joy, read the message about Readline support in the cpan-shell. I don't explain this in details, because it's merely for fun.

have your appropriate amount of fun
:m)

Devinder
August 22nd, 2007, 05:00 AM
HI Can someone help

When i run CPAN i get this

devinder@devinder-desktop:~$ sudo cpan

CPAN: File::HomeDir loaded ok (v0.65)
Constant subroutine __USE_POSIX undefined at /usr/lib/perl/5.8/features.ph line 8.
Constant subroutine __USE_POSIX2 undefined at /usr/lib/perl/5.8/features.ph line 9.
Constant subroutine __USE_POSIX199309 undefined at /usr/lib/perl/5.8/features.ph line 10.
Constant subroutine __USE_POSIX199506 undefined at /usr/lib/perl/5.8/features.ph line 11.
Constant subroutine __USE_XOPEN undefined at /usr/lib/perl/5.8/features.ph line 12.
Constant subroutine __USE_XOPEN_EXTENDED undefined at /usr/lib/perl/5.8/features.ph line 13.
Constant subroutine __USE_UNIX98 undefined at /usr/lib/perl/5.8/features.ph line 14.
Constant subroutine __USE_LARGEFILE undefined at /usr/lib/perl/5.8/features.ph line 16.
Constant subroutine __USE_LARGEFILE64 undefined at /usr/lib/perl/5.8/features.ph line 17.
Constant subroutine __USE_FILE_OFFSET64 undefined at /usr/lib/perl/5.8/features.ph line 18.
Constant subroutine __USE_BSD undefined at /usr/lib/perl/5.8/features.ph line 19.
Constant subroutine __USE_SVID undefined at /usr/lib/perl/5.8/features.ph line 20.
Constant subroutine __USE_MISC undefined at /usr/lib/perl/5.8/features.ph line 21.
Constant subroutine __USE_GNU undefined at /usr/lib/perl/5.8/features.ph line 23.
Constant subroutine __USE_REENTRANT undefined at /usr/lib/perl/5.8/features.ph line 24.
Constant subroutine _POSIX_SOURCE undefined at /usr/lib/perl/5.8/features.ph line 49.
Constant subroutine _POSIX_C_SOURCE undefined at /usr/lib/perl/5.8/features.ph line 51.
Constant subroutine _XOPEN_SOURCE undefined at /usr/lib/perl/5.8/features.ph line 53.
Constant subroutine _XOPEN_SOURCE_EXTENDED undefined at /usr/lib/perl/5.8/features.ph line 55.
Constant subroutine _LARGEFILE64_SOURCE undefined at /usr/lib/perl/5.8/features.ph line 57.
Constant subroutine _LARGEFILE_SOURCE undefined at /usr/lib/perl/5.8/features.ph line 104.
Constant subroutine __USE_ISOC99 undefined at /usr/lib/perl/5.8/features.ph line 108.
Constant subroutine __GNU_LIBRARY__ undefined at /usr/lib/perl/5.8/features.ph line 156.

cpan shell -- CPAN exploration and modules installation (v1.9102)
ReadLine support enabled

Can't ioctl TIOCGETP: Invalid argument
Consider installing Term::ReadKey from CPAN site nearby
at http://www.perl.com/CPAN
Or use
perl -MCPAN -e shell
to reach CPAN. Falling back to 'stty'.
If you do not want to see this warning, set PERL_READLINE_NOWARN
in your environment.

mättu
August 22nd, 2007, 01:39 PM
There we go on a fresh ubuntu-7.04 (feisty):

I repoduced your error by *not* installing build-essential and *not* commiting values to file.

sudo cpan gives your error message.


I then tested this fix for you:


sudo apt-get install build-essential


sudo cpan

The first question is:


Normally CPAN.pm keeps config variables in memory and changes need to
be saved in a separate 'o conf commit' command to make them permanent
between sessions. If you set the 'auto_commit' option to true, changes
to a config variable are always automatically committed to disk.

Always commit changes to config variables to disk? [no] yes

(See my "yes" instead of dedault "no" !)
The rest of questions may be answered default by pressing enter.

Then again you will see the old error:

cpan shell -- CPAN exploration and modules installation (v1.9102)
ReadLine support enabled

Can't ioctl TIOCGETP: Invalid argument
Consider installing Term::ReadKey from CPAN site nearby
at http://www.perl.com/CPAN
Or use
perl -MCPAN -e shell
to reach CPAN. Falling back to 'stty'.
If you do not want to see this warning, set PERL_READLINE_NOWARN
in your environment.


to fix this, do:


cpan[1]> exit

sudo cpan

(You should not be asked again to answer all the setup-questions)


cpan[1]> install Bundle::CPAN

(long list of messages, prompt for some dependencies, please intall them all by pressing enter)

At the end you should get:
...
Has already been tested successfully
Running make install
Already done

cpan[2]>

That's it. Works?

have fun
:m)

tr333
August 26th, 2007, 11:31 AM
I would consider installing and using the CPANPLUS (http://search.cpan.org/dist/CPANPLUS/lib/CPANPLUS.pm) shell instead of the normal CPAN shell. It seems to be much better at handling dependency problems for me, and also allows automated test reporting via the Test::Reporter module when a module install passes or fails. It can be installed with the Bundle::CPANPLUS module or the CPANPLUS module.

Al legory
January 16th, 2008, 08:33 AM
Thanks for the help with the apt-get build-essential.

Does the build-essential package setup the C compiler and make utilities?

Thanks

mättu
January 16th, 2008, 03:29 PM
open synaptic
find build-essential
open "properties"
choose "dependencies"
Here you should see what packages it depends on (means they are installed when installing build-essential)

on my system this includes:
libc-dev
gcc
g++
make
dpkg-dev

cheers
:m)

tr333
January 21st, 2008, 02:36 PM
Thanks for the help with the apt-get build-essential.

Does the build-essential package setup the C compiler and make utilities?

Thanks

If you're doing C programming, you will want to install the manpages-dev package to get all the C library man pages (printf/scanf/etc) in section 3 of the manual (eg. 'man 3 printf'). I also install automake and autoconf on my system in addition to build-essential, but that depends on whether you need those tools.