Pear location and package install.

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Pear location and package install.

Postby w2pc » 11. November 2010 04:08

I installed Xampp on a windows box.

When I nav to \xampp\php\pear I see a second pear folder. What is this folder for? Why is there a pear folder inside a pear folder.

Also when i have to \xampp\php and do
pear install package where should it install ? the last package i installed went under \php\pear\pear\doc

Another package went under \php\pear\packagename

I would am just looking for a standard location where all packages should install so I know that i always just have to reference the same way in php like

include 'packageName/file';

This is what pear returns when i run pear info

auto_discover 0
bin_dir C:\xampp\php
cache_dir C:\xampp\php\PEAR\cache
cache_ttl 3600
cfg_dir C:\xampp\php\PEAR\cfg
data_dir C:\xampp\php\PEAR\data
default_channel pear.php.net
doc_dir C:\xampp\php\PEAR\docs
download_dir C:\xampp\tmp
ext_dir C:\xampp\php\ext
master_server pear.php.net
php_bin C:\xampp\php\php.exe
php_dir C:\xampp\php\PEAR
php_ini C:\xampp\php\php.ini
php_prefix
php_suffix
preferred_mirror pear.php.net
preferred_state stable
remote_config
sig_bin c:\gnupg\gpg.exe
sig_keydir C:\xampp\php\PEAR\pearkeys
sig_type gpg
temp_dir C:\xampp\tmp
test_dir C:\xampp\php\PEAR\tests
umask 0
verbose 1
www_dir C:\xampp\php\PEAR\www
w2pc
 
Posts: 4
Joined: 11. November 2010 03:59

Re: Pear location and package install.

Postby JonB » 11. November 2010 17:07

User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Pear location and package install.

Postby w2pc » 12. November 2010 03:06

That really did not answer my question as to why I have a PEAR file in side a pear while and why some pear classes install to the first pear child and some install to the /docs/ directory in the child pear folder.
w2pc
 
Posts: 4
Joined: 11. November 2010 03:59

Re: Pear location and package install.

Postby JonB » 12. November 2010 06:02

OK

read this too -

http://pear.php.net/manual/en/guide.users.concepts.php

then understand/think about the concept of repositories (sources) and channels =)

and look, VERY CAREFULLY, at this page;

http://pear.php.net/manual/en/

then look in the PEAR folder at the folder structures and the first two folders in particular

then look at the rest of the folders -

then think about the question you asked.

It should be a zen-like transformation

:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Windows

Who is online

Users browsing this forum: hthnightwolf and 68 guests