Chiku Linu writes:

> Hi,
>
> Fresh gitorious install with rvm ree default and gemset for gitorious.
> gitorious folder got .rvmrc and when I'm inside this folder env is set for
> this gemset.
>
> then 1st try :
> git clone works.
> when git push, commits are pushed on repository and I can browser tree.
> But on gitorious activities, there is no commits.
>
> ~/toto$ LANG="C" git push
> Counting objects: 3, done.
> Delta compression using up to 4 threads.
> Compressing objects: 100% (2/2), done.
> Writing objects: 100% (2/2), 266 bytes, done.
> Total 2 (delta 0), reused 0 (delta 0)
> remote:
> /usr/local/rvm/rubies/ree-1.8.7-2012.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
> `gem_original_require': no such file to load -- bundler (LoadError)
> remote:         from
> /usr/local/rvm/rubies/ree-1.8.7-2012.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
> `require'
> remote:         from ./hooks/messaging.rb:42
> remote:         from hooks/post-receive:25:in `require'
> remote:         from hooks/post-receive:25
> remote: => Syncing Gitorious... To
> gitori...@gitorious.lan.net:toto/mainline.git
>    a974bf9..32553a3  master -> master

I'm not sure how you set up rvm on your computer, but it looks like rvm
is unable to find your gemset. I would highly recommend that you install
bundler globally in your Ruby installation, if you do that you should be
able to use Bundler to handle all the other gems for you.

Specifically, if you pass the --deployment flag to "bundle install", it will
unpack all the gems in your Gemfile into a "cache", by default into
vendor/bundle. Your .bundle/config file will get an entry for
BUNDLE_PATH which states where the gems are put.

To understand why this is required, consider that when you push over ssh
to your Gitorious server, all commands are run over SSH. Rvm is
implemented as shell scripts, and many of its commands are shell
commands. When running non-interactively (like over SSH) you cannot
depend on this to work unless you want to configure sshd to source shell
scripts for SSH sessions (which I wouldn't recommend).

Cheers,
- Marius

-- 
-- 
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
"Gitorious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitorious+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to