[horde] problem with new install on new Centos 7.5 system

Grouchy Sysadmin sysadmin at grouchysysadmin.com
Sat Dec 1 04:02:22 UTC 2018


On 11/30/18 9:17 PM, Edward Burr wrote:
>
> Quoting Jan Schneider <jan at horde.org>:
>
>> Zitat von Edward Burr <egburr at burr.cc>:
>>
>>> Quoting Jan Schneider <jan at horde.org>:
>>>
>>>> Zitat von Edward Burr <egburr at burr.cc>:
>>>>
>>>>> Another thought, has anyone actually installed Horde Groupware on 
>>>>> CentOS 7.5 yet? Is there a preferred Linux distribution? I chose 
>>>>> CentOS because I work with Red Hat Enterprise Linux on a daily 
>>>>> basis at work.
>>>>>
>>>>> Though I am concerned that with the Horde_Backup / Horde_Core 
>>>>> version requirement mismatch and their independence from any Linux 
>>>>> distribution, I wonder how anyone has gotten around that?
>>>>>
>>>>> Is there something missing from the install documentation at 
>>>>> https://www.horde.org/apps/groupware/docs/INSTALL that I should 
>>>>> know about?
>>>>>
>>>>>
>>>>> Quoting Edward Burr <egburr at burr.cc>:
>>>>>
>>>>>> Quoting Jan Schneider <jan at horde.org>:
>>>>>>
>>>>>>> Zitat von Edward Burr <egburr at burr.cc>:
>>>>>>>
>>>>>>>> Quoting Ralf Lang <lang at b1-systems.de>:
>>>>>>>>
>>>>>>>>> Am 14.11.18 um 19:21 schrieb Edward Burr:
>>>>>>>>>> Hi Ralf,
>>>>>>>>>>
>>>>>>>>>> Thanks for the suggestion. 'yum install php-http' installed
>>>>>>>>>> php-pecl-http and now "pecl list" shows pecl_http is 
>>>>>>>>>> installed. So,
>>>>>>>>>> the step 2.5 issue appears to be cleared up?
>>>>>>>>>>
>>>>>>>>>> But the step 3.1 and 3.3 issues remain.
>>>>>>>>>>
>>>>>>>>>> 3.1) During "pear install -a horde/groupware":
>>>>>>>>>> Failed to download horde/Horde_Backup within preferred state 
>>>>>>>>>> "stable",
>>>>>>>>>> latest release is version 1.0.0RC1, stability "beta", use
>>>>>>>>>> "channel://pear.horde.org/Horde_Backup-1.0.0RC1" to install
>>>>>>>>>> Failed to download pecl/sasl within preferred state "stable", 
>>>>>>>>>> latest
>>>>>>>>>> release is version 0.1.0, stability "alpha", use
>>>>>>>>>> "channel://pecl.php.net/sasl-0.1.0" to install
>>>>>>>>>> Failed to download pecl/idn within preferred state "stable", 
>>>>>>>>>> latest
>>>>>>>>>> release is version 0.2.0, stability "beta", use
>>>>>>>>>> "channel://pecl.php.net/idn-0.2.0" to install
>>>>>>>>>>
>>>>>>>>>> Trying to install each manually fails.
>>>>>>>>>>
>>>>>>>>> If you are using distribution php, get the PECLs from 
>>>>>>>>> distribution (yum).
>>>>>>>>>
>>>>>>>>> For installing RC packages, either preinstall Horde_Backup 
>>>>>>>>> ignoring deps
>>>>>>>>> (pear install -n horde/Horde_Backup) or allow installation of 
>>>>>>>>> beta software
>>>>>>>>>
>>>>>>>>> |pear config-setpreferred_state beta|
>>>>>>>>>
>>>>>>>>> change to stable when you are done.
>>>>>>>>>
>>>>>>>>
>>>>>>>> yum install php-sasl
>>>>>>>> yum install pecl-sasl
>>>>>>>> yum install pecl_sasl
>>>>>>>> yum install pear-sasl
>>>>>>>> yum install pear_sasl
>>>>>>>> # All result in "No package XXX available. Nothing to do."
>>>>>>>>
>>>>>>>> yum install php-idn
>>>>>>>> # installed php-idn-1.2c-12
>>>>>>>>
>>>>>>>> pecl install channel://pecl.php.net/idn-0.2.0
>>>>>>>> # still fails with same error
>>>>>>>>
>>>>>>>> I uninstalled all the horde packages and pre-installed 
>>>>>>>> Horde_Backup per your suggestion.
>>>>>>>>
>>>>>>>> pear uninstall `pear list -c horde | tail -n +4 | awk '{ print 
>>>>>>>> "horde/"$1 }'`
>>>>>>>> pear install -n horde/Horde_Backup-1.0.0RC1
>>>>>>>> install ok: channel://pear.horde.org/Horde_Backup-1.0.0RC1
>>>>>>>>
>>>>>>>> Then installed horde:
>>>>>>>> pear install horde/horde_role
>>>>>>>> pear run-scripts horde/horde_role
>>>>>>>> pear install -a horde/groupware
>>>>>>>>
>>>>>>>> But Horde_Core failed to install, and many components depending 
>>>>>>>> on Horde_Core:
>>>>>>>> horde/Horde_Core requires package "horde/Horde_Backup" (version 
>>>>>>>> >= 1.0.0, version <= 2.0.0alpha1, excluded versions: 
>>>>>>>> 2.0.0alpha1), installed version is 1.0.0RC1
>>>>>>>>
>>>>>>>> ASpparently 1.0.0RC1 isn't greater than/equal to 1.0.0 even 
>>>>>>>> though that's apparently the absolute latest available:
>>>>>>>> Failed to download horde/Horde_Backup within preferred state 
>>>>>>>> "stable", latest release is version 1.0.0RC1, stability "beta", 
>>>>>>>> use "channel://pear.horde.org/Horde_Backup-1.0.0RC1" to install
>>>>>>>>
>>>>>>>> How do I satisfy this requirement?
>>>>>>>>
>>>>>>>> The install directions appear pretty straightforward. I've got 
>>>>>>>> to be missing something obvious, but I can't figure out what it 
>>>>>>>> could be.
>>>>>>>
>>>>>>> pear install horde/horde_backup-beta
>>>>>>
>>>>>> Among other things, that did:
>>>>>> downloading Horde_Backup-1.0.0RC1.tgz ...
>>>>>> Starting to download Horde_Backup-1.0.0RC1.tgz (8,518 bytes)
>>>>>> .....done: 8,518 bytes
>>>>>> install ok: channel://pear.horde.org/Horde_Backup-1.0.0RC1
>>>>>>
>>>>>> which leaves us still with the same problem as above.
>>>>>>
>>>>
>>>> why do you install Horde_Backup at all? It's not required at all.
>>>
>>> This is why:
>>> [root at c7 horde]# pear install -a horde/groupware
>>> WARNING: "pear/Console_Getopt" is deprecated in favor of 
>>> "pear/Console_GetoptPlus"
>>> Failed to download horde/Horde_Backup within preferred state 
>>> "stable", latest release is version 1.0.0RC1, stability "beta", use 
>>> "channel://pear.horde.org/Horde_Backup-1.0.0RC1" to install
>>> Failed to download pecl/sasl within preferred state "stable", latest 
>>> release is version 0.1.0, stability "alpha", use 
>>> "channel://pecl.php.net/sasl-0.1.0" to install
>>> Failed to download pecl/idn within preferred state "stable", latest 
>>> release is version 0.2.0, stability "beta", use 
>>> "channel://pecl.php.net/idn-0.2.0" to install
>>>
>>> I guess I got so hung up on those three failures during the install 
>>> because of the subsequent error with:
>>>
>>> [root at c7 horde]# groupware-install
>>> PHP Warning:  require_once(PEAR/Config.php): failed to open stream: 
>>> No such file or directory in /usr/bin/groupware-install on line 15
>>>
>>> Warning: require_once(PEAR/Config.php): failed to open stream: No 
>>> such file or directory in /usr/bin/groupware-install on line 15
>>> PHP Fatal error:  require_once(): Failed opening required 
>>> 'PEAR/Config.php' (include_path='.:/php/includes:/usr/share/pear
>>> Fatal error: require_once(): Failed opening required 
>>> 'PEAR/Config.php' (include_path='.:/php/includes:/usr/share/pear
>>>
>>> Based on the responses I've received, I was hoping that clearing up 
>>> the pear install failures would fix the groupware-install failure.
>>
>> No, these don't have anything to do with each other.
>>
>>> NOTE: The referenced Config.php that triggers "no such file" is 
>>> present, is in the include_path, and is world readable. So I'm not 
>>> understanding this error, either.
>>>
>>> [root at box /]# ls -l /usr/share/pear/PEAR/Config.php
>>> 68 -rw-r--r--. 1 root root 67882 May 10  2016 
>>> /usr/share/pear/PEAR/Config.php
>>> [root at box /]#
>>
>> This doesn't make much sense indeed.
>
> Okay, if I ignore the Horde_Backup, pecl/sasl, and pecl/idn failures 
> during the "pear install -a horde/groupware", I still get the 
> PEAR/Config.php not found error when I try the "groupware-install". 
> The responses focused on the first part, so I was hoping. Any thoughts 
> on troubleshooting the "groupware-install" failure then?
>
> How can I verify that pear is actually using that include_path it says 
> it is?
> /etc/php.ini has:
> include_path= .:/php/includes:/usr/share/pear"
>
> OMG it's missing a "
>
> Okay, I'm past this now. Sorry to bother you about this part.
>
> The Horde_Backup, pecl/sasl, and pecl/idn failures still bug me, though. 


Perhaps an alternative view may be useful. I tend not to rely on 
distribution packages. Instead, create an individual user account, 
install pear locally, and then use the local pear installation to 
install horde and dependencies. That's the way I've always done it, and 
I've found far less issues.



More information about the horde mailing list