Author Topic: Unable to find PEAR.php  (Read 3038 times)

Offline ekkis

  • Newbie
  • *
  • Posts: 4
Unable to find PEAR.php
« on: November 16, 2009, 01:41:46 PM »
after my last upgrade I got the following error:

Warning: include(PEAR.php) [function.include]: failed to open stream: No such file or directory in /usr/share/roundcubemail/program/include/iniset.php on line 105

so I looked at iniset.php and find the following comments:

// RC include folders MUST be included FIRST to avoid other
// possible not compatible libraries (i.e PEAR) to be included
// instead the ones provided by RC

which intimate the notion that RC includes it's own version of PEAR... except it doesn't.  there is no PEAR.php in the /usr/share/roundcubemail/program/include

I do have PEAR installed so I edited the ini.php to include its path and everything seems to work, but I'm worried perhaps some things will break since obviously the developers had a reason to include their own version of PEAR with RC.

I'm running Fedora 11.

thoughts anyone?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Unable to find PEAR.php
« Reply #1 on: November 16, 2009, 10:47:15 PM »
The PEAR.php file is in the [RC root]/program/lib folder.

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
Unable to find PEAR.php
« Reply #2 on: November 17, 2009, 03:28:22 AM »
Where did you get your copy of RC? There are 2 versions available for download. The 'Complete' should contain everything you need, like PEAR etc. The 'GPL (dependent)' only contains RC code, no thrid party libs like PEAR. I think this version if often used to build thinks like debain packages. I think when you use this version is it expected that you have PEAR installed and in your include path (especially when using packaged versions for RC).
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline ekkis

  • Newbie
  • *
  • Posts: 4
Unable to find PEAR.php
« Reply #3 on: November 17, 2009, 01:36:29 PM »
Quote from: skaero;23136
The PEAR.php file is in the [RC root]/program/lib folder.


there is no such file in that directory

Offline ekkis

  • Newbie
  • *
  • Posts: 4
Unable to find PEAR.php
« Reply #4 on: November 17, 2009, 01:45:22 PM »
Quote from: JohnDoh;23150
Where did you get your copy of RC? There are 2 versions available for download. The 'Complete' should contain everything you need, like PEAR etc. The 'GPL (dependent)' only contains RC code, no thrid party libs like PEAR. I think this version if often used to build thinks like debain packages. I think when you use this version is it expected that you have PEAR installed and in your include path (especially when using packaged versions for RC).

hmm... I'm using the latest package for Fedora 11 from the yum repos:

# rpm -qi roundcubemail
Name        : roundcubemail                Relocations: (not relocatable)
Version     : 0.3                               Vendor: Fedora Project
Release     : 1.fc11                        Build Date: Thu 01 Oct 2009 08:20:59 AM PDT
Install Date: Thu 29 Oct 2009 09:58:49 AM PDT      Build Host: ppc5.fedora.phx.redhat.com
Group       : Applications/System           Source RPM: roundcubemail-0.3-1.fc11.src.rpm
Size        : 4923744                          License: GPLv2
Signature   : RSA/8, Fri 02 Oct 2009 07:03:34 AM PDT, Key ID 1dc5c758d22e77f2
Packager    : Fedora Project
URL         : Roundcube - Free webmail for the masses
Summary     : Round Cube Webmail is a browser-based multilingual IMAP client
Description :
RoundCube Webmail is a browser-based multilingual IMAP client
with an application-like user interface. It provides full
functionality you expect from an e-mail client, including MIME
support, address book, folder manipulation, message searching
and spell checking. RoundCube Webmail is written in PHP and
requires the MySQL database or the PostgreSQL database. The user
interface is fully skinnable using XHTML and CSS 2.

but if I do:

# rpm -ql roundcubemail |grep -i pear

I get nothing... perhaps the intention is to use the standard PEAR install (which I have as Version: 1.7.2, Release 3.fc11)?  in such a case a patch to the php.ini would be requisite.