Padwan needs help!

Hi everyone, new to the group, new to programing and most certainly new to RoR (so forgive me if this questions is stupid)

Last week I started to take the RoR course at onemonthrails.com and I’ve been stuck on Adding Bootstrap lesson since last week. Every time I run ‘bundle install’ after adding the bootstrap-sass Gem to the Gemfile I get:

Installing bootstrap-sass (2.3.2.1) Errno::EACCES: Permission denied - /Users/Diego/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper An error occurred while installing bootstrap-sass (2.3.2.1), and Bundler cannot continue. Make sure that gem install bootstrap-sass -v '2.3.2.1' succeeds before bundling.

When I look in: /Users/Diego/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper and do: ls -a I don’t see the ruby_noexec_wrapper file

GitHub rep at: https://github.com/dschmunis/omrails

I’ve spent countless hours googling the issue and reading post on Stackoverflow but can’t find a solution and haven’t gotten any responses on the course’s Comments page.

I don’t want to give up on RoR or the course as I was starting to feel good with my progress and what I was learning, but unless I’m able to get past this spot I don’t know what else to do/try.

Can any one please help?

Best, Diego

Hi everyone, new to the group, new to programing and most certainly new to RoR (so forgive me if this questions is stupid)

Last week I started to take the RoR course at onemonthrails.com and I've been stuck on Adding Bootstrap lesson since last week. Every time I run 'bundle install' after adding the bootstrap-sass Gem to the Gemfile I get:

Installing bootstrap-sass (2.3.2.1) Errno::EACCES: Permission denied - /Users/Diego/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper An error occurred while installing bootstrap-sass (2.3.2.1), and Bundler cannot continue. Make sure that `gem install bootstrap-sass -v '2.3.2.1'` succeeds before bundling.

When I look in: /Users/Diego/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper and do: ls -a I don't see the ruby_noexec_wrapper file

GitHub rep at: https://github.com/dschmunis/omrails

I've spent countless hours googling the issue and reading post on Stackoverflow but can't find a solution and haven't gotten any responses on the course's Comments page.

I don't want to give up on RoR or the course as I was starting to feel good with my progress and what I was learning, but unless I'm able to get past this spot I don't know what else to do/try.

Can any one please help?

The error message says that the issue is permissions-related. Have you looked at the location where bundler is trying to install the Gem and listed out the permissions? In Terminal.app, do this:

cd /Users/Diego/.rvm/gems/ruby-2.0.0-p247/

ls -al

Pay particular attention to the letters in front of bin in that listing:

drwxr-xr-x

is what you should see, and the owner and group should be your short account name in Mac OS X.

IF you don't see this, then you may have a botched rvm install. You may have installed as root in your user account, by using sudo before the rvm install command. They warn you not to do that at least 8 times on the installation instructions page.

Anyway, report back what you find, and someone here may be able to help you further. You may just need to step back and remove rvm and then re-install it.

Walter

Can you verify that Ruby 2.0.0 is installed correctly? Does the Rails app work as expected, neglecting the issues with the Bootstrap gem bundle?

Do you get “rvm is a function” after typing “type rvm | head -n 1” into the terminal?

Perhaps you should start with installing Ruby again, as it is a small thing to do with an RVM environment.

Max

Walter Davis wrote in post #1118808:

/Users/Diego/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper and do: ls -a I don't see the ruby_noexec_wrapper file

GitHub rep at: https://github.com/dschmunis/omrails

I've spent countless hours googling the issue and reading post on Stackoverflow

but can't find a solution and haven't gotten any responses on the course's Comments page.

I don't want to give up on RoR or the course as I was starting to feel good

with

my progress and what I was learning, but unless I'm able to get past this spot I don't know what else to do/try.

Can any one please help?

The error message says that the issue is permissions-related. Have you looked at the location where bundler is trying to install the Gem and listed out the permissions? In Terminal.app, do this:

cd /Users/Diego/.rvm/gems/ruby-2.0.0-p247/

ls -al

Pay particular attention to the letters in front of bin in that listing:

drwxr-xr-x

is what you should see, and the owner and group should be your short account name in Mac OS X.

IF you don't see this, then you may have a botched rvm install. You may have installed as root in your user account, by using sudo before the rvm install command. They warn you not to do that at least 8 times on the installation instructions page.

Anyway, report back what you find, and someone here may be able to help you further. You may just need to step back and remove rvm and then re-install it.

Walter

Hi Walter,

Thanks for the help. Permissions were set as you suggested above (drwxr-xr-x)

I was able to find this issue in Stackoverflow and after some further reading and modification it looks like I got bootstrap-sass installed properl:

Best, Diego

Hi Max,

After putting:'type rvm | head -n 1 into the terminal I did get 'rvm is a function' but still bundle install didn't work.

Finally someone pointed me to: ruby on rails - rvm gem install error? - Stack Overflow and got it working!

Best, Diego