Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to solve "uninitialized constant Dependencies" error in rake?
    primarykey
    data
    text
    <p>I am trying to build Noosfero (<a href="http://noosfero.org/" rel="nofollow noreferrer">http://noosfero.org/</a>), a project done in Ruby, but I am pretty new in Ruby and Linux (my current environment). I am following the instructions in their tutorial (<a href="http://gitorious.org/noosfero/noosfero/blobs/master/INSTALL" rel="nofollow noreferrer">http://gitorious.org/noosfero/noosfero/blobs/master/INSTALL</a> and <a href="http://gitorious.org/noosfero/noosfero/blobs/master/HACKING" rel="nofollow noreferrer">http://gitorious.org/noosfero/noosfero/blobs/master/HACKING</a>).</p> <p>I was supposed to run an apt-get install with many packages, everything worked except for libgettext-ruby-data, to which I get a message that "E: Package libgettext-ruby-data has no installation candidate".</p> <p>I then download the source and try to run "rake db:schema:load", which I get the following error: </p> <p>"rake aborted! uninitialized constant Dependencies /home/user/noosfero/Rakefile:10"</p> <p>My rake file is the following:</p> <p>require(File.join(File.dirname(<strong>FILE</strong>), 'config', 'boot'))</p> <p>require 'rake' require 'rake/testtask' require 'rake/rdoctask'</p> <p>require 'tasks/rails' #this is the line that the dependency can't be found</p> <p>I searched around and found this question here: <a href="https://stackoverflow.com/questions/5176782/uninitialized-constant-activesupportdependenciesmutex-nameerror">Uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)</a> , but changing the config files didn't help and I could wasn't able to downgrade my RubyGems because I do not know how to do that (gem -update returns a message that I have to do that using apt-get, but I can't find out in which package the gem program is).</p> <p>The first time I run Rake, I get a message saying: "I: Installing Debian-installed Rails from /usr/share/rails into vendor/rails. I: Please note that the recommended Rails version is 2.1.0, and that other versions might not work"</p> <p>But I don't know how to downgrade my Rails version.</p> <p>I've got many paths to follow, so I've got many questions, I hope you can help me:</p> <p>1- Does anyone knows how to fix it directly? 2- How can I downgrade Gems? 3- How can I downgrade Rails? 4- Where can I download gems and how can I install it? (The documentation provides a link, but this link is VERY strange: <a href="http://www.yotabanana.com/hiki/ruby-gettext.html?ruby-gettext" rel="nofollow noreferrer">http://www.yotabanana.com/hiki/ruby-gettext.html?ruby-gettext</a> ).</p> <p>Any help is very appreciated.</p> <p>Thanks, Oscar</p> <p>Edit: can this error be a problem in the project I downloaded and not in my environment? After some research I am starting to think it is, can it be?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload