Solved

Call to undefined function mcrypt_get_iv_size() -Error

Posted on 2009-05-07
3
3,503 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
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
aconrad earned 500 total points
Comment Utility
yum sounds good :

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

0
 

Author Comment

by:micro_learner
Comment Utility
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
Comment Utility
change gpgcheck=1 to 0 in edit /etc/yum.conf
its about unsigned packages.

hope it will work...
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
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 count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now