SV: [PEAR] SV: pear installation
| From: | Markus Bagge | Date: | Fri, 24 Oct 2003 23:58:06 +0000 |
| Subject: | SV: [PEAR] SV: pear installation | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-8570@lists.php.net to get a copy of this message | ||
Yes, removing the switch '-n' did fix the warning from go-pear.bat. Thank you. However,
there are still some problems. But now it is in pear.bat. It seems like that if e.g.
%PHP_PEAR_INSTALL_DIR% is a directory then
IF NOT EXIST %PHP_PEAR_INSTALL_DIR% GOTO SOME_ERROR
will always print "HELLO". So I had to change it to
IF NOT EXIST %PHP_PEAR_INSTALL_DIR%\pear.bat GOTO SOME_ERROR
to make it work.
Moreover, if I don't add
SET PHP_PEAR_INSTALL_DIR=...
SET PHP_PEAR_BIN_DIR=...
SET PHP_PEAR_PHP_BIN=...
to my autoexec.bat I gets an error message that telling me that I don't have enough environment
space (or something like that), when I run the pear.bat. (Well, this can actually be solved by
right-clicking the pear.bat and alter some memory setting).
So, finally it seems like it works (I hope). Thanks again.
/Markus
>
> Markus Bagge wrote:
>
> >Unfortunately I didn't find go-pear.bat at
> >http://cvs.php.net/cvs.php/php-src/pear/scripts . (Hope
> >that was
> the place
> >you meant). So I tried the second alternatve. From the
> Start-menu I chosed
> >Run and wrote: "C:\apache\php-4.3.3-Win32\cli\php.exe go-pear.php".
> >(go-pear.php is ver. 1.52). A DOS-prompt window appeared just as
> fast as it
> >dissapeared.
> >
> >The go-pear.bat I use is
> ><snip>
> >@ECHO OFF
> >set PHP_BIN=cli\php.exe
> >%PHP_BIN% -n -d output_buffering=0 PEAR\go-pear.php
> >
> This line should read
>
> %PHP_BIN% -d output_buffering=0 PEAR\go-pear.php
>
> >pause
> ></snip>
> >
> >
> That will fix the problem. The reason is clear from the output of php
> -h. Observe:
>
> C:\Documents and Settings\Owner>"\program files\php\cli\php" -h
> Usage: php [options] [-f] <file> [args...]
> php [options] -r <code> [args...]
> php [options] [-- args...]
> -a Run interactively
> -c <path>|<file> Look for php.ini file in this directory
> -n No php.ini file will be used
> -d foo[=bar] Define INI entry foo with value 'bar'
> -e Generate extended information for debugger/profiler
> -f <file> Parse <file>.
> -h This help
> -i PHP information
> -l Syntax check only (lint)
> -m Show compiled in modules
> -r <code> Run PHP <code> without using script tags <?..?>
> -s Display colour syntax highlighted source.
> -v Version number
> -w Display source with stripped comments and whitespace.
> -z <file> Load Zend extension <file>.
>
> args... Arguments passed to script. Use -- args when first
> argument
> starts with - or script is read from stdin
>
> -n says "No php.ini file will be used"
>
> Regards,
> Greg
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>