For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > December 2006 > Pear install question..









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Pear install question..
IchBin

2006-12-20, 9:59 pm

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 . 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-)
IchBin

2006-12-20, 9:59 pm

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 . 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-)
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com