Connecting Tech Pros Worldwide Forums | Help | Site Map

I cannot install anything with pear.

Anthony Smith
Guest
 
Posts: n/a
#1: Dec 28 '06
I always get this message. No matter what package

[as411161@spgs php-5.2.0]$ pear install Date
PHP Warning: Module 'oci8' already loaded in Unknown on line 0
No releases available for package "pear.php.net/Date"
Cannot initialize 'Date', invalid or missing package file
Package "Date" is not valid
install failed


IchBin
Guest
 
Posts: n/a
#2: Dec 28 '06

re: I cannot install anything with pear.


Anthony Smith wrote:
Quote:
I always get this message. No matter what package
>
[as411161@spgs php-5.2.0]$ pear install Date
PHP Warning: Module 'oci8' already loaded in Unknown on line 0
No releases available for package "pear.php.net/Date"
Cannot initialize 'Date', invalid or missing package file
Package "Date" is not valid
install failed
>
Not sure what the problem is but here is some information. I am on the
windows OS. I know that date is installed. Here is the output of the
same command:

pear install Date
Skipping package "pear/Date", already installed as version 1.4.7
No valid packages found
install failed

It looks like this 'oci8' is referenced in the DB and MDB2 packages.
Looks like the reference for the Oracle 8i database drivers\interface. I
would try to reinstall DB or MDB2 which ever you have downloaded.

If that does no work I guess I would reinstall your pear and packages.
It is definitely a problem with either DB or MDB2 packages.

--
Thanks in Advance... http://ichbinquotations.awardspace.com
IchBin, Pocono Lake, Pa, USA http://ichbin.9999mb.com
__________________________________________________ ____________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
salvadorvp@gmail.com
Guest
 
Posts: n/a
#3: Jan 31 '07

re: I cannot install anything with pear.


On Dec 28 2006, 11:55 am, "Anthony Smith" <mrsmi...@hotmail.com>
wrote:
Quote:
I always get this message. No matter whatpackage
>
[as411161@spgs php-5.2.0]$ pear install Date
PHP Warning: Module 'oci8' already loaded in Unknown on line 0
No releases available forpackage"pear.php.net/Date"
Cannot initialize 'Date',invalidormissingpackagefilePackage"Date" is not valid
install failed
I'm having a similar issue with all packages. I'm following the
tutorial on http://www.sitepoint.com/print/getti...rted-with-pear
When typing to install the XML_Parser I get the following result:

C:\Documents and Settings\svalenci>pear install XML_Parser
No releases available for package "pear.php.net/XML_Parser"
Cannot initialize 'XML_Parser', invalid or missing package file
Package "XML_Parser" is not valid
install failed

I'm at work and have a proxy but neither setting that up helped. I've
setup the proxy in the following two ways:
1. proxyurl:port
2. username:password@proxyurl:port (i.e.:
myUserId:myPassw@atworkproxy.com:8080)

SV.

salvadorvp@gmail.com
Guest
 
Posts: n/a
#4: Feb 15 '07

re: I cannot install anything with pear.


UPDATE: I just downloaded the compressed file (tgz) and installed it
by hand.

C:\Temp>pear help install
pear install [options] [channel/]<package...
Installs one or more PEAR packages. You can specify a package to
install in four ways:

"Package-1.0.tgz" : installs from a local file

"http://example.com/Package-1.0.tgz" : installs from
anywhere on the net.

"package.xml" : installs the package described in
package.xml. Useful for testing, or for wrapping a PEAR package in
another package manager such as RPM.

"Package[-version/state][.tar]" : queries your default channel's
server
(pear.php.net) and downloads the newest package with
the preferred quality/state (stable).

To retrieve Package version 1.1, use "Package-1.1," to retrieve
Package state beta, use "Package-beta." To retrieve an uncompressed
file, append .tar (make sure there is no file by the same name first)

To download a package from another channel, prefix with the channel
name like
"channel/Package"

More than one package may be specified at once. It is ok to mix these
four ways of specifying packages.

Options:
-f, --force
will overwrite newer installed packages
-l, --loose
do not check for recommended dependency version
-n, --nodeps
ignore dependencies, install anyway
-r, --register-only
do not install files, only register the package as installed
-s, --soft
soft install, fail silently, or upgrade if already installed
-B, --nobuild
don't build C extensions
-Z, --nocompress
request uncompressed files when downloading
-R DIR, --installroot=DIR
root directory used when installing files (ala PHP's
INSTALL_ROOT), use packagingroot for RPM
-P DIR, --packagingroot=DIR
root directory used when packaging files, like RPM packaging
--ignore-errors
force install even if there were errors
-a, --alldeps
install all required and optional dependencies
-o, --onlyreqdeps
install all required dependencies
-O, --offline
do not attempt to download any urls or contact channels
-p, --pretend
Only list the packages that would be downloaded

Closed Thread