- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我尝试遵循此处有关堆栈溢出的大部分教程,但没有成功。
Issue in installing php7.2-mcrypt
https://github.com/tamtamnl/valet-plus/tree/hotfix/homebrew-core-php
https://github.com/weprovide/valet-plus/issues/127
https://github.com/Homebrew/homebrew-core/issues/26082
Laravel requires the Mcrypt PHP extension
<小时/> <小时/> <小时/>这是我在终端上检查版本时得到的结果
AVMBP:~ AV$ php -v
PHP 5.6.33 (cli) (built: Feb 1 2018 13:59:05)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
with Xdebug v2.5.3, Copyright (c) 2002-2017, by Derick Rethans
当我尝试在终端上安装 mcrypt 时,这就是我得到的结果
AVsMBP:~ AV$ sudo apt-get -y install gcc make autoconf libc-dev pkg-config
sudo: apt-get: command not found
我尝试了以下步骤
brew install mcrypt
这是我得到的
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
youtube-dl
Warning: mcrypt 2.6.8 is already installed and up-to-date
To reinstall 2.6.8, run `brew reinstall mcrypt`
AVs-Macbook-Pro:~ AV$ brew reinstall mcrypt
==> Reinstalling mcrypt
==> Downloading https://homebrew.bintray.com/bottles/mcrypt-2.6.8.yosemite.bottl
Already downloaded: /Users/AV/Library/Caches/Homebrew/mcrypt-2.6.8.yosemite.bottle.1.tar.gz
==> Pouring mcrypt-2.6.8.yosemite.bottle.1.tar.gz
🍺 /usr/local/Cellar/mcrypt/2.6.8: 18 files, 396.7KB
AVs-Macbook-Pro:~ AV$
然后,我检查是否安装了 mcrypt
brew search mcrypt
这是我得到的
AVs-Macbook-Pro:~ AV$ brew search mcrypt
==> Searching local taps...
mcrypt ✔ libtomcrypt
==> Searching taps on GitHub...
==> Searching blacklisted, migrated and deleted formulae...
通过终端成功安装 mcrypt 后,我将 mcrypt.so 扩展添加到 php.ini 中。
/Applications/MAMP/bin/php/php7.2.1/conf/php.ini
extension=mcrypt.so
我验证了扩展程序是否已安装,我得到了这个;
AVs-Macbook-Pro:~ AV$ php -i | grep "mcrypt"
Configure Command => './configure' '--prefix=/usr/local/php5' '--with-apxs2=/usr/sbin/apxs' '--with-config-file-scan-dir=/usr/local/php5/php.d' '--with-libxml-dir=shared,/usr' '--with-openssl=/usr/local/php5' '--with-zlib=/usr' '--with-zlib-dir=/usr' '--with-gd' '--with-ldap' '--with-xmlrpc' '--enable-exif' '--enable-soap' '--enable-wddx' '--enable-ftp' '--with-iodbc' '--enable-sockets' '--with-bz2=/usr' '--enable-zip' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-mbstring' '--enable-bcmath' '--enable-calendar' '--with-mhash' '--enable-fpm' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--enable-pcntl' '--enable-dtrace' '--enable-opcache' '--with-icu-dir=/usr/local/php5' '--with-mssql=shared,/usr/local/php5' '--with-pdo-dblib=shared,/usr/local/php5' '--with-xsl=shared,/usr/local/php5' '--with-imap=shared,../imap-2007f' '--with-kerberos=/usr' '--with-imap-ssl=/usr/local/php5' '--with-gettext=/usr/local/php5' '--with-curl=shared,/usr/local/php5' '--with-png-dir=/usr/local/php5' '--with-jpeg-dir=/usr/local/php5' '--enable-gd-native-ttf' '--with-freetype-dir=/usr/local/php5' '--with-pgsql=shared,/usr/local/php5' '--with-pdo-pgsql=shared,/usr/local/php5' '--with-mcrypt=shared,/usr/local/php5' '--with-tidy=/usr/local/php5' '--with-gmp=shared,/usr/local/php5' '--with-readline=shared,/usr/local/php5' '--with-libxml-dir=/usr/local/php5' 'CC=cc '-L/usr/local/php5/lib' '-I/usr/local/php5/include' '-I/usr/include/libxml2' '-I/usr/local/php5/include/tidy' '-DENTROPY_CH_RELEASE=1'' 'CFLAGS=-Os '-mmacosx-version-min=10.10' '-I/usr/local/php5/include' '-arch' '-no-cpp-precomp' '-DENTROPY_CH_ARCHS='''i386/x86_64'''' '-DENTROPY_CH_RELEASE=1'' 'LDFLAGS=-L/usr/local/php5/lib '-arch' 'CXXFLAGS=-arch
/usr/local/php5/php.d/50-extension-mcrypt.ini,
Registered Stream Filters => zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, mcrypt.*, mdecrypt.*, http.*
mcrypt
mcrypt support => enabled
mcrypt_filter support => enabled
mcrypt.algorithms_dir => no value => no value
mcrypt.modes_dir => no value => no value
AVs-Macbook-Pro:~ AV$
重新启动系统,当我运行我的php系统时仍然出现此错误
An Error Was Encountered
The Encrypt library requires the Mcrypt extension.
请帮助我。预先感谢!
最佳答案
如果您没有正确安装 mcrypt 库,请尝试以下操作:
https://gist.github.com/idleberg/24479f34dc5007e50d47
或参见 http://www.php.net/manual/en/mcrypt.setup.php了解其他信息。
如果您使用共享主机,您可以要求您的提供商安装它。
<小时/>在 OSX 本地主机中,您可以通过自制软件轻松安装 mcrypt - 正如您在上面尝试过的:
brew install mcrypt
然后将此行添加到您的 php.ini 文件中。您可以从上面的自制输出中看到:“/usr/local/Cellar/mcrypt/2.6.8”
extension="/usr/local/Cellar/mcrypt/2.6.8/mcrypt.so"
不要忘记重新启动服务器以使编辑生效
关于terminal - 在mac php7.2 MAMP上安装mcrypt,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50673429/
我使用 MAMP Pro (4.4)。我在应用程序中有许多 MAMP 文件夹占用了大量空间。删除旧的并保留最新的是否安全?因此保留 MAMP 和 MAMP_2018-02-12_21-21-59(见下
我正在尝试在 MAMP php 中安装 pecl_http。 我收到以下错误。 grep: /Applications/MAMP/bin/php/php5.5.10/include/php/main/
警告:我对 Mac 和 OS X 还是很陌生。 我从 mamp.info 下载了 MAMP 以安装在运行 OSX 10.8.5 的 2012 年末 iMac 上。 安装程序让我可以选择只安装 MAMP
我有 MAMP Pro . 如何让 MAMP Pro 服务器在重启时自动启动? 最佳答案 在 MAMP Pro 版本 4.5(仍然是 5.5.x)中,此选项位于 Ports 下。 关于mamp - 在
我正在使用 MAMP Pro作为开发环境。我用过 ngrok与 MAMP前。但是在这种特殊情况下,它从 ngrok 重定向url 到我的本地 url 并且 https 不可用。 我的本地服务器是 e-
我在带有虚拟主机的 Macbook Pro 上运行 MAMP Pro 4。它工作正常。我希望能够从本地网络上的其他设备访问它,以便测试各种浏览器/操作系统组合。我在网上找到的所有文章和帖子都是针对早期
我在带有虚拟主机的 Macbook Pro 上运行 MAMP Pro 4。它工作正常。我希望能够从本地网络上的其他设备访问它,以便测试各种浏览器/操作系统组合。我在网上找到的所有文章和帖子都是针对早期
我想在我的 Windows 8.1 电脑上运行 MAMP,但是当我启动服务器时,它说: 'APACHE' needs open port '80' which is already being use
我正在尝试安装 libsodium(按照本指南 https://paragonie.com/book/pecl-libsodium/read/00-intro.md#installing-libsod
使用 MAMP Pro,您可以创建诸如“local.example.com”之类的条目并指向本地计算机上该站点的根目录。 有可能自动化吗? 那是在我的电脑上,我的设置如下: 用户/hm/Sites/e
我有时会在 phpMyAdmin 中获取存储在/Library/Application Support/appsolute/db/mysql 下的数据库,这应该是 MAMP PRO 的路径。不过,我不
我正在运行 MAMP,它告诉我它无法写入/etc/hosts 文件。我猜这是一个许可问题,但不完全确定。这是错误: The file /etc/hosts couldn't be written 有什
我的桌面上有一个名为 work 的文件夹,用于保存所有 php 项目。我使用 MAMP 并且所有项目都设置为在虚拟主机上运行,例如,如果我有一个名为 test 的项目,我将通过此 URL http
我试图在我的 php.ini 中将 display_errors = Off 更改为 display_errors = On。我运行了 phpinfo() 并验证了加载的配置文件(它位于:/Libra
我正在将 Laravel/horizon 与 Osx MAMP pro 一起使用 当我运行 Composer 时,它需要 laravel/horizon:~1.0它显示一条消息 - laravel
我正在尝试使用 mamp 设置虚拟主机。当我输入 http://resihop:8888我最终进入 127.0.0.1。为什么? 一些事实: 站点名称:resihop Apache 端口:8888 宿
好的,希望有人能帮帮我。我已经安装了 MAMP PRO(在使用 MAMP 一段时间之后)。 启动 MAMP PRO 时,我已连接到 Apache 服务器和 MySQL。它之所以有效,是因为我同时拥有两
有人知道如何在 MAMP/MAMP Pro 上增加 apache fastCGI 超时吗?我到处找,但似乎找不到。 一如既往地感谢任何帮助。 谢谢, Codarz360 最佳答案 这太乏味了,但终于让
如何更改我的 MAMP mysql.sock 文件路径 /Applications/MAMP/tmp/mysql/mysql.sock 每当我退出 MAMP 或重新启动计算机时,其他内容都不会被删除?
我已经升级到 MAMP Pro,mysql 文件夹不会出现在它们在 MAMP/db 中的位置 MAMP Pro 将 MySQL 数据库保存在哪个位置? 最佳答案 MAMP Pro 的更新版本将数据库保
我是一名优秀的程序员,十分优秀!