Installing DBIx::Class::Schema::Loader from CPAN results in some permissions error:
cpan[1]> install DBIx::Class::Schema::Loader
...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/local/bin'
Do not have write permissions on '/usr/local/bin'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at -e line 1
make: *** [pure_site_install] Error 13
ANDK/CPAN-1.9800.tar.gz
/usr/bin/make install -- NOT OK
----
You may have to su to root to install the package
(Or you may want to run something like
o conf make_install_make_command 'sudo make'
to raise your permissions.Failed during this command:
ANDK/CPAN-1.9800.tar.gz : install NO
Trying as suggested will do no good:
cpan[4]> o conf make_install_make_command 'sudo make'
make_install_make_command [sudo make]
Please use 'o conf commit' to make the config permanent!
cpan[5]> install DBIx::Class::Schema::Loader
Running install for module 'DBIx::Class::Schema::Loader'
Running make for R/RK/RKITOVER/DBIx-Class-Schema-Loader-0.07017.tar.gz
Has already been unwrapped into directory /home/jerome/.cpan/build/DBIx-Class-Schema-Loader-0.07017-_upIn_
Has already been made
Running make test
Has already been tested successfully
Running make install
Already tried without success
So the solution is:
cpan[6]> force install DBIx::Class::Schema::Loader