Jump to content
The Uniform Server Community

Pear Install Hangs


raklet
 Share

Recommended Posts

Uniform server version 3.5. Windows XP SP2.

 

I am trying to install pear. The web install just hangs (the percent complete bar doesn't even count up a bit). I downloaded the latest go-pear (1.0.2) from pear.php.net/go-pear and got the same result. I then switched to command line installation so I could perhaps get some meaningful information. I get the following:

 

W:\usr\local\php>php.exe w:\home\admin\www\plugins\pear\go_pear.php

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 w:\home\admin\www\plugins\pear\go_pear.php local' to install a local co

py of PEAR.

 

Go-pear also lets you download and install the PEAR packages bundled

with PHP: MDB2.

 

 

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

 

HTTP proxy (http://user:password@proxy.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. Temporary files directory : $prefix\temp

8. php.exe path : W:\usr\local\php\php.exe

 

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

 

The following PEAR packages are bundled with PHP: MDB2.

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: Structures_Graph-stable....ok

Bootstrapping: PEAR...................(remote) ok

Bootstrapping: Archive_Tar............(remote) ok

Bootstrapping: Console_Getopt.........(remote) ok

Downloading package: MDB2.............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)

warning: pear/PEAR requires package "pear/Structures_Graph" (version >= 1.0.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)

 

 

 

Thats it. The installer just stops at that last line. It never times out and never gives an error message. The blinking cursor just sits in the DOS box as if it is waiting for something to happen. Anyone have suggestions?

 

Thanks,

Tyler

Link to comment
Share on other sites

I ran the manual installation of Pear (I covered this in detail see post:

http://forum.uniformserver.com/index.php?showtopic=662

}

 

I have included my results below:

 

W:\>cd usr\local\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: MDB2.

 

 

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

 

HTTP proxy (http://user:password@proxy.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. Temporary files directory : $prefix\temp

8. php.exe path : W:\usr\local\php\php.exe

 

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

 

The following PEAR packages are bundled with PHP: MDB2.

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: Structures_Graph-stable....ok

Bootstrapping: PEAR...................(remote) ok

Bootstrapping: Archive_Tar............(remote) ok

Bootstrapping: Console_Getopt.........(remote) ok

Downloading package: MDB2.............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)

warning: pear/PEAR requires package "pear/Structures_Graph" (version >= 1.0.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)

 

Yep they are the same as yours (the results are similar when run from admin) what this points to, is a problem at the Pear end and not UniServer.

 

Olajide if you are reading this do you think the above is a probable cause?

Link to comment
Share on other sites

Thanks Olajide, so it’s not just raklet and I with the problem!

 

Well I have run the old and new versions of go-pear and neither do quite what I expected. :D

 

Seems as if I have got that dog and bone syndrome again. :D

Yep, a few more tests to see what’s going on and hopefully how to resolve this problem.

 

All the best

Ric :)

Link to comment
Share on other sites

I am not convinced that the new go-pear script works. :D

 

The version that ships with 3.5-Apollo does! Although you need to make a few changes. Added to this you need to download all packages individually (looks as if the default set are not now automatically download) :D

 

Try the following (no guarantees): :)

 

1) Install a new version of 3.5-Apollo

2) From apanel click on Install Pear

3) Click Next

4) For some reason you need to remove W: from the paths (it prevents Pear hanging)

 

The paths look like this:

 

1. Installation prefix \home\admin\www\plugins\pear

11. php.exe path, optional (CLI command tools) \home\admin\www\plugins\pear\

 

5) Click Install

 

The install should be relatively fast, ignore any errors and the need to change paths (no need already set-up).

 

Now type the following into your browser:

 

http://localhost/apanel/plugins/pear/index.php

 

This will bring up the Pear front-end allowing you to download modules.

 

Before downloading any package update the Channel Management system

 

1) To the left click on Channel Management

2) Then click on Update All Channels

 

You will receive something like this:

 

Updating channel "pear.php.net"

Update of Channel "pear.php.net" succeeded

Updating channel "pecl.php.net"

Update of Channel "pecl.php.net" succeeded

 

You are now ready to install packages just follow these steps for each package: :)

For example HTML

 

1) Click on Package Search

2) In Package name enter HTML (after a relatively long time a list will be displayed)

3) Find pear.php.net HTML_Common and click on the green plus image.

4) That’s it the package will be installed.

 

Note 1: Packages are loaded into folder: *\Uniform Server\udrive\usr\local\php\pear

Note 2: PHP.ini does not need changing the default paths are correct.

 

The above is the quickest workaround I could think off, it’s a shame default packages are not automatically downloaded.

 

All the best

Ric :)

Link to comment
Share on other sites

  • 2 months later...

Thank you Ric, your analysis was spot on.

 

Steve Albrecht

 

 

I am not convinced that the new go-pear script works. :(

 

The version that ships with 3.5-Apollo does! Although you need to make a few changes. Added to this you need to download all packages individually (looks as if the default set are not now automatically download) :)

 

Try the following (no guarantees): :)

 

1) Install a new version of 3.5-Apollo

2) From apanel click on Install Pear

3) Click Next

4) For some reason you need to remove W: from the paths (it prevents Pear hanging)

 

The paths look like this:

 

1. Installation prefix \home\admin\www\plugins\pear

11. php.exe path, optional (CLI command tools) \home\admin\www\plugins\pear\

 

5) Click Install

 

The install should be relatively fast, ignore any errors and the need to change paths (no need already set-up).

 

Now type the following into your browser:

 

http://localhost/apanel/plugins/pear/index.php

 

This will bring up the Pear front-end allowing you to download modules.

 

Before downloading any package update the Channel Management system

 

1) To the left click on Channel Management

2) Then click on Update All Channels

 

You will receive something like this:

 

Updating channel "pear.php.net"

Update of Channel "pear.php.net" succeeded

Updating channel "pecl.php.net"

Update of Channel "pecl.php.net" succeeded

 

You are now ready to install packages just follow these steps for each package: B)

For example HTML

 

1) Click on Package Search

2) In Package name enter HTML (after a relatively long time a list will be displayed)

3) Find pear.php.net HTML_Common and click on the green plus image.

4) That’s it the package will be installed.

 

Note 1: Packages are loaded into folder: *\Uniform Server\udrive\usr\local\php\pear

Note 2: PHP.ini does not need changing the default paths are correct.

 

The above is the quickest workaround I could think off, it’s a shame default packages are not automatically downloaded.

 

All the best

Ric :)

Link to comment
Share on other sites

  • 2 years later...

I confirmed PEAR hangs on 5.1-Nano and 5.6.9-Nano

I assume it applies to all versions. :)

 

Cause Go-Pear 1.1.1 no longer works on Uniform Server. Solution is to update to version Go-Pear 1.1.2.

 

Navigate to folder

Make a backup copy of go_pear.php

Replace the old go_pear.php with new version

At the top of your backup copy apply changes as listed to your new version.

 

Alternatively download file go_pear_update_1_1_2.zip from SourceForge

 

Use that file on versions 5.*-Nano and 6.*-Carbo

 

All the best

Ric :angry:

Link to comment
Share on other sites

THanks Ric! it worked!!

 

[ EDIT: I have a question: how do I install a pear package? I have installed PEAR_Frontend_Gtk2, would it help me? ]

 

Now let me describe exactly what I did to install PEAR on my uniserver 5.1 nano for others who may have the same problem.

 

First, downloaded the new go_pear.php from here:

http://sourceforge.net/projects/miniserver..._2.zip/download

 

Then....

 

1. I went to:

\home\admin\www\plugins\pear

 

2. Zipped the old go_pear.php (for backup) :)

 

3. Replaced the new one.

 

4. Went to apanel

 

5. Clicked on "Install Pear" from left menu

 

6. clicked "next >>", checked "PEAR_Frontend_Gtk2", clicked install

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...