It looks like you specified 'install' as an argument to cpan(1). This script is not the CPAN.pm prompt and doesn't understand the same commands. In fact, doesn't require the extra typing. You probably just want to list the modules you want to install...