Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMaximiliane Quel
Courses Plus Student 55,489 Points'Rails is not currently installed' after editing path variable
Hi,
last week I still had a functioning rails development environment installed on my mac. Since I had issues with creating a mysql database (it was always aborted because the a library could not be found, I created a symbolic link following this post: https://stackoverflow.com/questions/6383310/python-mysqldb-library-not-loaded-libmysqlclient-18-dylib. This did enable me to create the database and migrations, however, I could not use the mysql commands and was unable to start the mysql prompt from the terminal. I would always get a warning the the command was not found. So today I edited my path variable, by inputting the following into my .bash_profile file:
export PATH=${PATH}:/usr/local/mysql/bin
This did admittedly fix the issue with mysql. However, when I did try to continue on the project I realised that my system can't find any rails installation. The actual message I get is:
Rails is not currently installed on this system. To get the latest version, simply type:
$ sudo gem install rails
You can then rerun your "rails" command.
While I am not 100% sure that exporting the path is the issue, I have in the meantime updated El Capitain and had some trouble agreeing to the xcode license (clang: error: no input files; I seem to only encounter errors these days ... ), it might be and I have no idea how to fix it. Because surely rails must be hidden somewhere on my system?!?!?
Does anyone know how to find and fix it, or whether I should install it again??
I appreciate any kind of help because I am absolutely lost.
Thanks!
2 Answers
Jake Wengroff
3,947 PointsWhat happens when you type
which rails
or
rails -v
in the terminal?
Maximiliane Quel
Courses Plus Student 55,489 Pointswhen I type
which rails
I get
/usr/bin/rails
for
rails -v
I get
Rails is not currently installed on this system. To get the latest version, simply type:
$ sudo gem install rails
You can then rerun your "rails" command.