Post by jontara on Dec 18, 2019 23:48:47 GMT
There is a bit of a workaround needed currently to install the Rhodes Gem on MacOS Catalina.
Note that this may not (or may!) apply when using the full RhoMobile suite. But if you just do command-line build using rvm and Rhodes gem, then it requires a small change to the install in order to work.
Update: below is erroneous.
There is a problem with the OpenSSL version supplied with Catalina. Instead, you can install OpenSSL with Homebrew, and use that one. By default, Homebrew will NOT create a link in /usr/local/bin for openssl, so installing it with Homebrew will not change the OpenSSL version used by the system, other applications, etc.
Update: below is erroneous:
(This will give you latest Ruby in 2.3.x series, probably will never change now from 2.3.8).
Otherwise, you are almost certain to see:
➜ ~ gem list
ERROR: Loading command: list (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
If you get this, you will need to uninstall Ruby 2.3.8 first.
If you have updated to Catalina from an older OS, you may find you need to completely reinstall rvm. A helpful command in that case is:
rvm implode
This will completely uninstall rvm along with all Rubies and Gemsets previously installed.
Note that this may not (or may!) apply when using the full RhoMobile suite. But if you just do command-line build using rvm and Rhodes gem, then it requires a small change to the install in order to work.
Update: below is erroneous.
Rhodes currently needs Ruby 2.3.x for command-line build. This is a legacy Ruby version now, and rvm won't properly install Gemsets on Catalina without this little workaround.
There is a problem with the OpenSSL version supplied with Catalina. Instead, you can install OpenSSL with Homebrew, and use that one. By default, Homebrew will NOT create a link in /usr/local/bin for openssl, so installing it with Homebrew will not change the OpenSSL version used by the system, other applications, etc.
Update: below is erroneous:
Assuming you already have Homebrew installed:
brew install openssl
Now, when you install Ruby 2.3.8 under rvm:
rvm install 2.3 --with-openssl-dir=/usr/local/opt/openssl~~
brew install openssl
Now, when you install Ruby 2.3.8 under rvm:
rvm install 2.3 --with-openssl-dir=/usr/local/opt/openssl~~
(This will give you latest Ruby in 2.3.x series, probably will never change now from 2.3.8).
Otherwise, you are almost certain to see:
➜ ~ gem list
ERROR: Loading command: list (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
If you get this, you will need to uninstall Ruby 2.3.8 first.
If you have updated to Catalina from an older OS, you may find you need to completely reinstall rvm. A helpful command in that case is:
rvm implode
This will completely uninstall rvm along with all Rubies and Gemsets previously installed.