Discussion:
Math::Calculus::Expression problem
(too old to reply)
Sendu Bala
2008-01-25 11:24:02 UTC
Permalink
I'm trying to install Math::Calculus::Expression and am coming across a
strange problem in CPAN.

First of all, 'install Math::Calculus::Expression' doesn't work for some
reason, because it can't be found (neither with 'i /Expression/').
Trying with the file path also fails in a bizarre way:


delta % cpan
CPAN: File::HomeDir loaded ok (v0.67)

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



cpan[1]> install JONATHAN/Math-Calculus-Expression-0.2.2.tar.gz
CPAN: Storable loaded ok (v2.15)
Going to read /home/sb/.cpan/Metadata
Database was generated on Thu, 24 Jan 2008 11:30:57 GMT
CPAN: YAML loaded ok (v0.66)
Going to read /home/sb/.cpan/build/
DONE
Found no old builds, restored the state of none
Running make for J/JO/JONATHAN/Math-Calculus-Expression-0.2.2.tar.gz
CPAN: Digest::SHA loaded ok (v5.45)
CPAN: Compress::Zlib loaded ok (v2.008)
Checksum for
/home/sb/.cpan/sources/authors/id/J/JO/JONATHAN/Math-Calculus-Expression-0.2.2.tar.gz
ok
Scanning cache /home/sb/.cpan/build for sizes
DONE
Math-Calculus-Expression-0.2.2/
Math-Calculus-Expression-0.2.2/Changes
Math-Calculus-Expression-0.2.2/Expression.pm
Math-Calculus-Expression-0.2.2/Makefile.PL
Math-Calculus-Expression-0.2.2/MANIFEST
Math-Calculus-Expression-0.2.2/README
Math-Calculus-Expression-0.2.2/test.pl
CPAN: File::Temp loaded ok (v0.20)
Catching error: "Couldn't move
/home/sb/.cpan/build/tmp-16218/Math-Calculus-Expression-0.2.2/Changes to
/home/sb/.cpan/build/Math-Calculus-Expression-0.2.2-jd638v/Changes:
Permission denied at /home/sb/perllib/lib/perl5/5.8.5/CPAN.pm line
6293\cJ\cICPAN::Distribution::run_preps_on_packagedir('CPAN::Distribution=HASH(0x14305c0)')
called at /home/sb/perllib/lib/perl5/5.8.5/CPAN.pm line
6151\cJ\cICPAN::Distribution::get('CPAN::Distribution=HASH(0x14305c0)')
called at /home/sb/perllib/lib/perl5/5.8.5/CPAN.pm line
7376\cJ\cICPAN::Distribution::make('CPAN::Distribution=HASH(0x14305c0)')
called at /home/sb/perllib/lib/perl5/5.8.5/CPAN.pm line
8504\cJ\cICPAN::Distribution::test('CPAN::Distribution=HASH(0x14305c0)')
called at /home/sb/perllib/lib/perl5/5.8.5/CPAN.pm line
8846\cJ\cICPAN::Distribution::install('CPAN::Distribution=HASH(0x14305c0)')
called at /home/sb/perllib/lib/perl5/5.8.5/CPAN.pm line
3364\cJ\cICPAN::Shell::rematein('CPAN::Shell', 'install',
'JONATHAN/Math-Calculus-Expression-0.2.2.tar.gz') called at
/home/sb/perllib/lib/perl5/5.8.5/CPAN.pm line
3535\cJ\cICPAN::Shell::__ANON__('CPAN::Shell',
'JONATHAN/Math-Calculus-Expression-0.2.2.tar.gz') called at
/home/sb/perllib/lib/perl5/5.8.5/CPAN.pm line 274\cJ\cIeval {...} called
at /home/sb/perllib/lib/perl5/5.8.5/CPAN.pm line 274\cJ\cICPAN::shell()
called at /usr/bin/cpan line 198\cJ" at
/home/sb/perllib/lib/perl5/5.8.5/CPAN.pm line 281
CPAN::shell() called at /usr/bin/cpan line 198



cpan[2]> q
Lockfile removed.
delta %
delta % rm -fr ~/.cpan/build/*
rm: cannot chdir from `/home/sb/.cpan/build/tmp-16218' to
`Math-Calculus-Expression-0.2.2': Permission denied


That's just really beyond me. Only root can then delete that tmp
directory. What's going on? (I've had no similar problem installing a
whole host of other modules via CPAN, including Bundle::CPAN)
Sendu Bala
2008-01-25 11:36:21 UTC
Permalink
Post by Sendu Bala
cpan[1]> install JONATHAN/Math-Calculus-Expression-0.2.2.tar.gz
[...]
Catching error: "Couldn't move
/home/sb/.cpan/build/tmp-16218/Math-Calculus-Expression-0.2.2/Changes to
Permission denied
[...]
delta %
delta % rm -fr ~/.cpan/build/*
rm: cannot chdir from `/home/sb/.cpan/build/tmp-16218' to
`Math-Calculus-Expression-0.2.2': Permission denied
That's just really beyond me. Only root can then delete that tmp
directory. What's going on? (I've had no similar problem installing a
whole host of other modules via CPAN, including Bundle::CPAN)
Ah, the problem is that inside the tmp-16218 directory a
Math-Calculus-Expression-0.2.2 directory is created but that directory
does not have execute permissions. Presumably that is it's state inside
the .tar.gz, and also explains why CPAN hasn't indexed it.

Can the author fix this problem, or failing that, ***@cpan?

I think I already came across this problem in the past and reported it
to the author, so somone @cpan may have to step in.


Cheers,
Sendu.
Steffen Mueller
2008-01-25 21:49:49 UTC
Permalink
Hi,
Post by Sendu Bala
Ah, the problem is that inside the tmp-16218 directory a
Math-Calculus-Expression-0.2.2 directory is created but that directory
does not have execute permissions. Presumably that is it's state inside
the .tar.gz, and also explains why CPAN hasn't indexed it.
I think I already came across this problem in the past and reported it
I'm pretty confident that this needs to by fixed by the author. The only
other possibility would be the following chain of events:

- Jonathan doesn't react to this at all. (Not even saying he's not going
to do anything about it.) Or says he's willing to give up the module.
- You contact the PAUSE admins (***@perl.org) showing that you have
been trying to contact Jonathan by various means for an extended period
of time.
- You get the permissions to use the namespace, download the
distribution, fix it, upload with $VERSION++.

Again: This is only a fallback. Ideally, the author should fix the
distribution. I see that he's cc'd, so I suppose he'll chime in shortly.

Cheers,
Steffen

Continue reading on narkive:
Loading...