I use $HOME/.gemrc

install: --user-install --no-ri --no-rdoc --bindir /home/kristian/bin
update: --user-install --no-ri --no-rdoc --bindir /home/kristian/bin

which installs all gems in my user directory - no sudo needed. BUT
bundler does not obey this setting and ask for sudo password and
installs them into the system.

I think the easiest way to get rubygems and bundle working "locally"
is setting something like

export GEM_HOME=$HOME/.gems
export GEM_PATH=$HOME/.gems

then rubygems and bundler works fine together.

I just tried this on ubuntu 11.10 where I do have
$ gem envir
RubyGems Environment:
  - RUBYGEMS VERSION: 1.7.2
  - RUBY VERSION: 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
  - INSTALLATION DIRECTORY: /home/kristian/.gems
  - RUBY EXECUTABLE: /usr/bin/ruby1.8
  - EXECUTABLE DIRECTORY: /home/kristian/.gems/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /home/kristian/.gems
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - "maven" => {"profiles"=>"sonatype-snapshots",
"plugin_version"=>"0.28.6-SNAPSHOT"}
     - "install" => "--user-install --no-ri --no-rdoc --bindir /home/
kristian/bin"
     - "update" => "--user-install --no-ri --no-rdoc --bindir /home/
kristian/bin"
  - REMOTE SOURCES:
     - http://rubygems.org/

and there is no problem to install sinatra and thin. from that thread
I conclude you do not have the right version of rubygems installed try
to install the version from 11.10

- Kristian

On Nov 8, 7:11 am, "MaT 2." <li...@ruby-forum.com> wrote:
> i hope somebody can help me with this kind of problem..
>
> --
> Posted viahttp://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to