Near the top of your script place the lines:
use Cwd 'abs_path';
use File::Basename;
use lib dirname( abs_path $0 );
Should work in all cases and on all OSes. (source: http://use.perl.org/~Aristotle/journal/33995)
use Cwd 'abs_path';
use File::Basename;
use lib dirname( abs_path $0 );
$pdf_mode = 1;
$preview_continuous_mode = 1;
$pdf_previewer = "start xpdf -remote %R %O %S";
$pdf_update_method = 4;
$pdf_update_command = "xpdf -remote %R -reload";
$ sudo apt-get install ruby1.8 rubygems1.8
$ sudo gem install cheat
$ sudo ln -s /var/lib/gems/1.8/bin/cheat /usr/bin/
$ cheat perl
On Ubuntu I think the easiest way to fix this problem, both workaround and packaged as a solution, is to make a simple script in /etc/profile.d/ . I called mine set_term.sh (must end in .sh). The file need only have in itexport TERM=xtermand then either run "source /etc/profile" or reboot. This will set the $TERM variable for all users on each boot without hardcoding the variable as some of the other programs I listed above have done. In one command, for those who need it run:echo "export TERM=xterm" | sudo tee /etc/profile.d/set_term.sh && source /etc/profile