Install bugzilla from behind a proxy

The curl proxy problem

If you’re trying to install bugzilla from behind a proxy server, you might find yourself getting stuck with curl trying to connect to internet hosts directly during the installation process.
The simplest way to get by is to set your HTTP_PROXY environment variable, and every time you see a message such as the following:
Trying with “/usr/bin/curl -L -f -s -S –netrc-optional” to get
“http://mirrors.kernel.org/cpan/authors/id/D/DO/DOY/Package-Stash-XS-0.25.tar.gz”
just hit CTRL-C and it will fail this method and then connect through your proxy to download the file… at first. But do you really want to do that a hundred times? It will take quite a long time to install even if you sat there sending breaks each time.
If you’re getting this far, you’ve got curl installed already, probably through the libcurl rpm that came with your Linux distribution. But there’s no /etc/conf file to set a proxy in, and it’s not honoring the environment variable. I can’t find a man page either.
Roll your own .curlrc
To set up your proxy credentials, create a file named .curlrc in your home directory with the following contents:
-x my.proxy.com:8008
-U username:passwd
-x my.proxy.com:8008
-U username:passwd
Substitute my proxy, port, username, and password with your own details if you want it to work of course. If you don’t have to authenticate, just leave out the 2nd line.
Now you can continue installing in peace. Bugzilla’s install-module.pl script should handle each download without pause.
If you want to install all the required and optional modules, run checkconfig.pl then just run install-module.pl with –all to do the whole shebang in one go.
perl install-module.pl –all
Missing gdlib-config
When CPAN attempts to install gd, it complains about a missing command, “gdlib-config”.
For RPM based systems, install “gd-devel”. For debian based distributions like ubuntu, the package should be “libgd2-xpm-dev”.
Encode-Detect gcc error
If Encode::Detect fails to install and you see this error:
gcc: error trying to exec ‘cc1plus’: execvp: No such file or directory
Install gcc-g++ and libstdc++-devel and try again. And for those debian heads, installing the “build-essential” package should cover you.
JGMYERS/Encode-Detect-1.01.tar.gz
/usr/bin/make install — OK
Once all the perl-requisites are installed, run checksetup.pl again. If you run into more problems, head over to http://www.bugzilla.org/