Menu

mcrypt init error encoder

2003-06-30
2003-07-30
  • Nobody/Anonymous

    Hello I am having problems getting microcode version 0.98 b to work correctly on my Linux box which is redhat 9 standard install. I have php version 4.2.2. Anyways compilation of the encoder seems to go ok but then when I run it I get the error message mcrypt init failed. Here is an example below:
    [root@kellyserv bin]# ./encoder /var/www/html/test.php /var/www/html/phphostcms/test.php 31

    microCODE Encoder V 0.98b (C) 2001-2002 by Databay AG

    MCRYPT INIT FAILED![root@kellyserv bin]#

    Also I have tried it using the precompiled encoder and i have the same error. I have tried multiple scripts, including simple little one line echo statements, also tried removing the <? and ?>. Cant seem to shake this error. I hope someone can help me out.

     
    • Karsten Richter

      Karsten Richter - 2003-06-30

      looks like you are using an old version of mcrypt or libmcrypt isn't installed at all...

      microCODE requires libmcrypt 2.4.15 or later...

      Regards

      Karsten Richter

       
    • Nobody/Anonymous

      hrm odd.. I searched for the rpm of libmcrypt that is installed on my redhat 9 system and it came up with Version 2.4.22-fr3 being installed. Im gona try reinstalling it via apt-get util and see if that fixes it.

       
    • Nobody/Anonymous

      Forgot about the mcrypt rpm. It is version  2.5.5-1 maybe that is to old ?

       
      • Karsten Richter

        Karsten Richter - 2003-07-01

        I use libmcrypt 2.5.0 on Debian woody, which is even older than yours.

        Did you add --with-mcrypt=shared to your php configure call?

        Regards
        Karsten Richter

         
    • Nobody/Anonymous

      no i havent added that. I guess that could have something to do with it. Thing is its gona be hard to do that because i am using the php rpm that comes with redhat 9.

       
    • Nobody/Anonymous

      I also got this error.
      And solve this problem by removing the rpm and installing from source libmcrpyt 2.5.7. I had to run ldconfig after installing from source.

       

Log in to post a comment.