Jump to content


Photo

Plug in - PEAR


  • Please log in to reply
30 replies to this topic

#21 reenyg

reenyg

    Newbie

  • Member
  • Pip
  • 7 posts

Posted 19 January 2006 - 02:55 AM

The installer should run perfectly if your running this as administrator.

Hope this helps, it worked for me after a couple weeks of frustration.

View Post


Thanks a lot, the problem is solved!

W:\>cd usr

W:\usr>cd local

W:\usr\local>cd php

W:\usr\local\php>php -r "readfile('http://pear.php.net/go-pear');"  > go-pear

W:\usr\local\php> php go-pear
Welcome to go-pear!

Go-pear will install the 'pear' command and all the files needed by
it.  This command is your tool for PEAR installation and maintenance.

Use 'php go-pear local' to install a local copy of PEAR.

Go-pear also lets you download and install the PEAR packages bundled
with PHP: DB, Net_Socket, Net_SMTP, Mail, XML_Parser, PHPUnit.


If you wish to abort, press Control-C now, or press Enter to continue:

HTTP proxy (http://user:password...myhost.com:port), or Enter for none::

Below is a suggested file layout for your new PEAR installation.  To
change individual locations, type the number in front of the
directory.  Type 'all' to change all of them or simply press Enter to
accept these locations.

1. Installation prefix          : W:\usr\local\php
2. Binaries directory            : $prefix
3. PHP code directory ($php_dir) : $prefix\pear
4. Documentation base directory  : $php_dir\docs
5. Data base directory          : $php_dir\data
6. Tests base directory          : $php_dir\tests
7. php.exe path                  : W:\usr\local\php\php.exe

1-7, 'all' or Enter to continue:

The following PEAR packages are bundled with PHP: DB, Net_Socket, Net_SMTP,
Mail, XML_Parser, PHPUnit.
Would you like to install these as well? [Y/n] : y

Loading zlib: ok
Downloading package: PEAR-stable......ok
Downloading package: Archive_Tar-stable....ok
Downloading package: Console_Getopt-stable....ok
Downloading package: XML_RPC-stable....ok
Bootstrapping: PEAR...................(remote) ok
Bootstrapping: Archive_Tar............(remote) ok
Bootstrapping: Console_Getopt.........(remote) ok
Downloading package: DB...............ok
Downloading package: Net_Socket.......ok
Downloading package: Net_SMTP.........ok
Downloading package: Mail.............ok
Downloading package: XML_Parser.......ok
Downloading package: PHPUnit..........ok
Extracting installer..................ok
warning: pear/PEAR requires package "pear/Archive_Tar" (version >= 1.3.1)
warning: pear/PEAR requires package "pear/Console_Getopt" (version >= 1.2)
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
pear/PEAR can optionally use package "pear/PEAR_Frontend_Web" (version >= 0.5.0)

pear/PEAR can optionally use package "pear/PEAR_Frontend_Gtk" (version >= 0.4.0)

install ok: channel://pear.php.net/PEAR-1.4.6
install ok: channel://pear.php.net/Archive_Tar-1.3.1
install ok: channel://pear.php.net/Console_Getopt-1.2
install ok: channel://pear.php.net/XML_RPC-1.4.5
install ok: channel://pear.php.net/DB-1.7.6
install ok: channel://pear.php.net/Net_Socket-1.0.6
pear/Net_SMTP can optionally use package "pear/Auth_SASL"
install ok: channel://pear.php.net/Net_SMTP-1.2.7
install ok: channel://pear.php.net/Mail-1.1.9
install ok: channel://pear.php.net/XML_Parser-1.2.7
pear/PHPUnit can optionally use package "pear/PHP_Compat"
install ok: channel://pear.php.net/PHPUnit-1.3.2

******************************************************************************
WARNING!  The include_path defined in the currently used php.ini does not
contain the PEAR PHP directory you just specified:
<W:\usr\local\php\pear>
If the specified directory is also not in the include_path used by
your scripts, you will have problems getting any PEAR packages working.


Would you like to alter php.ini <W:\usr\local\php\php.ini>? [Y/n] : y

php.ini <W:\usr\local\php\php.ini> include_path updated.

Current include path          : .;/usr/local/PHP/includes;/usr/local/PHP/pear
Configured directory          : W:\usr\local\php\pear
Currently used php.ini (guess) : W:\usr\local\php\php.ini
Press Enter to continue:

The 'pear' command is now at your service at w:\usr\local\php\pear.bat

** The 'pear' command is not currently in your PATH, so you need to
** use 'w:\usr\local\php\pear.bat' until you have added
** 'W:\usr\local\php' to your PATH environment variable.

Run it without parameters to see the available actions, try 'pear list'
to see what packages are installed, or 'pear help' for help.

For more information about PEAR, see:

  http://pear.php.net/faq.php
  http://cvs.php.net/c...manager.txt?p=1
  http://pear.php.net/manual/

Thanks for using go-pear!



* WINDOWS ENVIRONMENT VARIABLES *
For convenience, a REG file is available under W:\usr\local\php\PEAR_ENV.reg .
This file creates ENV variables for the current user.

Double-click this file to add it to the current user registry.


W:\usr\local\php>



#22 MrOnline

MrOnline

    Beta Team Member

  • Beta Tester
  • Pip
  • 16 posts

Posted 19 January 2006 - 03:00 AM

No problem. Its not as nice as the web-based version, but perhaps it could be added to a .bat file and linked to the admin area. This should help alot of people, plus I think this keeps it up to date.

#23 olajideolaolorun

olajideolaolorun

    Project Manager

  • Admin
  • PipPipPipPipPip
  • 2,348 posts
  • Gender:Male
  • Location:Atlanta, GA
  • SourceForge IDempirex
  • Wiki ID: olajideolaolorun
  • IRC Nickname: Olajide
  • Main OS: Windows 10

Posted 19 January 2006 - 09:17 AM

I will definately do that. Thanks a lot MrOnline <_<

#24 alfblack

alfblack

    Newbie

  • Member
  • Pip
  • 5 posts

Posted 07 February 2006 - 07:52 AM

UPDATE:

Looks like it's working now. -_- sweet!!

#25 olajideolaolorun

olajideolaolorun

    Project Manager

  • Admin
  • PipPipPipPipPip
  • 2,348 posts
  • Gender:Male
  • Location:Atlanta, GA
  • SourceForge IDempirex
  • Wiki ID: olajideolaolorun
  • IRC Nickname: Olajide
  • Main OS: Windows 10

Posted 08 February 2006 - 08:40 AM

I have no idea why it works for every 3 in 5 computers.

#26 haggy

haggy

    Beta Team Member

  • Beta Tester
  • Pip
  • 11 posts
  • Location:Germany
  • SourceForge IDhaggy
  • Wiki ID: haggy
  • IRC Nickname: haggy

Posted 09 May 2006 - 08:14 AM

after i added a
[b]?>[/b]
on the end of the actual script from http://go-pear.org it works finally !
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Running Uniform Server [3.3] from a 512MB USB Stick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Running Uniform Server [3.3] on a 60GB USB HDD :)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#27 olajideolaolorun

olajideolaolorun

    Project Manager

  • Admin
  • PipPipPipPipPip
  • 2,348 posts
  • Gender:Male
  • Location:Atlanta, GA
  • SourceForge IDempirex
  • Wiki ID: olajideolaolorun
  • IRC Nickname: Olajide
  • Main OS: Windows 10

Posted 16 May 2006 - 09:31 AM

:( Don't tell me they missed that?

#28 ook

ook

    Newbie

  • Member
  • Pip
  • 2 posts

Posted 25 June 2006 - 05:56 AM

I got a really sweet instal by downloading the new Pear installer:

Starting installation ...
Loading zlib: ok
Downloading package: PEAR-stable......ok
Downloading package: Archive_Tar-stable....ok
Downloading package: Console_Getopt-stable....ok
Downloading package: XML_RPC-stable....ok
Downloading package: HTML_Template_IT-stable....ok
Downloading package: Net_UserAgent_Detect-stable....ok
Downloading package: PEAR_Frontend_Web-alpha....ok
Bootstrapping: PEAR...................(remote) ok
Bootstrapping: Archive_Tar............(remote) ok
Bootstrapping: Console_Getopt.........(remote) ok
Downloading package: MDB2.............ok
Downloading package: Net_Socket.......ok
Downloading package: Net_SMTP.........ok
Downloading package: Mail.............ok
Downloading package: XML_Parser.......ok
Downloading package: PHPUnit..........ok
Extracting installer..................ok
warning: pear/PEAR requires package "pear/Archive_Tar" (version >= 1.3.1)
warning: pear/PEAR requires package "pear/Console_Getopt" (version >= 1.2)
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
pear/PEAR can optionally use package "pear/PEAR_Frontend_Web" (version >= 0.5.0)
pear/PEAR can optionally use package "pear/PEAR_Frontend_Gtk" (version >= 0.4.0)
install ok: channel://pear.php.net/PEAR-1.4.9
install ok: channel://pear.php.net/Archive_Tar-1.3.1
install ok: channel://pear.php.net/Console_Getopt-1.2
install ok: channel://pear.php.net/XML_RPC-1.4.8
install ok: channel://pear.php.net/HTML_Template_IT-1.1.4
install ok: channel://pear.php.net/Net_UserAgent_Detect-2.2.0
install ok: channel://pear.php.net/PEAR_Frontend_Web-0.5.1
install ok: channel://pear.php.net/MDB2-2.1.0
install ok: channel://pear.php.net/Net_Socket-1.0.6
pear/Net_SMTP can optionally use package "pear/Auth_SASL"
install ok: channel://pear.php.net/Net_SMTP-1.2.8
install ok: channel://pear.php.net/Mail-1.1.10
install ok: channel://pear.php.net/XML_Parser-1.2.7
pear/PHPUnit can optionally use package "pear/PHP_Compat"
install ok: channel://pear.php.net/PHPUnit-1.3.2
Writing WebFrontend file ...
Note: To use PEAR without any problems you need to add your
PEAR Installation path (W:\home\admin\www\plugins\pear/PEAR)
to your include_path.

Using a .htaccess file or directly edit httpd.conf would be working solutions
for Apache running servers, too.

For more information about PEAR, see:
PEAR FAQ
PEAR Manual

Thanks for using go-pear!

Start Web Frontend of the PEAR Installer >>


I just hope I got my include paths right. I ended up with this in my php.ini after the link they offered for instructions errored out:

safe_mode_include_dir =".;W:\home\admin\www\plugins\pear/PEAR;/home/admin/www/plugins/pear/PEAR"

include_path=".;W:\home\admin\www\plugins\pear/PEAR;/home/admin/www/plugins/pear/PEAR"


BTW, the ?> was missing from the end but it ran without error. :)

Edited by ook, 25 June 2006 - 06:00 AM.


#29 olajideolaolorun

olajideolaolorun

    Project Manager

  • Admin
  • PipPipPipPipPip
  • 2,348 posts
  • Gender:Male
  • Location:Atlanta, GA
  • SourceForge IDempirex
  • Wiki ID: olajideolaolorun
  • IRC Nickname: Olajide
  • Main OS: Windows 10

Posted 09 July 2006 - 04:21 PM

I think its ok...

Oh, Thanks... :( hmm.... works for some i see...

#30 Insert Real Name

Insert Real Name

    Newbie

  • Member
  • Pip
  • 1 posts

Posted 26 July 2006 - 01:50 PM

I've managed to get pear working on uniserver after receiving all the errors you guys all have.

Open up a command line window, ( Start > Run > "command" > Enter )

run the following commands.

w:
cd\
cd usr
cd local
cd php
php -r "readfile('http://pear.php.net/go-pear');" > go-pear
php go-pear

The installer should run perfectly if your running this as administrator.

Hope this helps, it worked for me after a couple weeks of frustration.


Actually, if you use

php go-pear local

as the last command, administrator access is no longer required, since it modifies the local copy of php.ini in W:\usr\local\php rather than the system-wide one in your Windows system directory.

#31 olajideolaolorun

olajideolaolorun

    Project Manager

  • Admin
  • PipPipPipPipPip
  • 2,348 posts
  • Gender:Male
  • Location:Atlanta, GA
  • SourceForge IDempirex
  • Wiki ID: olajideolaolorun
  • IRC Nickname: Olajide
  • Main OS: Windows 10

Posted 28 July 2006 - 08:40 PM

There should not even be one in the Windows system directory.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users