If you have sudo access please use the following command to install perl ROUGE, otherwise go to the Section. I have taken some steps from this Githib Gist.
perl --version
sudo apt-get install cpanminus
sudo cpan XML::DOM
git clone https://github.com/summanlp/evaluation
export ROUGE=/absolute/path/to/ROUGE-RELEASE-1.5.5
echo "export ROUGE=\"${ROUGE}\"" >> ~/.bashrc
source ~/.bashrc
cd ${ROUGE}/data/WordNet-2.0-Exceptions/
mv WordNet-2.0.exc.db WordNet-2.0.exc.db.bak
./buildExeptionDB.pl . exc WordNet-2.0.exc.db
cd $ROUGE
./runROUGE-test.pl
First you need to install perl. There is no sudo commad so we can not install cpan directly. So, I have developed a way-around by using two file cpan and cpanm copy them to a directory and go to there. The rest of the proccess are described below-
perl --version
./cpanm App::Cpan
When this installation is going it will give a message about the location where it stores the module note the location and add it with perl5lib
by using following command.
export PERL5LIB="path/to/the/directory:$PERL5LIB"
./cpanm DB_File
./cpan XML::DOM
Then the rest of the installation I have followed from a Githib Gist
git clone https://github.com/summanlp/evaluation
export ROUGE=/absolute/path/to/ROUGE-RELEASE-1.5.5
echo "export ROUGE=\"${ROUGE}\"" >> ~/.bashrc
source ~/.bashrc
cd ${ROUGE}/data/WordNet-2.0-Exceptions/
mv WordNet-2.0.exc.db WordNet-2.0.exc.db.bak
./buildExeptionDB.pl . exc WordNet-2.0.exc.db
cd $ROUGE
./runROUGE-test.pl