ruby-mcrypt
ruby-mcrypt copied to clipboard
Installation on MAC is not working
How Do I have to install the libraries on MAC ?
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'
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.
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]
I tried to install ruby-mcrypt in mac m2 chip it's not working.
can anyone help me how can we install in mac m2