douyin2883 2013-12-10 09:19 采纳率: 0%
浏览 51

如何在Mac OSX 10.9上启用php中的mcrypt?

Since I want to start learning Laravel, I need to install mcrypt in php. I'm on Mac OSX 10.9 and I installed apache and php manually (no mamp or anything like it) so I followed this guide to install mcrypt. The whole procedure works as expected (no errors), but after restarting the server using sudo apachectl restart I have a look at the output of phpinfo(), and I can't find any mentioning of mcrypt.

Since I don't think I had any errors in the process of compiling and installing, I don't really know where to look for the mistake. Does anybody know what would be logical things to check for?

  • 写回答

3条回答 默认 最新

  • dp5657087 2014-02-11 18:18
    关注

    I have the same problem, on MAC OS X 10.9, no mcrypt library working. After some hours and many headaches (I'm not so skilled...) I found this guide, and finally get it working on my local machine: http://jenssegers.be/blog/49/installing-the-php-mcrypt-extension-on-osx-10-9-mavericks

    The passage I missed were to go in the ext/mcrypt dir of a new php downloaded package and then type:

    cd php-5.4.17/ext/mcrypt/ /usr/bin/phpize ./configure make sudo make install

    Then add extension=mcrypt.so in my php.ini file.

    That's it. Hope this helps!

    评论

报告相同问题?

悬赏问题

  • ¥15 我这模型写的不对吗?为什么lingo解出来的下面影子价格这一溜少一个变量
  • ¥50 树莓派安卓APK系统签名
  • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波