From: Jim Weirich Date: 2005-09-15T04:24:40+09:00 Subject: Re: rubygems and manually installed dependencies Trans said: > please correct me if i am mistaken. if i'm using a gems installrf app > that has gem dependencies, rubygems will prevent it from working unless > those other gems are installed? even if those other apps are install > manually? Just to be clear ... there are two kinds of dependencies. There are the declared dependencies in the gem metadata that are used to identify additional gems that might be needed at install time. A --force flag on the gem command will override these declared dependencies and allow you to install even if the other gems are not available. The other kind of dependency is a require_gem statement in the runtime code. If a require_gem statement cannot find a gem that matches the name and requested version constraint, then an exception will be generated. However, most applications should *not* be using require_gem, even if they are installed by gems. You should use require_gem _only_ if you wish to require a particular version of a library. -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)