rubygems - Using RVM, how to ensure gems and non-gems see the same version of ruby? -


i'm trying install bdb on ubuntu gem follows,

gem install bdb 

i'm not using sudo, since installing rvm. ruby version on system 1.9.1 version i'm using installation 1.8.7 (i'm installing rbot, see). problem i've encountered is:

checking db_version() in -ldb-4.something... no 

i assume means rubygems not finding ldb4.something in places looking. because installed libdb-4.something (7, actually) using sudo, , system's ruby version different ruby version i'm using bdb? using rvm, how should manage sort of situation? maybe i'm doing things wrong, seems me problem not i'm using gem, , stuff isn't gems seeing wrong version of ruby.

(if turns out problem unrelated: still interested in question. how things i've installed on system particular version of ruby along gems installed using rvm under different versions of ruby?)

"how things i've installed on system particular version of ruby along gems installed using rvm under different versions of ruby?"

they don't, , point. rvm managing different versions of ruby isolated each other.

this means ruby versions use system (when sudo gem install installing system) have nothing current environment (when set up.)

when in rvm environment, each version of ruby installed isolated environment.

what recommend this:

  1. go rvm website , check out.
  2. at end of page, continue reading how use gemsets.
  3. go project directory
  4. rvm use 1.8.7@your_project_environment
  5. create .rvrmc file automatically using environment in project on future visits project, file can contain "rvm use 1.8.7@your_project_environment" achieve this.
  6. install required gems

if have additional questions, feel free visit wayne e. seguin , ton of other users of rvm , happy out. of course, first search answers documentation on web site.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -