New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Error installing rails: activesupport requires Ruby version >= 2.2.2. #1022
Comments
Sorry, I'm not sure what's happening on your system, so I can't really tell you how to solve this. It's not a ruby-build problem, since you seem to already have a working Ruby version. However, if you installed Ruby with ruby-build, then I'm guessing you might manage your Ruby versions with rbenv. In that case, you should never use |
Thanks for your reply mislav. When I try your solution I got this: JM:repositories jm$ gem i rails |
Oh, that means you are using system Ruby (the default Ruby preinstalled on macOS), and that you're not using a version through rbenv. You haven't told us how you set up your system at all, so I don't know what to tell you. But if you installed a Ruby version through ruby-build (this project) or rbenv, please first make sure it's selected ( |
Thanks again mislav. It seems to be working fine now.
export PATH=/usr/local/var/rbenv/shims:/usr/local/bin:$PATH export RBENV_ROOT=/usr/local/var/rbenv |
Had similar situation.
|
Thanks for your solution @arcseldon, it fixes my issue! However everytime I need to type the following in my terminal everytime I open a new window:
Do you know how I can fix this problem permanently? |
@lucasdidier Did you put those lines in your shell profile as arcseldon recommended? If so, they should be automatically loaded whenever you open a terminal. |
Thanks thats worked for me |
JM:repositories jm$ rails new islandinkjet - postgresql
Rails is not currently installed on this system. To get the latest version, simply type:
You can then rerun your "rails" command.
JM:repositories jm$ sudo gem install rails
Password:
ERROR: Error installing rails:
activesupport requires Ruby version >= 2.2.2.
JM:repositories jm$ JM:repositories jm$ rails new islandinkjet - postgresql
-bash: JM:repositories: command not found
JM:repositories jm$ Rails is not currently installed on this system. To get the latest version, simply type:
Rails is not currently installed on this system. To get the latest version, simply type:
You can then rerun your "rails" command.
The text was updated successfully, but these errors were encountered: