Discussion:
cpan::reporter
(too old to reply)
Kurtz Le Pirate
2007-06-17 09:20:27 UTC
Permalink
hello,

a small problem : i have just installed cpan:reporter and running this
command : 'force test CPAN:Reporter'

at the end of execution i get this error :

...
...
Files=21, Tests=777, 101 wallclock secs (63.77 cusr + 25.67 csys = 89.44
CPU)
cpan> force test CPAN:ReporterTest result is 'pass': All tests
successful.
Preparing a test report for CPAN-Reporter-0.43
Couldn't read CPAN::Reporter configuration file
'/private/var/root/.cpanreporter/config.ini': File
'/private/var/root/.cpanreporter/config.ini' does not exist

CPAN::Reporter requires an email-address in the config file.
Test report will not be sent. See documentation for configuration
details.


config.ini is not in "/private/var/root/.cpanreporter/config.ini" but in
my home directory. how to correct this ?
--
klp
Andy Armstrong
2007-06-17 10:37:19 UTC
Permalink
Post by Kurtz Le Pirate
a small problem : i have just installed cpan:reporter and running this
command : 'force test CPAN:Reporter'
...
...
Files=21, Tests=777, 101 wallclock secs (63.77 cusr + 25.67 csys = 89.44
CPU)
cpan> force test CPAN:ReporterTest result is 'pass': All tests
successful.
Preparing a test report for CPAN-Reporter-0.43
Couldn't read CPAN::Reporter configuration file
'/private/var/root/.cpanreporter/config.ini': File
'/private/var/root/.cpanreporter/config.ini' does not exist
CPAN::Reporter requires an email-address in the config file.
Test report will not be sent. See documentation for configuration
details.
config.ini is not in "/private/var/root/.cpanreporter/config.ini" but in
my home directory. how to correct this ?
This is on a Mac right? Were you logged in as root when you installed
it? /private/var/root is root's home directory.

Ideally you should run CPAN as you rather than as root. Configure
cpan to use sudo to gain adequate privileges for make install or ./
Build install:

make_install_make_command [sudo make]
mbuild_install_build_command [sudo ./Build]

If you do that and reinstall CPAN::Reporter you should find that it
looks for its ini file in your home dir.
--
Andy Armstrong, hexten.net
Kurtz Le Pirate
2007-06-17 16:53:36 UTC
Permalink
Post by Andy Armstrong
This is on a Mac right? Were you logged in as root when you installed
it? /private/var/root is root's home directory.
Ideally you should run CPAN as you rather than as root. Configure
cpan to use sudo to gain adequate privileges for make install or ./
make_install_make_command [sudo make]
mbuild_install_build_command [sudo ./Build]
If you do that and reinstall CPAN::Reporter you should find that it
looks for its ini file in your home dir.
yes, is on mac :)

i'm not logged as root (never), i just 'sudo cpan'.
i made change in my config.pm but it is still not sufficient.

i made a 'chmod -R a+r' in '/Users/admin/.cpan/build/' and now all works
fine.



thanks for your help andy !
--
klp
Loading...