Solved

Call to undefined function mcrypt_get_iv_size() -Error

Posted on 2009-05-07
3
3,601 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
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Using javascript confirmation for a delete in mysql 5 30
tutorial for ebay api 3 32
comma true 6 32
Display images from mysql blob type (Not working) 9 26
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.  …
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

785 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