Re: install-pear.phar errors
| From: | Greg Beaver | Date: | Wed, 07 Sep 2005 21:37:04 +0000 |
| Subject: | Re: install-pear.phar errors | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-18701@lists.php.net to get a copy of this message | ||
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