See this page for instructions on installing a basic gcc/make/automake/libtool/etc build environment.
Look here for instructions on installing Perl modules.