Solved

Call to undefined function mcrypt_get_iv_size() -Error

Posted on 2009-05-07
3
3,752 Views
Last Modified: 2013-12-13
I am getting an error "Call to undefined function mcrypt_get_iv_size() -Error "

I guess this could be solved by installing the right package.But i am new to this so could you please help me with this.

My OS is Linux (and is in a production env.)

So doing a YUM solve my problem or do I need to do something in the php.ini and do I need to restart the apache ? Thanks for your time
0
Comment
Question by:micro_learner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
aconrad earned 500 total points
ID: 24330744
yum sounds good :

yum install php-mcrypt
yum install php-mhash
service httpd restart

0
 

Author Comment

by:micro_learner
ID: 24331146
I did that but it does not seem to work !
This is the output I got when I did the YUM install
 
yum install php-mcrypt
Setting up Install Process
Setting up repositories
system-base               100% |=========================| 1.1 kB    00:00
system-updates-released   100% |=========================|  951 B    00:00
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
No Match for argument: php-mcrypt
Nothing to do

[root@host ~]# yum install php-mhash
Setting up Install Process
Setting up repositories
system-base               100% |=========================| 1.1 kB    00:00
system-updates-released   100% |=========================|  951 B    00:00
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
No Match for argument: php-mhash
Nothing to do
 
 
Do you think the install went ok ?
0
 
LVL 4

Assisted Solution

by:aconrad
aconrad earned 500 total points
ID: 24332216
change gpgcheck=1 to 0 in edit /etc/yum.conf
its about unsigned packages.

hope it will work...
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question