• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 311
  • Last Modified:

suse 10 pear reports conflicting version

i am trying to install pear pkgs on suse 10 pear on a host without net access :-(

pear -V reports
  PEAR Version: 1.3.5
  PHP Version: 4.4.0
  Zend Engine Version: 1.3.0

yet when i download DB-1.7.5.tgz to install manually via
  pear install /tmp/DB-1.7.5.tgz

it reports
  requires package 'PEAR' >= 1.0b1
  DB: Dependencies failed

using --force doesn't seem to help
  pear install -f /tmp/PEAR-1.4.9.tgz

results in
  requires package 'PEAR' >=1.3.3
  PEAR: Dependencies failed

using go-pear.php fails due to lack of access to the internet.

any suggestions?

thanks
0
prevostpilot
Asked:
prevostpilot
  • 2
1 Solution
 
Richard QuadlingSenior Software DeverloperCommented:
There is the pear command ...

PEAR package-dependencies

But I'm having trouble getting it to work. I don't know if it works on installed packages or not.

I've probably got the syntax wrong.

...

>pear help package-dependencies
pear package-dependencies
List all depencies the package has.

So ...

>pear package-dependencies PEAR

Warning: fopen(PEAR): failed to open stream: Permission denied in PEAR\PackageFile.php on line 419

Warning: fread(): supplied argument is not a valid stream resource in PEAR\PackageFile.php on line 420

Warning: fclose(): supplied argument is not a valid stream resource in PEAR\PackageFile.php on line 421
could not open file "PEAR"


Aha!

I tried ...

>pear package-dependencies pear\pear\php\compatinfo\cli.php
Could not get contents of package "C:\PEAR\pear\PHP\compatinfo\Cli.php". Invalid tgz file.

So, try ...

>pear package-dependencies /tmp/DB-1.7.5.tgz

0
 
prevostpilotAuthor Commented:
it may be possible to d/l the PEAR pkg on a laptop, copy it to the other box, and install it from the local copy, but this didnt work for me.
alas, i finally surrendered - i bought a pci-to-pcmcia adapter, installed pcmciautils, and a verizon 5740 card :-(
0
 
Richard QuadlingSenior Software DeverloperCommented:
My PEAR -V reports

PEAR Version: 1.4.8
PHP Version: 5.1.3-dev
Zend Engine Version: 2.1.0



Ok.

I did ...

>PEAR download PEAR
downloading PEAR-1.4.9.tgz ...
Starting to download PEAR-1.4.9.tgz (283,443 bytes)
........done: 283,443 bytes
File C:\\PEAR-1.4.9.tgz downloaded


Then ...

>pear package-dependencies c:\pear-1.4.9.tgz

and got ...


Notice: Undefined index:  attribs in PEAR\Command\Package.php on line 611
DEPENDENCIES FOR PEAR
=====================
REQUIRED? TYPE           NAME                    VERSIONING                   GROUP
Yes       Php                                     (version >= 4.2)
Yes       Pear Installer                          (version >= 1.4.0a12)
Yes       Package        pear/Archive_Tar         (recommended version 1.3.1)
Yes       Package        pear/Console_Getopt      (recommended version 1.2)
Yes       Package        pear/PEAR_Frontend_Web  conflicts
Yes       Package        pear/PEAR_Frontend_Gtk  conflicts
Yes       Extension      xml
Yes       Extension      pcre
No        Package        pear/XML_RPC             (version >= 1.4.0)
No        Package        pear/PEAR_Frontend_Web   (version >= 0.5.0)
No        Package        pear/PEAR_Frontend_Gtk   (version >= 0.4.0)
No        Package        pear/PEAR_Frontend_Gtk2

So, package-dependencies DOES work on the downloaded file.

So, use PEAR DOWNLOAD xxxx (where xxxx is the package you want), then you can use PEAR PACKAGE-DEPENDENCIES xxxxtgz (where xxxx is the downloaded package with the version number).
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now