Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centos 5.7 Install , help with error running "rake snorby:setup" command #300

Closed
acarrasquillo opened this issue Jun 12, 2013 · 13 comments
Closed

Comments

@acarrasquillo
Copy link

Hi I have been trying to solve this error but still I don't figure it out :
running command :
$ rake snorby:setup

I get this error :

/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:2:in require': no such file to load -- rubygems (LoadError) from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:2 from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/setup.rb:1:inrequire'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/setup.rb:1

the "gems" folder inside "1.9.1" folder : ' /usr/local/lib/ruby/gems/1.9.1/gems <- ' doesn't exist so I’m missing everything that comes after that " /bundler-1.3.5/lib/bundler/* "

any help of how I can update this gems will be appreciated.

thanks!

@gehrhorn
Copy link
Contributor

Did you run bundle install first? Do you have rubygems installed? Are you using RVM? Can you post the output of
gem list --local

@acarrasquillo
Copy link
Author

Thank's for your time gehrhorn

I already run bundle install and it said: it was installed into ./vendor/cache

Command gem -v return 1.8.23

Command gem lis --local return

*** LOCAL GEMS ***

actionmailer (3.2.13)
actionpack (3.2.13)
activemodel (3.2.13)
activerecord (3.2.13)
activeresource (3.2.13)
activesupport (3.2.13)
arel (3.0.2)
bigdecimal (1.1.0)
builder (3.2.2, 3.0.4)
bundler (1.3.5)
erubis (2.7.0)
hike (1.2.3)
i18n (0.6.4, 0.6.1)
io-console (0.3)
journey (1.0.4)
json (1.5.4)
mail (2.5.4)
memcache-client (1.8.5)
mime-types (1.23)
minitest (2.5.1)
multi_json (1.7.6)
polyglot (0.3.3)
rack (1.5.2, 1.4.5)
rack-cache (1.2)
rack-mount (0.8.3)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.13)
railties (3.2.13)
rake (0.9.2)
rdoc (3.9.4)
sprockets (2.2.2)
thor (0.18.1)
tilt (1.4.1)
treetop (1.4.14)
tzinfo (1.0.0, 0.3.37)

@gehrhorn
Copy link
Contributor

Can you post the output of gem update --system

@acarrasquillo
Copy link
Author

i got it man : gem install bundler it was missing the bundler-1.3.5

@gehrhorn
Copy link
Contributor

That'll do it. 😄

@acarrasquillo
Copy link
Author

it is still giving me the error, but now the files are there, do you think i need to do something else?

@gehrhorn
Copy link
Contributor

Run bundle install again?

On Thu, Jun 13, 2013 at 10:39 AM, Abimael Carrasquillo <
notifications@github.com> wrote:

it is still giving me the error, but now the files are there, do you think
i need to do something else?


Reply to this email directly or view it on GitHubhttps://github.com//issues/300#issuecomment-19395970
.

@acarrasquillo
Copy link
Author

I run it and then gem rake snorby:setup but still showing this

* Starting the Snorby worker process.
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:2:in require': no such file to load -- rubygems (LoadError) from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb:2 from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/setup.rb:1:inrequire'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/setup.rb:1

@acarrasquillo
Copy link
Author

this is saying that in line 2 of shared-helpers.rb there is no file to load called rubygems this line in file shared_helpers.rb says require 'rubygems'

@gehrhorn
Copy link
Contributor

Take a look at these instructions. Ruby can't find rubygems. If that gets you nowhere you can try to reintstall rubygems.

@acarrasquillo
Copy link
Author

Ok thaks man, It is something with the version of ruby running my system, it is running version 1.9.3 and the only path i have for rubygems is of version 1.9.1 . I will do my best to fix it. You helped me a lot to figure out!

thanks! again!

@gehrhorn
Copy link
Contributor

I highly recommend using RVM. It makes a lot of these problems go away
because everything is contained within your .rvm directory and you can
switch versions easily.

On Thu, Jun 13, 2013 at 11:46 AM, Abimael Carrasquillo <
notifications@github.com> wrote:

Ok thaks man, It is something with the version of ruby running my system,
it is running version 1.9.3 and the only path i have for rubygems is of
version 1.9.1 . I will do my best to fix it. You helped me a lot to figure
out!

thanks! again!


Reply to this email directly or view it on GitHubhttps://github.com//issues/300#issuecomment-19400562
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants