How to install pear
Moderator: General Moderators
How to install pear
I have php 4.2 installed (win32 binaries) but I don't see any pear directory so I assume I do not have pear installed. Also DB:: connect doesn't seem to work. I checked out the pear.php.net site and it says I need to install the pear packager manager first by typing $ lynx..... in a console. What console are they referring to? Is there a simple zip download that can do this? As you can see I am a newbie at this, so go easy on me.
- protokol
- Forum Contributor
- Posts: 353
- Joined: Fri Jun 21, 2002 7:00 pm
- Location: Cleveland, OH
- Contact:
Well, I'm not 100% certain about this, but the win32 installer (.exe) may not contain the PEAR extensions. Try unzipping and installing the files contained in the .zip file. I just checked with someone, and they said that this distribution DOES have the PEAR installed.
http://www.php.net/do_download.php?down ... -Win32.zip
http://www.php.net/do_download.php?down ... -Win32.zip
yeah, pear comes included in the binary, but you have to add it to your php.ini file extensions path. from my php.ini:
I had to include pear manually, you probably do too.
Code: Select all
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
include_path = ".;c:\php\extensions;c:\php\pear;"If I do have it then I should have a pear directory within the php directory, which I don't, so I'll guess I'll try the zip file. Thanks.yeah, pear comes included in the binary, but you have to add it to your php.ini file extensions path. from my php.ini: Code:
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
include_path = ".;c:\php\extensions;c:\php\pear;"
First, yes, the zip file does include the pear directory. When I said 'the binary', I meant the binary build of php, as opposed to the source code. It is quite possible that the exe installer does not contain the pear directory, as I don't use the exe. I apologize for the confusion.
Second, chill out dude, it's an internet php board, no need to be nasty.
Second, chill out dude, it's an internet php board, no need to be nasty.