installing jekyll-coffeescript on Fedora 19 - ruby-on-rails

I'm trying to use jekyll-coffeescript on Fedora 19 to get my octopress working. 'rake generate' keeps failing, I'm not sure why, I think all the dependencies are installed ok. I have tried installing loads of different modules but none of them solve the problem. I have nodejs installed and rubyracer.
If you need anymore info from me to help, let me know and I'll post it.
this is for an octopress install.
#( 09/04/14# 9:07am )( tim#localhost ):~/Workspace/Development/octopress#source✔
rake generate
## Generating Site with Jekyll
identical source/stylesheets/screen.css
Dependency Error: Yikes! It looks like you don't have jekyll-coffeescript or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- json' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!
/home/tim/.gem/ruby/gems/jekyll-2.3.0/lib/jekyll/deprecator.rb:56:in `rescue in block in gracefully_require': jekyll-coffeescript (Jekyll::Errors::MissingDependencyException)
from /home/tim/.gem/ruby/gems/jekyll-2.3.0/lib/jekyll/deprecator.rb:45:in `block in gracefully_require'
from /home/tim/.gem/ruby/gems/jekyll-2.3.0/lib/jekyll/deprecator.rb:44:in `each'
from /home/tim/.gem/ruby/gems/jekyll-2.3.0/lib/jekyll/deprecator.rb:44:in `gracefully_require'
from /home/tim/.gem/ruby/gems/jekyll-2.3.0/lib/jekyll.rb:141:in `<top (required)>'
from /home/tim/.gem/ruby/gems/jekyll-2.3.0/bin/jekyll:6:in `require'
from /home/tim/.gem/ruby/gems/jekyll-2.3.0/bin/jekyll:6:in `<top (required)>'
from /home/tim/bin/jekyll:23:in `load'
from /home/tim/bin/jekyll:23:in `<main>'
#( 09/04/14# 9:09am )( tim#localhost ):~/Workspace/Development/octopress#source✔
gem list
*** LOCAL GEMS ***
bigdecimal (1.2.0)
blankslate (2.1.2.4)
bundler (1.7.2)
celluloid (0.15.2)
chunky_png (1.3.1, 1.2.7)
classifier-reborn (2.0.1)
coffee-script (2.3.0, 2.2.0)
coffee-script-source (1.7.1, 1.6.1)
colorator (0.1)
commonjs (0.2.6)
compass (0.12.7, 0.12.6)
erubis (2.7.0)
execjs (2.2.1, 1.4.0)
fast-stemmer (1.0.2)
ffi (1.9.3)
fssm (0.2.10, 0.2.7)
haml (4.0.5)
hpricot (0.8.6)
io-console (0.4.2)
jekyll (2.3.0)
jekyll-coffeescript (1.0.1, 1.0.0)
jekyll-gist (1.1.0)
jekyll-paginate (1.0.0)
jekyll-sass-converter (1.2.0)
jekyll-sitemap (0.5.1)
jekyll-watch (1.1.0)
json (1.7.7)
kramdown (1.4.1)
libv8 (3.16.14.3 x86_64-linux, 3.11.8.13 x86_64-linux)
liquid (2.6.1)
listen (2.7.9, 0.4.7)
mercenary (0.3.4)
multi_json (1.7.1)
octopress-date-format (2.0.1)
octopress-hooks (2.2.1)
parslet (1.5.0)
posix-spawn (0.3.9)
psych (2.0.0)
pygments.rb (0.6.0)
rack (1.5.2)
rack-protection (1.5.3)
rake (10.3.2)
rb-fsevent (0.9.4)
rb-inotify (0.9.5)
rdiscount (2.1.7.1)
rdoc (4.0.1)
redcarpet (3.1.2)
RedCloth (4.2.9)
ref (1.0.2)
ruby_parser (3.1.1)
rubypants (0.2.0)
safe_yaml (1.0.3)
sass (3.3.8, 3.2.19)
sass-globbing (1.0.0)
sassy-maps (0.4.0)
sexp_processor (4.1.5)
sinatra (1.4.5)
stringex (1.4.0)
therubyracer (0.12.1, 0.11.3)
tilt (1.4.1)
timers (1.1.0)
toml (0.1.1)
yajl-ruby (1.1.0)

I found this very helpful blogpost, basically you need to install RVM and setup ruby correctly, the steps are listed in the following post:
https://gist.github.com/lowstz/1739538

Related

New to rails stuck with rails server command

i am new to ruby on rails, when i enter rails server command i get a strange message which i don't know how to deal with.
Using tzinfo-data 1.2015.7
Using uglifier 2.7.2
Using web-console 2.2.1
Bundle complete! 12 Gemfile dependencies, 53 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
C:\Users\dell notebook>cd Mybook
C:\Users\dell notebook\MyBook>rails server
E:/2.2.3exe/Ruby22/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2-x86-mingw32/lib/nok
ogiri.rb:29:in `require': cannot load such file -- nokogiri/nokogiri (LoadError)
from E:/2.2.3exe/Ruby22/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2-x86-mi
ngw32/lib/nokogiri.rb:29:in `rescue in <top (required)>'
from E:/2.2.3exe/Ruby22/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2-x86-mi
ngw32/lib/nokogiri.rb:25:in `<top (required)>'
from E:/2.2.3exe/Ruby22/lib/ruby/gems/2.2.0/gems/loofah-2.0.3/lib/loofah
.rb:3:in `require'
from E:/2.2.3exe/Ruby22/lib/ruby/gems/2.2.0/gems/loofah-2.0.3/lib/loofah
.rb:3:in `<top (required)>'
from E:/2.2.3exe/Ruby22/lib/ruby/gems/2.2.0/gems/rails-html-sanitizer-1.
0.2/lib/rails-html-sanitizer.rb:2:in `require'
from E:/2.2.3exe/Ruby22/lib/ruby/gems/2.2.0/gems/rails-html-sanitizer-1.
i think i have all the gems installed
*** LOCAL GEMS ***
actionmailer (4.2.4)
actionpack (4.2.4)
actionview (4.2.4)
activejob (4.2.4)
activemodel (4.2.4)
activerecord (4.2.4)
activesupport (4.2.4)
arel (6.0.3)
bigdecimal (1.2.6)
binding_of_caller (0.7.2)
builder (3.2.2)
bundler (1.10.6)
byebug (6.0.2)
coffee-rails (4.1.0)
coffee-script (2.4.1)
coffee-script-source (1.9.1.1)
debug_inspector (0.0.2)
erubis (2.7.0)
execjs (2.6.0)
globalid (0.3.6)
i18n (0.7.0)
io-console (0.4.3)
jbuilder (2.3.2)
jquery-rails (4.0.5)
json (1.8.3, 1.8.1)
loofah (2.0.3)
mail (2.6.3)
mime-types (2.6.2)
mini_portile (0.6.2)
minitest (5.8.1, 5.4.3)
multi_json (1.11.2)
nokogiri (1.6.6.2 x86-mingw32)
power_assert (0.2.2)
psych (2.0.8)
rack (1.6.4)
rack-test (0.6.3)
rails (4.2.4)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7)
rails-html-sanitizer (1.0.2)
railties (4.2.4)
rake (10.4.2)
rdoc (4.2.0)
sass (3.4.19)
sass-rails (5.0.4)
sdoc (0.4.1)
sprockets (3.4.0)
sprockets-rails (2.3.3)
sqlite3 (1.3.11 x86-mingw32)
test-unit (3.0.8)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.1)
turbolinks (2.5.3)
tzinfo (1.2.2)
tzinfo-data (1.2015.7)
uglifier (2.7.2)
web-console (2.2.1)
My rails and ruby versions are:
C:\Users\dell notebook\MyBook>rails -v
Rails 4.2.4
C:\Users\dell notebook\MyBook>ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [i386-mingw32]
If someone with more experience could just point me in the right direction, I would greatly appreciate it. I have been working on this install for days!
Thanks
It looks like you have nokogiri installed but for the wrong version of ruby. It's installed for ruby 2.2.0 but you're using ruby 2.2.3.
add these two files:
.ruby-gemset
rails4.2.4
.ruby-version
ruby-2.2.3
Then run:
bundle install

Gem is in gemlist but getting error: "Could not find gem"

When I try to start my project using rails s I have the following error message occur:
Could not find gem 'jquery-rails (>= 0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
However, I know I definitely have that gem installed because when I put in the command gem list it shows up in my list of gems.
*** LOCAL GEMS ***
actionmailer (3.2.3)
actionpack (3.2.3)
activemodel (3.2.3)
activerecord (3.2.3)
activeresource (3.2.3)
activesupport (3.2.14, 3.2.3)
arel (3.0.2)
bigdecimal (1.1.0)
builder (3.2.2, 3.0.0)
bundler (1.1.5)
c2c_linux_patch_utilities (0.30.0, 0.29.0)
chef (11.6.2)
chef-zero (1.6)
debug_me (0.5.1)
diff-lcs (1.1.3)
erubis (2.7.0)
gelf (1.1.3)
hashie (2.0.5)
highline (1.6.19)
hike (1.2.1)
i18n (0.6.5)
io-console (0.3)
ipaddress (0.8.0)
journey (1.0.3)
jquery-rails (2.0.1)
json (1.7.7, 1.5.5)
knife-lastrun (0.0.4)
mail (2.4.4)
mime-types (1.25)
minitest (3.2.0, 2.5.1)
mixlib-authentication (1.3.0)
mixlib-cli (1.3.0)
mixlib-config (1.1.2)
mixlib-log (1.6.0)
mixlib-shellout (1.2.0)
moneta (0.6.0)
multi_json (1.8.1)
net-ssh (2.7.0)
net-ssh-gateway (1.2.0)
net-ssh-multi (1.2.0, 1.1)
ohai (6.18.0)
polyglot (0.3.3)
pony (1.4, 1.3)
poseidon (0.0.4)
puma (1.6.3)
rack (1.5.2, 1.4.1)
rack-cache (1.2)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.2.3)
railties (3.2.3)
rake (10.1.0, 0.9.2.2)
rdoc (3.12.2, 3.9.5)
rest-client (1.6.7)
rspec (2.12.0)
rspec-core (2.12.2)
rspec-expectations (2.12.1)
rspec-mocks (2.12.2)
rspec_junit_formatter (0.1.6)
ruby-shadow (2.2.0)
sdoc (0.3.20)
simplecov (0.7.1)
simplecov-html (0.7.1)
sprockets (2.3.1, 2.1.2)
systemu (2.5.2, 2.5.1)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.31)
xml-simple (1.1.1)
yajl-ruby (1.1.0)
I'm not able to use bundler because the connection is blocked at my workplace, but regardless, why is it giving me the error that the gem needs to be installed when it is installed?
Edit: I used gem environment gemdir to see where my path was for my gems and then tried to set the path for where bundlers looked using bundle config path /installationPath/, but I'm still having the same errors.
Also it is not a problem with the version numbers of the gems in my Gemfile
Bundler messes with the gem load path. gem list shows you what's installed on the system, but not necessarily what Bundler will expose to the application. Have you tried bundle exec rails s or bundle list to see what Bundler is actually exposing?

Rails Installer C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:353:in `kill': Invalid argument (Errno::EINVAL)

I am using Windows 7.
I downloaded and ran the rails installer "railsinstaller-2.2.5.exe"
Then I followed the https://gist.github.com/luislavena/f064211759ee0f806c88 for 'SSL upgrades on rubygems.org and RubyInstaller versions'
D:\Projects\AptanaWorkspace\cms_synth>rails --version
Rails 4.1.1
D:\Projects\AptanaWorkspace\cms_synth>ruby --version
ruby 1.9.3p551 (2014-11-13) [i386-mingw32]
Then tried and received
D:\Projects\AptanaWorkspace\cms_synth>rails s
=> Booting WEBrick
=> Rails 4.1.1 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0
.0.1 (--binding option)
=> Ctrl-C to shutdown server
Exiting
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:353:in
`kill': Invalid argument (Errno::EINVAL)
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack- 1.5.2/lib/rack/server.rb:353:in `pidfile_process_status'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:340:in `check_pid!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:246:in `start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1/lib/rails/commands/server.rb:69:in `start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:81:in `block in server'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:76:in `tap'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:76:in `server'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
My Gem List:
D:\Projects\AptanaWorkspace\cms_synth>gem list --local
*** LOCAL GEMS ***
actionmailer (4.1.1, 3.2.21)
actionpack (4.1.1, 3.2.21)
actionview (4.1.1)
activemodel (4.1.8, 4.1.1, 3.2.21)
activerecord (4.1.8, 4.1.1, 3.2.21)
activerecord-sqlserver-adapter (4.1.0)
activeresource (3.2.21)
activesupport (4.1.8, 4.1.1, 3.2.21)
arel (5.0.1.20140414130214, 3.0.3)
bcrypt-ruby (3.1.2 x86-mingw32)
bigdecimal (1.1.0)
bootstrap-sass (2.3.2.0)
bootstrap-will_paginate (0.0.9)
builder (3.2.2, 3.0.4)
bundler (1.7.7)
capybara (2.1.0)
childprocess (0.5.5)
coffee-rails (4.0.1, 3.2.2)
coffee-script (2.3.0)
coffee-script-source (1.8.0)
cucumber (1.3.17)
cucumber-rails (1.4.0)
diff-lcs (1.2.5)
erubis (2.7.0)
execjs (2.2.2)
factory_girl (4.2.0)
factory_girl_rails (4.2.1)
faker (1.1.2)
ffi (1.9.6 x86-mingw32)
gherkin (2.12.2 x86-mingw32)
hike (1.2.3)
i18n (0.7.0, 0.6.11)
io-console (0.3)
jbuilder (2.2.6)
journey (1.0.4)
jquery-rails (3.1.2, 1.0.19)
json (1.8.1, 1.5.5)
mail (2.5.4)
mime-types (1.25.1)
mini_portile (0.6.1)
minitest (5.5.0, 5.4.3, 2.5.1)
multi_json (1.10.1)
multi_test (0.1.1)
nokogiri (1.6.5 x86-mingw32)
pg (0.17.1 x86-mingw32)
polyglot (0.3.5)
rack (1.5.2, 1.4.5)
rack-cache (1.2)
rack-ssl (1.3.4)
rack-test (0.6.2)
rails (4.1.1, 3.2.21)
railties (4.1.1, 3.2.21)
rake (10.4.2, 10.4.0, 0.9.2.2)
rb-notifu (0.0.4)
rb-readline (0.5.1)
rdoc (4.2.0, 3.9.5)
rspec-core (2.13.1)
rspec-expectations (2.13.0)
rspec-mocks (2.13.1)
rspec-rails (2.13.1)
rubyzip (1.1.6, 0.9.9)
sass (3.4.9, 3.2.19)
sass-rails (4.0.5, 3.2.6)
sdoc (0.4.1)
selenium-webdriver (2.35.1)
shoulda-matchers (2.7.0)
sprockets (2.11.0, 2.2.3)
sprockets-rails (2.2.2)
sqlite3 (1.3.10 x86-mingw32, 1.3.8 x86-mingw32)
sqlite3-ruby (1.3.3)
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
tiny_tds (0.6.2 x86-mingw32)
treetop (1.4.15)
turbolinks (2.5.3)
tzinfo (1.2.2, 0.3.42)
tzinfo-data (1.2014.10)
uglifier (2.6.0)
wdm (0.1.0)
websocket (1.0.7)
will_paginate (3.0.4)
xpath (2.0.0)
Has anyone got any suggestions?
So the gripe seems to be around the location of the PID file, which doesn't make a lot of sense, but you're also not running rails in the context of your install.
Try this and see what it does:
bundle exec rails s
From the hint of Jason Mcmunn I could find a way. The problem was solved by deleting the \tmp\pids\pids\server.pid file. Thanks.

rake task OR bundle exec rake task

(Note: I found the same issue on stackoverflow but it didn't solve my issue so I'm going to provide more information about.)
I set up an RoR environment. It contains rvm, ruby, ruby on rails and bundler. Everything seems to be correct.
I switch into this folder which contains a RoR application and try to reset the database
katarina#katarina-VirtualBox:~/RubymineProjects/prototyp1$ rake db:reset
rake aborted!
cannot load such file -- bundler/setup
(See full trace by running task with --trace)
katarina#katarina-VirtualBox:~/RubymineProjects/prototyp1$
Error: "Cannot load such file -- bundler/setup"
On the other side "bundle exec rake db:reset" works as expected.
Here my environment values:
I. ruby installation:
katarina#katarina-VirtualBox:~/RubymineProjects/prototyp1$ rvm list
rvm rubies
ruby-1.9.3-p194 [ x86_64 ]
=* ruby-1.9.3-p429 [ x86_64 ]
ruby-2.0.0-p195 [ x86_64 ]
So "ruby-1.9.3-p429" is my current and default ruby version.
II. used gemset
katarina#katarina-VirtualBox:~/RubymineProjects/prototyp1$ rvm gemset
list
gemsets for ruby-1.9.3-p429 (found in
/home/katarina/.rvm/gems/ruby-1.9.3-p429)
(default)
global
=> prototyp1
So I'm using prototyp1 gemset created inside the current ruby version.
III. contained gems:
NOte: $GEM_HOME points to the proper gemset and gem list returns an item containing the bundler.
katarina#katarina-VirtualBox:~/RubymineProjects/prototyp1$ cd $GEM_HOME
katarina#katarina-VirtualBox:~/.rvm/gems/ruby-1.9.3-p429#prototyp1$ gem list
*** LOCAL GEMS ***
actionmailer (3.2.8)
actionpack (3.2.8)
activemodel (3.2.8)
activerecord (3.2.8)
activeresource (3.2.8)
activesupport (3.2.8)
addressable (2.3.4, 2.3.3)
arel (3.0.2)
bcrypt-ruby (3.0.1)
better_errors (0.9.0)
binding_of_caller (0.7.2)
bootstrap-sass (2.3.2.0)
builder (3.0.4, 3.0.3)
bundler (1.2.0)
cancan (1.6.10)
capybara (2.1.0)
chunky_png (1.2.6)
coderay (1.0.9)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.6.2, 1.4.0, 1.3.3)
compass (0.12.2)
cucumber (1.3.2)
cucumber-rails (1.3.1)
daemons (1.1.9)
database_cleaner (1.0.1)
debug_inspector (0.0.2)
devise (2.2.4)
diff-lcs (1.2.4, 1.1.3)
email_spec (1.4.0)
erubis (2.7.0)
eventmachine (1.0.3)
excon (0.16.10)
execjs (1.4.0)
factory_girl (4.2.0)
factory_girl_rails (4.2.1)
faraday (0.8.7)
figaro (0.6.4)
fssm (0.2.9)
gherkin (2.12.0)
hashie (2.0.5)
heroku (2.35.0)
heroku-api (0.3.8)
hike (1.2.3, 1.2.1)
httpauth (0.2.0)
hub (1.10.6)
i18n (0.6.4)
journey (1.0.4)
jquery-rails (3.0.1, 2.1.4, 2.1.2)
json (1.8.0, 1.7.5)
jwt (0.1.8)
launchy (2.3.0, 2.2.0)
libv8 (3.11.8.17 x86_64-linux, 3.3.10.4 x86_64-linux)
mail (2.4.4)
mime-types (1.23, 1.19)
mini_portile (0.5.0)
multi_json (1.7.7, 1.4.0, 1.3.6)
multipart-post (1.2.0)
netrc (0.7.7)
nokogiri (1.6.0, 1.5.5)
oauth (0.4.7)
oauth2 (0.8.1)
omniauth (1.1.4)
omniauth-facebook (1.4.1)
omniauth-linkedin (0.1.0)
omniauth-oauth (1.0.1)
omniauth-oauth2 (1.1.1)
omniauth-twitter (0.0.17)
orm_adapter (0.4.0)
pg (0.14.1)
polyglot (0.3.3)
quiet_assets (1.0.2)
rack (1.5.2, 1.4.5)
rack-cache (1.2)
rack-ssl (1.3.3, 1.3.2)
rack-test (0.6.2, 0.6.1)
rails (3.2.8)
railties (3.2.8)
rake (10.0.4, 10.0.2, 0.9.2.2)
rdoc (3.12.2, 3.12)
ref (1.0.5)
rest-client (1.6.7)
rolify (3.2.0)
rspec (2.11.0, 2.0.1)
rspec-core (2.13.1, 2.11.1, 2.0.1)
rspec-expectations (2.13.0, 2.11.3, 2.0.1)
rspec-mocks (2.13.1, 2.11.3, 2.11.2, 2.0.1)
rspec-rails (2.13.2, 2.11.0, 2.0.1)
rubygems-bundler (1.1.0)
rubyzip (0.9.9)
rvm (1.11.3.5)
sass (3.2.9, 3.2.3, 3.2.1)
sass-rails (3.2.6, 3.2.5)
simple_form (2.1.0)
sprockets (2.1.3)
sqlite3 (1.3.7, 1.3.6)
therubyracer (0.11.4, 0.10.2)
thin (1.5.1, 1.5.0)
thor (0.18.1, 0.16.0)
tilt (1.4.1, 1.3.3)
treetop (1.4.14, 1.4.12, 1.4.10)
tzinfo (0.3.37, 0.3.35, 0.3.33)
uglifier (2.1.1, 1.3.0)
warden (1.2.1)
webrat (0.7.1)
webrick (1.3.1)
xpath (2.0.0)
Why am I getting the error when executing rake?
Is it an "old-fashioned" way to execute rake tasks? It is recommended to execute "bundle exec .." rather than "rake ..."?
Thank you in advance.
golbie
It is strongly recommended to execute tasks with bundle exec. It ensures the task to be executed in the context of current bundle.

RVM not using installed gems

Any idea how to resolve?
Take a look at this:
funkdified#vizio ~/rails_projects/goodsounds.org $ rvm current
ruby-1.9.3-p392#goodsounds
funkdified#vizio ~/rails_projects/goodsounds.org $ gem install bundler
Fetching: bundler-1.3.2.gem (100%)
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - /var/lib/gems
funkdified#vizio ~/rails_projects/goodsounds.org $ rvm gemset list
gemsets for ruby-1.9.3-p392 (found in /home/funkdified/.rvm/gems/ruby-1.9.3-p392)
(default)
global
=> goodsounds
funkdified#vizio ~/rails_projects/goodsounds.org $ rvm #goodsounds do gem list
*** LOCAL GEMS ***
actionmailer (3.2.13.rc1)
actionpack (3.2.13.rc1)
activemodel (3.2.13.rc1)
activerecord (3.2.13.rc1)
activeresource (3.2.13.rc1)
activesupport (3.2.13.rc1)
acts-as-taggable-on (2.3.3)
annotate (2.4.1.beta1)
arel (3.0.2)
awesome_print (1.1.0)
bcrypt-ruby (3.0.1)
better_errors (0.7.0)
binding_of_caller (0.7.1)
blankslate (3.1.2)
bootstrap-sass (2.3.0.1)
bootstrap-will_paginate (0.0.9)
builder (3.0.4)
bundler (1.3.2)
cancan (1.6.8)
celluloid (0.12.4)
chronic (0.9.1)
climate_control (0.0.3)
cocaine (0.5.1)
coderay (1.0.9)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.5.0)
columnize (0.3.6)
connection_pool (1.0.0)
country_select (1.1.3)
daemons (1.1.9)
debug_inspector (0.0.2)
debugger (1.2.4)
debugger-linecache (1.1.2)
debugger-ruby_core_source (1.1.9)
decorators (1.0.3)
devise (2.2.3)
diff-lcs (1.2.1)
erubis (2.7.0)
eventmachine (1.0.1)
execjs (1.4.0)
facter (1.6.17)
factory_girl (4.2.0)
factory_girl_rails (4.2.1)
fastthread (1.0.7)
ffi (1.0.11)
font-awesome-sass-rails (3.0.2.2)
forem-redcarpet (1.0.0)
friendly_id (4.0.9)
gemoji (1.1.2)
geocoder (1.1.6)
gmaps4rails (1.5.6)
gon (4.0.2)
google_visualr (2.1.7)
googlecharts (1.6.8)
guard (1.6.2)
guard-rspec (2.5.0)
haml (4.0.0)
hash-deep-merge (0.1.1)
hike (1.2.1)
i18n (0.6.1)
journey (1.0.4)
jquery-rails (2.2.1)
jquery-ui-rails (3.0.1)
json (1.7.7)
kaminari (0.14.1)
lazy_high_charts (1.3.3)
libnotify (0.8.0)
libv8 (3.11.8.13 x86_64-linux)
listen (0.7.3)
lumberjack (1.0.2)
mail (2.5.3)
meta_request (0.2.0)
method_source (0.8.1)
mime-types (1.21)
multi_json (1.6.1)
nested_form (0.3.1)
nifty-generators (0.4.6)
nokogiri (1.5.6)
orm_adapter (0.4.0)
pg (0.14.1, 0.13.2)
polyamorous (0.5.0)
polyglot (0.3.3)
pry (0.9.12)
pry-debugger (0.2.1)
pygments.rb (0.2.4)
quiet_assets (1.0.2)
rack (1.4.5)
rack-cache (1.2)
rack-contrib (1.1.0)
rack-pjax (0.7.0)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.13.rc1)
rails_admin (0.4.5)
railties (3.2.13.rc1)
rake (10.0.3)
rdoc (3.12.2)
redcarpet (2.0.1)
RedCloth (4.2.9)
redis (3.0.3)
redis-namespace (1.2.1)
ref (1.0.2)
remotipart (1.0.5)
rest-client (1.6.7)
rolify (3.2.0)
rspec (2.13.0)
rspec-core (2.13.0)
rspec-expectations (2.13.0)
rspec-mocks (2.13.0)
rspec-rails (2.13.0)
rubygems-bundler (1.1.1)
rubypython (0.5.3)
rvm (1.11.3.6)
safe_yaml (0.8.4)
sass (3.2.6)
sass-rails (3.2.6)
select2-rails (3.3.0)
sequel (3.20.0)
sidekiq (2.8.0)
simple_form (2.1.0)
sinatra (1.0)
slim (1.3.6)
slop (3.4.3)
sprockets (2.2.2)
squeel (1.0.17)
taps (0.3.24)
temple (0.5.5)
terminal-table (1.4.5)
therubyracer (0.11.4)
thin (1.5.0)
thor (0.17.0)
tilt (1.3.4)
timers (1.1.0)
treetop (1.4.12)
tzinfo (0.3.36)
uglifier (1.3.0)
v (0.1.1)
warden (1.2.1)
webrat (0.7.3)
whenever (0.8.2)
will_paginate (3.0.4)
workflow (0.8.0)
funkdified#vizio ~/rails_projects/goodsounds.org $ bundle
ERROR: Gem bundler is not installed, run `gem install bundler` first.
It might be an issue is with the installation of bundler and permission to execute bundle command.
funkdified#vizio ~/rails_projects/goodsounds.org $ gem install bundler
Fetching: bundler-1.3.2.gem (100%)
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - /var/lib/gems
funkdified#vizio ~/rails_projects/goods
Did you install anything ruby/gem via system's package manager or used sudo during gem installation?
This question have similar issue, i.e rvm and bundle install in Ubuntu 12.10: Errno::EACCES and this to install rvm properly Installed Ruby 1.9.3 with RVM but command line doesn't show ruby -v.
I had to select the "Run command as login shell" inside of gnome terminal!
As the comment above suggests:
Open terminal and go to Edit and select Profile preferences.. It will
show pop up. Then select Title and Command tab and uncheck Run command
as login shell
do you have root access?
if so, try:
sudo gem install bundler
I believe the issue here is that you do not have permission to install to /var/lib/gems. Have your tried performing an install as 'root':
sudo gem install bundler
If you didn't install rvm as a user install, then you will not be able to install gems without sudo.

Resources