PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Installation trouble...

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Installation, Upgrading & Configuration
View previous topic :: View next topic  
Author Message
jasvarghese



Joined: 09 Jan 2008
Posts: 1
Location: India

PostPosted: Wed Jan 09, 2008 1:21 pm    Post subject: Installation trouble... Reply with quote

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
View user's profile Send private message Yahoo Messenger MSN Messenger
mark



Joined: 07 Jan 2007
Posts: 1011

PostPosted: Wed Jan 09, 2008 3:33 pm    Post subject: Reply with quote

Read and follow these pages:
http://pear.php.net/manual/en/installation.php

If there are still questions, you need to ask a little bit more precisely.
Back to top
View user's profile Send private message
mattB



Joined: 17 Apr 2008
Posts: 1

PostPosted: Mon Apr 21, 2008 9:40 pm    Post subject: Simple Installation Instructions Reply with quote

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 Very Happy

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
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1011

PostPosted: Tue Apr 22, 2008 8:26 am    Post subject: Re: Simple Installation Instructions Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Installation, Upgrading & Configuration All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software