# install-pear.phar errors

- Thread: https://externals.io/message/18697
- Original archive: https://news-web.php.net/php.internals/18697
- Started by Greg Donald on 2005-09-07T19:18:55+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #18697 — Greg Donald — 2005-09-07T19:18:55+00:00

URL: https://externals.io/message/18697#18697

Sorry for the previous misfire.


I built and installed the latest PHP 5.1 CVS source, then at the end it says:


+----------------------------------------------------------------------+
| The installation process is incomplete. The following resources were |
| not installed:                                                       |
|                                                                      |
|   PEAR: PHP Extension and Application Repository                     |
|                                                                      |
| To install these components,                                         |
| download http://pear.php.net/install-pear.phar to php-src/pear/      |
| become the superuser and execute:                                    |
|                                                                      |
|   # make install-su                                                  |
+----------------------------------------------------------------------+
make: *** [install-pear] Error 5


So I did:

cd pear/
wget http://pear.php.net/install-pear.phar
chmod 755 install-pear.phar
cd ..
make install-su


Then I get errors:


# make install-su                 
Installing PEAR environment:      /usr/local/lib/php/
/bin/sh: /home/destiney/php-src-5.1/pear/install-pear.phar: cannot
execute binary file
+----------------------------------------------------------------------+
| The installation process is incomplete. The following resources were |
| not installed:                                                       |
|                                                                      |
|   PEAR: PHP Extension and Application Repository                     |
|                                                                      |
| To install these components,                                         |
| download http://pear.php.net/install-pear.phar to php-src/pear/      |
| become the superuser and execute:                                    |
|                                                                      |
|   # make install-su                                                  |
+----------------------------------------------------------------------+
make: *** [install-pear] Error 5


Any ideas?


Thanks,


-- 
Greg Donald
Zend Certified Engineer
MySQL Core Certification
http://destiney.com/

---

## #18701 — Greg Beaver — 2005-09-07T21:37:04+00:00

URL: https://externals.io/message/18697#18701 · In reply to: #18697

Greg Donald wrote:
> Sorry for the previous misfire.
> 
> 
> I built and installed the latest PHP 5.1 CVS source, then at the end it says:
> 
> 
> +----------------------------------------------------------------------+
> | The installation process is incomplete. The following resources were |
> | not installed:                                                       |
> |                                                                      |
> |   PEAR: PHP Extension and Application Repository                     |
> |                                                                      |
> | To install these components,                                         |
> | download http://pear.php.net/install-pear.phar to php-src/pear/      |
> | become the superuser and execute:                                    |
> |                                                                      |
> |   # make install-su                                                  |
> +----------------------------------------------------------------------+
> make: *** [install-pear] Error 5
> 
> 
> So I did:
> 
> cd pear/
> wget http://pear.php.net/install-pear.phar
> chmod 755 install-pear.phar
> cd ..
> make install-su
> 
> 
> Then I get errors:
> 
> 
> # make install-su                 
> Installing PEAR environment:      /usr/local/lib/php/
> /bin/sh: /home/destiney/php-src-5.1/pear/install-pear.phar: cannot
> execute binary file
> +----------------------------------------------------------------------+
> | The installation process is incomplete. The following resources were |
> | not installed:                                                       |
> |                                                                      |
> |   PEAR: PHP Extension and Application Repository                     |
> |                                                                      |
> | To install these components,                                         |
> | download http://pear.php.net/install-pear.phar to php-src/pear/      |
> | become the superuser and execute:                                    |
> |                                                                      |
> |   # make install-su                                                  |
> +----------------------------------------------------------------------+
> make: *** [install-pear] Error 5
> 
> 
> Any ideas?

install-pear.phar is not an executable, it should be run by PHP.  These
lines are from Makefile.frag - can anyone see anything obviously wrong
with it?

install-pear-installer: $(top_builddir)/sapi/cli/php
	@$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS)
$(srcdir)/install-pear.phar -d "$(peardir)" -b "$(bindir)"

$(top_builddir)/sapi/cli/php should be the php binary, no?

Greg
