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 trialJoel Smith
14,779 PointsWhen running /bin/rails server, my terminal in Ubuntu 14.10 returns an error.
The following documents my command and the returned error:
joel@joel-U80A:~/workspace/odot$ /bin/rails server
bash: /bin/rails: No such file or directory
I have tried reinstalling both Ruby and Rails.. to no avail. Please help!
1 Answer
William Li
Courses Plus Student 26,868 PointsI only had this problem once before, you can try
rake rails:update:bin
see if it fix your problem.
But, for all intents and purposes, if you only have one version of Rails installed on your system. There really is no difference between bin/rails
or just rails
. So if that's case, if you can't get /bin/rails server
working, use rails server instead.
Joel Smith
14,779 PointsJoel Smith
14,779 PointsI was using rails server as well, and that wasn't working either. What I ended up doing was trying to rebuild the gems bundle. That worked and now I'm up and running.
Thanks William Li