When installing Perl modules on my Windows laptop I always try to ease the pain by using ActiveState's ppm or ppm3 tool to install. An alternative is the CPAN tool but that requires most of the time that the development environment includes a C or C++ compiler with all the environment variables set and all include files available.
Lately I needed to install the DBD::Pg module in order to connect to Postgresql and I wanted a swift install. Unfortunately the DBD::Pg package wasn't available from the ActiveState repository and I couldn't find any other repository to add. But I found another way of doing it.
Create a new directory to hold your files and direct your browser to the project's site:
http://pgfoundry.org/projects/dbdpgppm
I downloaded DBD-Pg-1.49-5.8.ppd, DBD-Pg-1.49-5.8.tar.gz,DBD-Pg-1.49-5.8s.ppd, DBD-Pg-1.49-5.8s.tar.gz,openssl.zip and msvcr71.zip as I wasn't sure which files that were needed.
Then I fired up a command prompt and entered the directory that I created earlier. To install just run
ppm install DBD-Pg-5.8.ppd
Done!
Comments
great info, saved me alot of
great info, saved me alot of time. Much appreciated.
Worked for me. Thanks a
Worked for me. Thanks a million.
Files removed from repository
I tried to do an installation of DBD::Pg on a new Windows machine today using the command: ppm install DBD-Pg-5.8.ppd. But when running the installation failed with the following error:
I doubt that the file was actually downloaded and when checking out the pgfoundry the files had been replaced by a newer version, naturally.
Anyway, I had a reason to install the old drivers so I edited the ppd-files. I changed the absolute paths in the following line from this value:
to this new value:
Notice the difference in filenames in the different ppd files!
As I still had the DBD-Pg-1.49-5.8.tar.gz file and it was placed in the same directory as the ppd files I could now start the installation using:
Post new comment