 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
jasvarghese
Joined: 09 Jan 2008 Posts: 1 Location: India
|
Posted: Wed Jan 09, 2008 1:21 pm Post subject: Installation trouble... |
|
|
Hi all,
I am new to PEAR. I want to install PEAR and work on it. I am using PHP Version 5.2.1. Can anybody tell me the step by step installation and configuration of PEAR in my existing framework.
Any help would be highly appreciated. _________________ - Jaison
- http://www.blueMazes.com |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1003
|
|
| Back to top |
|
 |
mattB
Joined: 17 Apr 2008 Posts: 1
|
Posted: Mon Apr 21, 2008 9:40 pm Post subject: Simple Installation Instructions |
|
|
Dear jasvarghese,
I know it has been some time since you posted the request, but I hope the following will be helpful to others.
I've been using PHP for 18 months now. I read through this forum and the official Instruction but found them all very complicated, refering to 'CVS' and various commands. I don't know if i've missed out an important feature but I was able to install and run Pear packages as follows:
1. Install PEAR by
Locate PHP directory
Run go-pear.bat
Install as local
Choose desired install locations (recommend using suggested locations). Hit ‘Enter’.
Choose ‘Yes’ to Would you like to alter php.ini.
PEAR is then installed in the php\PEAR directory
2. Download & Install required Packages
Open command prompt
Change directory to the php directory where PEAR is installed.
To install and download a package use the following command structure:
Pear install [options] <package>
The options are listed below. I wanted to use the Mail package so I typed
Pear install –a mail
The packages are installed php\PEAR directory
And it all worked lovely
I have a couple of questions for anyone reading this who knows more than me.
1. Why bother using the download command if the install command downloads the packages as well?
2. I thought optional components weren't required, yet when I download the optional components only I couldn't get the mail package to work. Any ideas? Is it best to download all associated packages?
Command Options:
-f, --force
will overwrite newer installed packages
-l, --loose
do not check for recommended dependency version
-n, --nodeps
ignore dependencies, install anyway
-r, --register-only
do not install files, only register the package as installed
-s, --soft
soft install, fail silently, or upgrade if already installed
-B, --nobuild
don't build C extensions
-Z, --nocompress
request uncompressed files when downloading
-R DIR, --installroot=DIR
root directory used when installing files (ala PHP's INSTALL_ROOT), usepackagingroot for RPM
-P DIR, --packagingroot=DIR
root directory used when packaging files, like RPM packaging
--ignore-errors
force install even if there were errors
-a, --alldeps
install all required and optional dependencies
-o, --onlyreqdeps
install all required dependencies
Hope this is helpful, Matt |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1003
|
Posted: Tue Apr 22, 2008 8:26 am Post subject: Re: Simple Installation Instructions |
|
|
| mattB wrote: | | I read through this forum and the official Instruction but found them all very complicated, refering to 'CVS' and various commands. |
There is a new user guide available since about two weeks. Maybe this is more understandable now?
If you find problems with the documentation, don't hesitate to report a bug.
| mattB wrote: | I have a couple of questions for anyone reading this who knows more than me.
1. Why bother using the download command if the install command downloads the packages as well? |
Well, just one example: someone might want to install PEAR packages on a machine that hasn't access to the internet.
| mattB wrote: | | 2. I thought optional components weren't required, yet when I download the optional components only I couldn't get the mail package to work. Any ideas? Is it best to download all associated packages? |
"couldn't get the mail package to work" is a very bad description of an error. If you tell us what doesn't work and what messages you get, we can help you.
In general, of course, only required components are required, while optional components are only required in certain cases. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|