ruby-mcrypt icon indicating copy to clipboard operation
ruby-mcrypt copied to clipboard

Installation on MAC is not working

Open sergiomonge10 opened this issue 9 years ago • 5 comments

How Do I have to install the libraries on MAC ?

sergiomonge10 avatar Jan 06 '16 21:01 sergiomonge10

The same story I installed mcrypt using homebrew, now mcrypt is in /usr/local/Cellar/mcrypt/2.6.8 But when I run gem install ruby-mcrypt --source=http://gems.github.com -- --with-mcrypt-include=/usr/local/Cellar/mcrypt/2.6.8/include --with-mcrypt-lib=/usr/local/Cellar/mcrypt/2.6.8/ is says in mkmf.log error: use of undeclared identifier 'mcrypt_module_open'

mojidabckuu avatar Jan 14 '16 13:01 mojidabckuu

I know this is super old at this point. But I ended up resolving my making sure I was running this with a more recent ruby version than the default mac ruby.

nmcclay avatar Apr 22 '16 17:04 nmcclay

For me works following this steps:

brew install mcrypt
gem install ruby-mcrypt -- --with-mcrypt-dir=/opt/homebrew/Cellar/mcrypt/2.6.8

Mac specs:

13-inch, M1, 2020
Version 13.1 ( macOS Ventura)

Ruby version: ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [arm64-darwin20]

Pitus660 avatar Jan 26 '23 12:01 Pitus660

I tried to install ruby-mcrypt in mac m2 chip it's not working.

MurapureddiNag avatar Mar 13 '24 16:03 MurapureddiNag

can anyone help me how can we install in mac m2

MurapureddiNag avatar Mar 20 '24 07:03 MurapureddiNag