New pc

Table of Contents

Things to Install on a New PC
MS VC++ V 6 with Service Pack 6
MS MDAC V 2.8
Adobe Reader V 6
Agent Ransack
Installing Berkeley DB under Windows
Building BerkeleyDB (Perl)
Berkeley Tests: Running your own tests
CVSNT
GhostScript
GNU Privacy Guard
GraphViz
ImageMagick
InfoZip
IrfanView
MinGW
MI/X
MySQL and MyODBC
Open Office
PAF
Perl - If Compiling Myself
PocoMail
PostgreSQL
PuTTY
RealTerm
TClockEx
TreePad
UltraEdit
W32Match
WinSCP
WinZip
Fix the PATH
Other Things To Do
Perl Modules
Resources
Author
Licence

New pc

Things to Install on a New PC

Version 1.00 of this document: 2006-05-01.

Download sites are listed under Resources.

MS VC++ V 6 with Service Pack 6

This compiler is used to install some Perl modules.

Also, the VC++ package contains nmake, which is used to help install Perl and Apache.

VC++ V 6

Select: Typical.

Select: Register Environment Variables.

MS VC++ Service Pack 6

Make a temporary directory. Call it d:\temp.

Run VS6SP6.exe and unpack it into d:\temp.

Run d:\temp\setupsp6.exe.

Restart Windows.

Delete all files in d:\temp.

Fix the PATH

But you are not finished! VC++ may not update the PATH environment variable. Sigh.

Add: c:\Program Files\Microsoft Visual Studio\VC98\bin.

MS MDAC V 2.8

Not necessary for XP.

Requires a reboot.

Adobe Reader V 6

Agent Ransack

Installing Berkeley DB under Windows

These instructions cover installing both Berkeley DB and the corresponding Perl module BerkeleyDB.

Due to the similarity of names, 'Berkeley DB' and 'BerkeleyDB', I'll refer to the latter as 'BerkeleyDB (Perl)'.

I won't repeat the offical instructions, but rather will just add some pointers.

Download Berkeley DB V 4.4.20 (File: db-4.4.20.msi). See the Resources section at the end for the URL.

Install it into d:\BerkeleyDB-4.4.20 (no spaces, since they affect the Perl build).

Also, download BerkeleyDB (Perl). This file is called: BerkeleyDB-0.27.tar.gz.

Building BerkeleyDB (Perl)

Hereafter, assume d:\perl-modules\BerkeleyDB-0.27 is the current directory.

Patch config.in thus:

Note: Spaces around the '=' are mandatory. See the split at line 118 of Makefile.PL.

  • Line 12

    From this: INCLUDE = /usr/local/BerkeleyDB/include

    To this: INCLUDE = \BerkeleyDB-4.4.20\include

  • Line 21

    From this: LIB = /usr/local/BerkeleyDB/lib

    To this: LIB = \BerkeleyDB-4.4.20\lib

  • Line 44

    Add: DBNAME = -ldb44.lib

Build BerkeleyDB (Perl) as per normal:

Note: If you run nmake clean, you must re-copy libdb43.lib.

  • perl Makefile.PL
  • nmake
  • nmake test

    This is the output I get:

    	Failed 2/24 test scripts, 91.67% okay. 28/1521 subtests failed, 98.16% okay.

    t\env fails, and t\join fails and Perl aborts. Ignore these problems.

    If you get this:

    	Failed 20/24 test scripts, 16.67% okay. 0/18 subtests failed, 100.00% okay.

    it's probably because t\*.t are mostly empty files. Unpack the disto again, and patch config.in again.

  • nmake install

Berkeley Tests: Running your own tests

If you install the Perl module Search::InvertedIndex::Simple::BerkeleyDB, then when it self-tests, it does 1 POD test and 5 database tests. If these all pass, you are ready to start running you own code.

CVSNT

Concurrent Versions System, for WinNT.

GhostScript

GhostScript is an interpreter for the PostScript language.

Down gs850w32.exe.

GNU Privacy Guard

Some Perl modules have digital signatures, which will be checked with GNU Privacy Guard.

Download gnupg-w32cli-1.4.1.exe.

The installation process does not update the PATH. Do that below.

GraphViz

GraphViz contains the drawing languages DOT and NEATO.

Download graphviz-2.2.1.exe.

ImageMagick

ImageMagick is a command-line graphics package.

Download ImageMagick-6.2.0-Q16-windows-dll.exe.

ImageMagick updates the PATH.

Installing ImageMagick under GNU/Linux

Date: 3-Jul-2005.

OS: Linux pc 2.4.21-27.0.4.ELsmp #1 SMP $Date i686 i686 i386 GNU/Linux

Compiler: gcc V 3.2.3.

I found I could not install ImageMagick V 6.3.3 from source, due to a bug in the make file.

So, while trying that, and V 6.2.2, I made some notes.

  • Test to see which version is installed
    • This uses single quotes on the outside and doubles in the inside of the singles
    • perl -MImage::Magick -e 'print "$Image::Magick::VERSION\n"'
  • Go to ftp://mirror.aarnet.edu.au/pub/ImageMagick/
  • Download ImageMagick-6.2.2-5.tar.bz2

    Do not use V 6.3.3-3. Details below.

  • bunzip2 ImageMagick-6.2.2-5.tar.bz2
  • tar xvf ImageMagick-6.2.2-5.tar
  • cd ImageMagick-6.2.2
  • All this on one line...
    	./configure
    		--enable-shared
    		--disable-installed (so I can install in a non-system directory)
    		--with-modules
    		--with-perl-options=PERL=/home/ron
    		--prefix=/home/ron
  • make

    At this point, V 6.3.3-3 dies with: No rule to make target 'Magick++/bin/Magick++-config.1.

  • make install
  • Edit .bash_profile
    • Add

      PERL5LIB=/home/ron/lib:/home/ron/lib/perl5/site_perl

      where the dir before the : is for other local modules

      and the dir after the : is just for Image::Magick

    • Add

      export PERL5LIB

  • Source .bash_profile
  • Test, as above, with

    perl -MImage::Magick -e 'print "$Image::Magick::VERSION\n"'

    This must display: 6.2.2, i.e the version you installed, and not the version number of any previously installed version

InfoZip

	shell>cd \bin
	shell>md info
	shell>cd info
	shell>..\unz550xN
	shell>move unzip.exe ..
	shell>unzip -o ..\zip23xN
	shell>move zip.exe ..
	shell>cd ..
	shell>rd /q /s info

IrfanView

IrfanView is a GUI-based graphics package.

Download iview393.exe and the plugin irfanview_plugins_395.exe.

MinGW

Files:

  • dmake-4.4-20060206-SHAY (CPAN)
  • gcc-core
  • gcc-g++
  • binutils
  • mingw-runtime
  • mingw32-make
  • msys
  • win32api

MI/X

MySQL and MyODBC

Open Office

PAF

Perl - If Compiling Myself

Download perl-5.8.8.src.tar.gz.

	Edit ./src/makefile.mk:
		o INST_DRV d:
		o INST_TOP $(INST_DRV)\perl588
		o CCTYPE   GCC
		o CCHOME  d:\mingw

PocoMail

PostgreSQL

PuTTY

PuTTY is a secure telnet program.

Download putty-0.58-installer.exe.

RealTerm

RealTerm reads characters from a serial port and displays them on the screen, all under control of many options.

RealTerm can be configured to convert the input character stream into an outgoing TCP/IP stream, making it a TCP/IP client and an RS232-to-TCP/IP protocol converter.

To use the latter function, you acquire or write a TCP/IP server, which accepts data from a serial device coming in via TCP/IP, and perhaps also accepts another character stream coming in from the keyboard, ie keystrokes.

Download Realterm_1-99-27.zip.

Unzip it into d:\temp\realterm, say.

Select: Typical.

TClockEx

TreePad

UltraEdit

W32Match

WinSCP

WinSCP is a Windows-based Secure Copy Program.

Download winscp374setup.exe.

WinZip

Fix the PATH

We'll do that now so when the Perl/Apache installed asks for programs like gzip and their paths, we can just say 'gzip' rather than 'd:\bin\gzip.exe'.

Add: d:\bin;d:\Program Files\GNU\GnuPG;d:\gs\gs8.50\bin;d:\Program Files\PuTTY

Other Things To Do

Restore these directories, from backups:

  • /archive
  • /backup
  • /bin
  • /bin1
  • /bin2
  • /home-page
  • /mids
  • /perl-modules
  • /scripts

Restore databases.

Recheck env vars.

Restore TreePad files.

Restore mod-perl stuff.

Copy perl.exe to /usr/bin and /usr/local/bin.

Perl Modules

Manually install these, in this order:

	Algorithm::Diff (It's a zip file)
	Attribute::Handlers
	Compress::Zlib
	IO::Zlib
	Text::Diff
	Archive::Tar
	CGI.pm
	Config::General
	DBI (If already installed, use that one)
	Digest
	Digest::SHA
	Error
	ExtUtils::CBuilder
	ExtUtils::MakeMaker
	ExtUtils::Install
	ExtUtils::ParseXS
	FindBin::Real
	HTML::Template
	Devel::Symdump
	Pod::Coverage
	Test::Pod::Coverage
	IPC::Run3
	PAR::Dist (Uses GnuPG exe)
	Module::Which
	Module::Signature (Asks 1 question)
	Params::Validate
	Pod::Escapes
	Pod::Simple
	podlators
	Pod::Readme
	Module::Build
	Path::Class
	Local::Config
	Local::CheckDistro
	Local::Run3
	Local::Build
	Scalar::List::Utils (make install after deleting c:\perl\lib\auto\List\Util\Util.dll)

Resources

This document: http://savage.net.au/Ron/html/new-pc.html.

Author

Ron Savage.

Home page: http://savage.net.au/index.html

This POD was converted to HTML by /Perl.html#fancy-pom2.pl

  • Version: 1.01 01-Jun-2006

    This version disguises my email address.

  • Version: 1.00 18-Feb-2002

    Original version.

Licence

Australian Copyright © 2002 Ron Savage. All rights reserved.

	All Programs of mine are 'OSI Certified Open Source Software';
	you can redistribute them and/or modify them under the terms of
	The Artistic License, a copy of which is available at:
	http://www.opensource.org/licenses/index.html
 
Top of page