Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Libmcrypt Help

  1. #1
    New to the CF scene
    Join Date
    Mar 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Libmcrypt Help

    I got this error:

    Fatal error: Call to undefined function mcrypt_get_iv_size()

    so I went to google on how to install the mcrypt extension for php (running php 5.2.4 btw)

    I installed libmcrypt 2.5.8 trough Macports, and its inside my php folder now, but the function still doesn't work

    Help?

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    Check your ext folder in your PHP installation directory and see if you have the mcrypt.so file there. If you do. it should be a simple matter of adding(or uncommenting) the line: extension=mcrypt.so in the php.ini file, and restarting your server.

    Otherwise you'll have to recompile PHP with support for MCrypt:
    Quote Originally Posted by http://php.net/mcrypt
    Installation

    You need to compile PHP with the --with-mcrypt[=DIR] parameter to enable this extension. DIR is the mcrypt install directory. Make sure you compile libmcrypt with the option --disable-posix-threads.
    You can check to see which extensions you have installed with the phpinfo() function.

    Edit:
    I do not use a Mac so I don't know how good this is, but the PHP download page links to this page, which apparently provides an installer for PHP and misc. extensions including MCrypt: http://www.entropy.ch/software/macosx/php/
    Last edited by Inigoesdr; 03-15-2008 at 12:11 AM.

  • #3
    New to the CF scene
    Join Date
    Mar 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    looks like I have to recompile.

    I'll install 5.2.5 while I'm at it.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •