Weird rails error permission denied: bin/rails for old rails apps
In the directory you mentioned is your rails in executable mode. If not you can apply
chmod u+x bin/rails
and make it executable.
Permission denied error with RVM
I had this same problem and I resolved it by doing the following:
sudo mkdir ~/.gem/specs
sudo chmod 777 ~/.gem/specs
It seems that RVM was trying to create this "specs" folder, but didn't have permissions to do so.
Uninstalled old version of rails and now no longer have rails executable
This issue has been resolved through Nitrous support channels. Somehow the file /home/action/.rvm/gems/ruby-2.0.0-p247/bin/rails
was missing, and gem install rails
did not add it. Manually adding this file with the following contents solved the issue.
#!/usr/bin/env ruby_noexec_wrapper
#
# This file was generated by RubyGems.
#
# The application 'railties' is installed as part of a gem, and
# this file is here to facilitate running it.
#
require 'rubygems'
version = ">= 0"
if ARGV.first
str = ARGV.first
str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding
if str =~ /\A_(.*)_\z/
version = $1
ARGV.shift
end
end
gem 'railties', version
load Gem.bin_path('railties', 'rails', version)
Related Topics
How to Get a List of Files That Have Been 'Required' in Ruby
How to Render a Plain HTML File with Sinatra
Rake Db:Migrate Error with MySQL2 Gem - Library Not Loaded: Libssl.1.0.0.Dylib
Ruby - Activerecord::Connectionnotestablished
Jekyll: How to Use Custom Plugins with Github Pages
How to Use Ruby Metaprogramming to Add Callbacks to a Rails Model
Error Installing a Pod - Bus Error at 0X00000001045B8000
Ruby: How to Find Non-Unique Elements in Array and Print Each with Number of Occurrences
How to Prevent Pipe Character from Causing a Bad Uri Error in Rails 3/Ruby 1.9.2
Retrieve Contents of Url as String
Understanding Ruby Symbol as Method Call
In Ruby, What Is Stored on the Stack
Stylesheet_Link_Tag :All Versus :Media =>All