Koozali.org: home of the SME Server

[Solved] Missing libmcrypt.so.4

Offline jon

  • **
  • 34
  • +0/-0
[Solved] Missing libmcrypt.so.4
« on: March 13, 2016, 05:04:24 AM »
I'm trying to install Joomla in an I-Bay using this page as a guide:  https://wiki.contribs.org/Joomla_3

I've installed the latest version of PHP-SCL as indicated in the instructions.   However, when I issue this command:

yum --enablerepo=remi install php54-php-mcrypt php55-php-mcrypt php56-php-mcrypt

I get dependency errors:

Loaded plugins: fastestmirror, smeserver
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.mirror.vexxhost.com
 * smeaddons: mirror.canada.pialasse.com
 * smeextras: mirror.canada.pialasse.com
 * smeos: mirror.canada.pialasse.com
 * smeupdates: mirror.canada.pialasse.com
 * updates: centos.mirror.vexxhost.com
Resolving Dependencies
--> Running transaction check
---> Package php54-php-mcrypt.x86_64 0:5.4.45-5.el6.remi will be installed
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php54-php-mcrypt-5.4.45-5.el6.remi.x86_64
---> Package php55-php-mcrypt.x86_64 0:5.5.33-1.el6.remi will be installed
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php55-php-mcrypt-5.5.33-1.el6.remi.x86_64
---> Package php56-php-mcrypt.x86_64 0:5.6.19-1.el6.remi will be installed
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php56-php-mcrypt-5.6.19-1.el6.remi.x86_64
--> Finished Dependency Resolution
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Error: Package: php55-php-mycrpt-5.5.33-1.el6.remi.x86_64
          Requires: libmcrypt.so.4()(64bit)
Error: Package: php56-php-mycrpt-5.6.19-1.el6.remi.x86_64
          Requires: libmcrypt.so.4()(64bit)
Error: Package: php54-php-mycrpt-5.4.45-5-1.el6.remi.x86_64
          Requires: libmcrypt.so.4()(64bit)

I'm at a loss on what to do next and how to solve this issue.   Google is not my friend right now...
« Last Edit: March 13, 2016, 05:46:19 PM by jon »
.........

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Missing libmcrypt.so.4
« Reply #1 on: March 13, 2016, 05:27:22 AM »
jon

Have you configured both the stephdl & remi repositories, & checked that they are configured correctly ?

db yum_repositories show stephdl
db yum_repositories show remi

Compare the outputs with the config shown on the wiki page
https://wiki.contribs.org/PHP_Software_Collections

Also did you check the php configs

config show php54
config show php55
config show php56
Compare the outputs with the config shown on the wiki page

Also show us a list of the repositories configured (& enabled by default) on your server
db yum_repositories show
(there was a commend published recently to display this info more succinctly search on yum....)

Here are the standard ones that should be enabled ie have in the db config the setting
status enabled

https://wiki.contribs.org/SME_Server:Documentation:FAQ:Section01#Which_repositories_should_be_enabled

Only enable the standard ones or you may have issues & wrong versions of rpms installed etc, which will/may cause dependency issues when updating etc.
Conversely you may not have the correct repos enabled or even correctly configured, so yum cannot find the required rpms.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Missing libmcrypt.so.4
« Reply #2 on: March 13, 2016, 06:58:27 AM »
yum --enablerepo=remi install php54-php-mcrypt php55-php-mcrypt php56-php-mcrypt

Why are you trying to install three different versions of php-mcrypt? Do you really have three (actually four) versions of php installed? Why?

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Missing libmcrypt.so.4
« Reply #3 on: March 13, 2016, 07:39:10 AM »
Why are you trying to install three different versions of php-mcrypt? Do you really have three (actually four) versions of php installed? Why?

It is saying to do that on the Joomla wiki page
https://wiki.contribs.org/Joomla_3
ie
You will also need to install a PHP module which doesn't come installed as a default. From the command line:
[root@e-smith ~]# yum --enablerepo=remi install php54-php-mcrypt php55-php-mcrypt php56-php-mcrypt

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

guest22

Re: Missing libmcrypt.so.4
« Reply #4 on: March 13, 2016, 10:17:21 AM »
          Requires: libmcrypt.so.4()(64bit)


Enable the epel repo (see wiki) and then 'yum install libmcrypt --enablerepo=epel'. Then run your above commands again.

Offline jon

  • **
  • 34
  • +0/-0
Re: Missing libmcrypt.so.4
« Reply #5 on: March 13, 2016, 02:40:43 PM »
jon

Have you configured both the stephdl & remi repositories, & checked that they are configured correctly ?

I should have mentioned in my first post that this is a brand new server, SME9.1 plus updates were loaded minutes before I started on the Joomla install.

I have one I-Bay and just the admin user.

db yum_repositories show stephdl
db yum_repositories show remi

stephdl=repository
    BaseURL=http://mirror.de-labrusse.fr/smeserver/$releasever
    EnableGroups=no
    GPGCheck=yes
    GPGKey=http://mirror.de-labrusse.fr/RPM-GPG-KEY
    Name=Mirror de Labrusse
    Visible=yes
    status=disabled

remi=repository
    BaseURL=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/
    EnableGroups=no
    Exclude=mysql*,php-*
    GPGCheck=yes
    GPGKey=http://rpms.famillecollet.com/RPM-GPG-KEY-remi
    Name=Remi - EL6
    Visible=yes
    status=disabled

epel=repository
    BaseURL=http://download.fedoraproject.org/pub/epel/6/$basearch
    EnableGroups=no
    Exclude=perl-Razor-Agent
    GPGCheck=yes
    GPGKey=http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL
    MirrorList=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=$basearch
    Name=Epel - EL6
    Visible=no
    status=disabled


config show php56
Compare the outputs with the config shown on the wiki page

It appears to be installed correctly. 


Also show us a list of the repositories configured (& enabled by default) on your server
db yum_repositories show
(there was a commend published recently to display this info more succinctly search on yum....)


/sbin/e-smith/auddittools/repositories shows:

base: enabled
centosplus: disabled
contrib: disabled
epel: disabled
extras: disabled
fasttrack: disabled
remi: disabled
smeaddons: enabled
smecontribs: disabled
smedev: disabled
smeextras: enabled
smeos: enabled
smetest: disabled
smeupdates: enabled
smeupdates-testing: disabled
stephdl: disabled
updates: enabled
.........

Offline jon

  • **
  • 34
  • +0/-0
Re: Missing libmcrypt.so.4
« Reply #6 on: March 13, 2016, 02:45:07 PM »

Enable the epel repo (see wiki) and then 'yum install libmcrypt --enablerepo=epel'. Then run your above commands again.

I enabled the epel repo (see comment to janet above) and after running the yum command, I get:

Loaded plugins: fastestmirror, smeserver
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.mirror.rafal.ca
 * epel: mirror.steadfast.net
 * smeaddons: mirror.canada.pialasse.com
 * smeextras: mirror.canada.pialasse.com
 * smeos: mirror.canada.pialasse.com
 * smeupdates: mirror.canada.pialasse.com
 * updates: mirror.netflash.net
No package libcrypt available.
Error:  Nothing to do
.........

guest22

Re: Missing libmcrypt.so.4
« Reply #7 on: March 13, 2016, 02:45:56 PM »
Yup, you misspelled libmcrypt....

Offline jon

  • **
  • 34
  • +0/-0
Re: Missing libmcrypt.so.4
« Reply #8 on: March 13, 2016, 02:57:07 PM »
Yup, you misspelled libmcrypt....

Yup - you are correct.   I need new fingers.   Everything is now working (at least the php56-php-mcrypt installed...)

Thanx RequestedDeletion, janet and Charlie...
.........

guest22

Re: Missing libmcrypt.so.4
« Reply #9 on: March 13, 2016, 03:03:56 PM »
Can you please add [Solved] to the first post subject? TIA