Forum Moderators: mack

Message Too Old, No Replies

Installing Pear

         

johnno123

12:10 am on May 1, 2007 (gmt 0)

10+ Year Member



I am trying to install PearMail on my system:

I've downloaded the software and extracted the Mail-1.1.13.tgz folder but I don't know where to go from here. My system is Windows XP/SP2.

I've tried a number of commands in the command prompt window but get wrong syntax messages. The Pear instructions are:

<quote>The command line installer is the easiest way to install PEAR packages on your system: It connects to the PEAR package server via a simple HTTP connection, loads the package on your system and installs it to the desired location.

Fully-automatic installation
Using the command line installer is pretty straightforward and easy to use. Simply run the following line on your shell:

$ pear install <package>

<package> has to be replaced with the name of the package you want to install (e.g. HTTP_Upload).</quote>

Many thanks
John

encyclo

12:38 am on May 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



From the description, this is an installer for Linux/Unix systems, not one which runs on Windows. Perl runs on Windows, however, so it may well be able to be installed on your local machine.

Are you wanting to test the package on your local system, or do you want to run your machine as a server? You can try asking in our Prel forum [webmasterworld.com] for information about running Perl under Windows. :)

johnno123

4:37 am on May 1, 2007 (gmt 0)

10+ Year Member



Thanks for the input. I've also posted on the PearMail forum so I'll see how things go.

coopster

5:57 pm on May 5, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You can get the installer to work on Windows but it takes a bit more work than you would expect. To update your PEAR installation from go-pear.org, request [go-pear.org...] in your browser and save the output to a local file go-pear.php. I store this in the same directory as the php executable (php.exe) file. You can then run
php go-pear.php

in a Windows Command Prompt from that directory to start the update process.

Next, run the following command to see a list of the packages:

pear remote-list

and something like this to install one:
pear install Mail_Mime