473,400 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,400 software developers and data experts.

Pear install question..

I remember having problems with pear when I first installed it but got
it running some time ago. This is on a windoze XP SP OS. I did not think
it was correct because it pointed to "C\php\pear\PEAR". I writing a pear
front-end GUI and I want to have it installed correctly.

It seemed to have some duplication of directories between the lower and
upper cased pear dir names. Should there be a "php\pear\PEAR"
subdirectory? I thought it should be "C\PHP\pear" so I just wanted to
reinstall it. Now looking at it I am confused. There is a difference
between the following:

The PEAR_ENV.reg files has this (I did run this):

REGEDIT4
[HKEY_CURRENT_USER\Environment]
"PHP_PEAR_SYSCONF_DIR"="C:\\php"
"PHP_PEAR_INSTALL_DIR"="C:\\php\\pear"
"PHP_PEAR_DOC_DIR"="C:\\php\\pear\\docs"
"PHP_PEAR_BIN_DIR"="C:\\php"
"PHP_PEAR_DATA_DIR"="C:\\php\\pear\\data"
"PHP_PEAR_PHP_BIN"="C:\\php\\.\\php.exe"
"PHP_PEAR_TEST_DIR"="C:\\php\\pear\\tests"

When I look at the Windows environment vars which I guess should reflect
the regedit entries but I see this (there is no "php\PEAR\pear" but
there is "php\pear\PEAR"):

PHP_PEAR_BIN_DIR=C:\php\PEAR
PHP_PEAR_DATA_DIR=C:\php\PEAR\pear\data
PHP_PEAR_DOC_DIR=C:\php\PEAR\pear\docs
PHP_PEAR_INSTALL_DIR=C:\php\PEAR\pear
PHP_PEAR_PHP_BIN=C:\php\.\php.exe
PHP_PEAR_SYSCONF_DIR=C:\php\PEAR
PHP_PEAR_TEST_DIR=C:\php\PEAR\pear\tests

In the peardev.bat, pear.bat and pecl.bat files I see this:

IF "%PHP_PEAR_INSTALL_DIR%"=="" SET "PHP_PEAR_INSTALL_DIR=C:\php\pear"
IF "%PHP_PEAR_BIN_DIR%"=="" SET "PHP_PEAR_BIN_DIR=C:\php"
IF "%PHP_PEAR_PHP_BIN%"=="" SET "PHP_PEAR_PHP_BIN=C:\php\.\php.exe"

I guess I should change all of the environment vars to what the regedit
file says they should be. Would this be correct and has any one else
seen this problem with the upper and lower case pear subdirectories?

I think it should look like this it because matches the directory layout
now after the new install:

PHP_PEAR_BIN_DIR=C:\php\pear
PHP_PEAR_DATA_DIR=C:\php\pear\data
PHP_PEAR_DOC_DIR=C:\php\pear\docs
PHP_PEAR_INSTALL_DIR=C:\php\pear
PHP_PEAR_PHP_BIN=C:\php\.\php.exe
PHP_PEAR_SYSCONF_DIR=C:\php\pear
PHP_PEAR_TEST_DIR=C:\php\pear\tests

Just do not know where the PEAR subdirectory comes from. Has anyone else
ran into this problem under windows.

--
Thanks in Advance... http://ichbin.9999mb.com
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________ ____________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Dec 21 '06 #1
1 13640
IchBin wrote:
I remember having problems with pear when I first installed it but got
it running some time ago. This is on a windoze XP SP OS. I did not think
it was correct because it pointed to "C\php\pear\PEAR". I writing a pear
front-end GUI and I want to have it installed correctly.

It seemed to have some duplication of directories between the lower and
upper cased pear dir names. Should there be a "php\pear\PEAR"
subdirectory? I thought it should be "C\PHP\pear" so I just wanted to
reinstall it. Now looking at it I am confused. There is a difference
between the following:

The PEAR_ENV.reg files has this (I did run this):

REGEDIT4
[HKEY_CURRENT_USER\Environment]
"PHP_PEAR_SYSCONF_DIR"="C:\\php"
"PHP_PEAR_INSTALL_DIR"="C:\\php\\pear"
"PHP_PEAR_DOC_DIR"="C:\\php\\pear\\docs"
"PHP_PEAR_BIN_DIR"="C:\\php"
"PHP_PEAR_DATA_DIR"="C:\\php\\pear\\data"
"PHP_PEAR_PHP_BIN"="C:\\php\\.\\php.exe"
"PHP_PEAR_TEST_DIR"="C:\\php\\pear\\tests"

When I look at the Windows environment vars which I guess should reflect
the regedit entries but I see this (there is no "php\PEAR\pear" but
there is "php\pear\PEAR"):

PHP_PEAR_BIN_DIR=C:\php\PEAR
PHP_PEAR_DATA_DIR=C:\php\PEAR\pear\data
PHP_PEAR_DOC_DIR=C:\php\PEAR\pear\docs
PHP_PEAR_INSTALL_DIR=C:\php\PEAR\pear
PHP_PEAR_PHP_BIN=C:\php\.\php.exe
PHP_PEAR_SYSCONF_DIR=C:\php\PEAR
PHP_PEAR_TEST_DIR=C:\php\PEAR\pear\tests

In the peardev.bat, pear.bat and pecl.bat files I see this:

IF "%PHP_PEAR_INSTALL_DIR%"=="" SET "PHP_PEAR_INSTALL_DIR=C:\php\pear"
IF "%PHP_PEAR_BIN_DIR%"=="" SET "PHP_PEAR_BIN_DIR=C:\php"
IF "%PHP_PEAR_PHP_BIN%"=="" SET "PHP_PEAR_PHP_BIN=C:\php\.\php.exe"

I guess I should change all of the environment vars to what the regedit
file says they should be. Would this be correct and has any one else
seen this problem with the upper and lower case pear subdirectories?

I think it should look like this it because matches the directory layout
now after the new install:

PHP_PEAR_BIN_DIR=C:\php\pear
PHP_PEAR_DATA_DIR=C:\php\pear\data
PHP_PEAR_DOC_DIR=C:\php\pear\docs
PHP_PEAR_INSTALL_DIR=C:\php\pear
PHP_PEAR_PHP_BIN=C:\php\.\php.exe
PHP_PEAR_SYSCONF_DIR=C:\php\pear
PHP_PEAR_TEST_DIR=C:\php\pear\tests

Just do not know where the PEAR subdirectory comes from. Has anyone else
ran into this problem under windows.
OK..for what it is worth I reset the environment vars to what I thought
and all is working as designed. Just not sure how this could have
happened on an install so easy as this..? Still not sure why there are
two subdirectories in different cases. Oh well..

PHP_PEAR_BIN_DIR=C:\php\pear
PHP_PEAR_DATA_DIR=C:\php\pear\data
PHP_PEAR_DOC_DIR=C:\php\pear\docs
PHP_PEAR_INSTALL_DIR=C:\php\pear
PHP_PEAR_PHP_BIN=C:\php\.\php.exe
PHP_PEAR_SYSCONF_DIR=C:\php\pear
PHP_PEAR_TEST_DIR=C:\php\pear\tests

--
Thanks in Advance... http://ichbin.9999mb.com
IchBin, Pocono Lake, Pa, USA
__________________________________________________ ____________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Dec 21 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ron King | last post by:
When I installed Mandrake 10.0 I thought I had Apache, PHP, and MySQL installed correctly. I could serve web pages, MySQL worked, and when I tried the phpinfo() function, I got a page that looked...
3
by: junkmail | last post by:
on a win 2k server apparantly it is saying i dont have it. or it cant find it. im using mySQL 4.1 php 4.3.x apache 3.0.53 im new to php and am doing some tutorials, but when i run the sripts...
1
by: DJ Majestik | last post by:
OK, I am new to the whole PEAR/Smarty templating thing. I am trying to setup my directory structure correctly. If someone could weigh in and see if I have this setup "right", I would appreciate it....
3
by: David | last post by:
I installed the Pear program and set the include path in php.ini to point to the pear dir. I have a program which <? require_once("DB.php"); ?> This produces the error "Class 'PEAR_Error'...
2
by: Alan Prescott | last post by:
I'm running SuSE Linux 9.3, fully up to date running # pear install db responds with ... downloading DB-1.7.6.tgz ... Starting to download DB-1.7.6.tgz (124,807 bytes)...
0
by: bwhitehd | last post by:
I'm having a problem installing php. The compile seems to go fine, but when it gets to the install step I get the following errors. Does anyone have an idea of what might be the problem? We...
1
by: CSTechie | last post by:
I've been battling to install PEAR on Windows XP now for too long. I am not sure what I need to do. When I run go-pear.php from the command line, I get the error message as shown at the end. I...
2
by: jhalaseh | last post by:
Hello, Was wondering if anyone could help me out with a bit of wierd prob. I have pear installed in a UNIX box, with PHP 5.1.2. I'm trying to install some packages by running pear install...
4
by: awebguynow | last post by:
Re: only got "pear.old_bat" I had a previous post ".. Upgrade Methods ..." and so far I've gotten around most thorny issues, including patching php5.1.4 with php5apache2_2.dll so I can run it...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.