PHP Mcrypt安装和设置laravel环境问题 [英] PHP mcrypt installing and setting up laravel environment issues

查看:85
本文介绍了PHP Mcrypt安装和设置laravel环境问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Mac OS X Lion 10.7.5,并且想清除一件事,我不想再使用XAMPP和MAMP.

I am using Mac OS X Lion 10.7.5 and I want to clear one thing I do not want to use XAMPP, MAMP anymore.

因此,我按照链接进行了安装.我将laravel文件夹复制到根据第一个链接教程创建的Sites文件夹中.现在,当我单击laravel文件夹内的public文件夹时,出现以下错误

So I enabled apache, php and installed mysql following this link. This work well. Then I downloaded laravel and installed it following this link. I copied laravel folder inside Sites folder which I created according to first link tutorial. Now when I click on public folder inside laravel folder it gives me following error

Unhandled Exception

Message:

Call to undefined function Laravel\mcrypt_create_iv()
Location:

/Users/zafarsaleem/Sites/learning-laravel/laravel/crypter.php on line 36

然后检查是否在phpinfo()中安装了mcrypt.他们不在那里.要安装mcrypt,我遵循了

Then checked whether mcrypts are installed in phpinfo(). They are not there. To install mcrypt I followed this link. It worked until when I followed to PHP Extension title. When I downloaded PHP 5.3.8 is now the default since Mac OS X 10.7.3 unpacked and when I issue phpize command it gives me this error

Cannot find config.m4. 
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module

这是什么top level source directory of the module means?如何使mcrypt正确安装以使laravel正常工作?请帮忙.

What does this top level source directory of the module means? How can I make mcrypt install properly to make laravel work? Please help.

推荐答案

您将需要在Xcode中安装Xcode和command line tools额外软件包,然后才能安装mcrypt

You will need to install Xcode and the command line tools extra package within Xcode, for then to install mcrypt

有关更多详细信息,请阅读此

For more details, read this http://www.coolestguyplanettech.com/how-to-install-mcrypt-for-php-on-mac-osx-lion-10-7-development-server/

这篇关于PHP Mcrypt安装和设置laravel环境问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆