Re: go-pear new version
| From: | Tomas V.V.Cox | Date: | Mon, 25 Mar 2002 16:10:40 +0000 |
| Subject: | Re: go-pear new version | ||
| References: | 1 | Groups: | php.pear.dev php.pear.general |
| Request: | Send a blank email to pear-dev+get-5102@lists.php.net to get a copy of this message | ||
El lun, 25-03-2002 a las 15:53, Christian Stocker escribió:
> On 25 Mar 2002, Tomas V.V.Cox wrote:
>
> >
> > So basically, when someone will do a:
> > lynx -source http://pear.php.net/~cox/go-pear | sh
> >
> > He will get a ready system to use the lastest PEAR DB, Mail, IT, ... and
> > also the PEAR Installer to start downloading and installing packages
> > from the web (more info on what are pear packages at:
> >
> > http://cvs.php.net/co.php/pearweb/doc/pear_package_manager.txt).
>
> great tool :)
Thanks :-)
> but
> ***
> sh: /usr/local/bin/pear: Permission denied
> chmod: changing permissions of `/usr/local/bin/pear': Operation not
> permitted
>
> The 'pear' command has been successfully installed under
> /usr/local/bin/pear
> try it typing '/usr/local/bin/pear' for help
> ***
>
> Yes, i didn't have permissions to install in /usr/local/bin/pear (so no
> problem with that), and there was already a pear in /usr/local/bin. maybe
> that's confusing for the installer (as it wasn't actually successful :) )
--- go-pear Mon Mar 25 15:44:57 2002
+++ go-pear_n Mon Mar 25 17:03:51 2002
@@ -64,8 +64,8 @@
if [ $destpearin ]; then
TARGET=$destpearin
fi
-touch $TARGET
-if [ ! -f $TARGET ]; then
+touch $TARGET > /dev/null
+if [ $? -ne 0 ]; then
echo "Could not create file '$TARGET'"
exit -1
fi
This should solve that problem (script already updated). Thanks for
notifying it.
Tomas V.V.Cox