The Encrypt Library Requires The Mcrypt Extension Mac



mcrypt is a file encryption method using secure techniques to exchange data. It is required for some web apps for example Magento, the shopping cart software or a php framework like Laravel. This tutorial has been tested in OSX 10.10 Yosemite.

Enable the module by adding: 'extension=mcrypt.so' to PHP.ini. Very handy if you need to install a single module and you may have installed PHP via RPM. Apr 12, 2017  Jerax & Ceb BEST & FUNNY PLAYS in ti8&9 - Hoping to see this same ROSTER in ti10 - Dota 2 - Duration: 15:41. PLAYER PERSPECTIVE Recommended for you. Hello @fernandocuellar Php 7.2 is not yet supported, you will have to download one lower version of XAMPP. About mcrypt extensions, you just need to open pho.ini file and remove the comment from starting of that line. PHP, Wordpress, jQuery, SQL, SVN, mySQL, javaScript. เออเร่อนี้มันบอกว่า ต้องการ mcrypt extension เป็นไปได้ว่าเราไม่ได้เปิดใช้งาน extension mcrypt นี้ใน php.ini หรือ เปิดแล้วแต่ลืมตรวจสอบว่า extension ตัว.

This guide is really for users with the version of PHP that shipped with OSX Yosemite which is version 5.5.14. Other downloadable AMP stacks already have mcrypt baked in.

Command Line Tools

First up you will need the OSX 10.10 version of Command Line Tools which you can download via the Apple available updates in the App store.

The encrypt library requires the mcrypt extension mac air

Run in the Terminal

Getting it on in OS X Yosemite 10.10

This tutorial works mostly in the Terminal, launch it from /Applications/Utilities, change directory (cd) to the home account and make a directory that you will work in, call it mcrypt

Get libmcrypt 2.5.8 from Sourceforge, this is direct download link.

Get the php code in a tar.gz or .bz2 format- (version 5.5.14 is the one that currently ships with OSX 10.10)

Move both of these files that you downloaded into your working directory – mcrypt in this instance, and go back to Terminal

Expand both files via the command line or just double click them in the Finder:

Remove the compressed archives

Any errors on the command line including C++ and g++ mostly are due to the command line tools missing.

Configuring libmcrypt

With the libmcrypt configured and libraries now installed, time for to make the mcrypt extension.

Install Autoconf

Install autoconf – some more Terminal heavy lifting:

Compile mcrypt php Extension

Output should be similar to:

Configuring for:
PHP Api Version: 20121113
Zend Module Api No: 20121212
Zend Extension Api No: 220121212

The result of this should be similar to:

Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20121212/

Enabling mcrypt.so php Extension

Open /etc/php.ini and add the line below at the end

If there is no php.ini file, then you need to make one from php.ini.default in the same location like so:

And allow write capability

Then add the line as above in your favourite text editor:

or

The Encrypt Library Requires The Mcrypt Extension Mac

and add in the line:

Restart Apache

That’s it, create a php page with the function phpinfo(); to see if it loaded correctly.

If it didn’t load you may need to declare the extensions directory in /etc/php.ini

Hopefully it wasn’t too much of a nightmare…

tales-from-the-mcrypt-yosemite-osx-php


The mcrypt extension is missing. Please check your PHP configuration.

The above error appears after you successfully get phpMyAdmin up and running on OS X, generally you don’t have to worry about it, you only need to address the error if you are going to use a web application that requires it, for example Magento, the shopping cart software or a php framework like Laravel.

mcrypt is a file encryption method using secure techniques to exchange data. This tutorial has been tested in 10.7 Lion and 10.8 Mountain Lion. OSX 10.9 Mavericks mcrypt guide here.

There are two ways to solve this issue on OSX, it depends on what your comfortable with and what you already have – this guide takes you through staying what you already have by installing and compiling code to get the extension running, an alternative is to use a packaged version of PHP which already has the mcrypt extension compiled and enabled, this for some would be an easier option to deploy – see that PHP guide here.

Xcode

Get Xcode from the Apple app store, free download version, then install it from the /Applications folder it will be called ‘Install Xcode’ or just Xcode.app. You need this to use the compilers to compile the source code that you will download.

Go to Xcode preferences and then look in the ‘Downloads’ button.

Install the command line tools from the preferences of Xcode.

Getting it on in OS X Mountain Lion

This tutorial works mostly in the Terminal, launch it from /Applications/Utilities, change directory (cd) to the home account and make a directory that you will work in, call it mcrypt

Get libmcrypt 2.5.8 from Sourceforge, this is direct download link.

Get the php code in a tar.gz or .bz2 format- (version 5.3.6 – 5.3.13 are common in different builds up to OS X 10.8, 5.3.13 is current for OSX 10.8.2)

Check your version at the command line:

Move both of these files that you downloaded into your working directory – mcrypt in this instance and go back to Terminal

Expand both files via the command line or just double click them in the Finder:

Remove the compressed archives

Any errors on the command line including C++ and g++ mostly are due to Xcode not being installed or the command line tools missing – if you have Xcode but still get the errors, launch Xcode > Preferences > Downloads > Install ‘Command Line Tools’

Configuring libmcrypt

With the libmcrypt configured and libraries now installed, time for to make the mcrypt extension.

Autoconf Errors

If the below error occurs after you try the following compile of mcrypt, then autoconf is not installed.

Autoconf is not installed with the latest Xcode but may be present on some OS X from an upgraded older Xcode.

If you need autoconf – some more Terminal heavy lifting:

Compile mcrypt php Extension

Output should be:
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626

configure.in:3: warning: prefer named diversions
configure.in:3: warning: prefer named diversions

The result of this should be:

Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20090626/

Enabling mcrypt.so php Extension

Open /etc/php.ini and add the line below at the end

If there is no php.ini file, then you need to make one from php.ini.default in the same location like so:

And allow write capability

Then add the line as above in your favourite text editor:

or

The Encrypt Library Requires The Mcrypt Extension Mac Air

and add in the line:

Restart Apache

That’s it, check your phpMyadmin login page or create and browse to a phpinfo.php to see if it loaded correctly, if it didn’t load you may need to declare the extensions directory in /etc/php.ini

The Encrypt Library Requires The Mcrypt Extension Macbook Pro

Hopefully it wasn’t too much of a nightmare…

tales-from-the-mcrypt-lion-osx-php