user4723845
user4723845

Reputation: 151

Run `bundle install` to install missing gems

I'm trying to install a Ruby based tool call Warvox and when I try to do a "make", I get the following error

user@localhost:/home/warvox$ sudo make database
Could not find lumberjack-1.0.9 in any of the sources
Run `bundle install` to install missing gems.
make: *** [database] Error 7

So I had installed Lumberjack

user@localhost:/home/warvox$ gem install lumberjack
Successfully installed lumberjack-1.0.9
Parsing documentation for lumberjack-1.0.9
Done installing documentation for lumberjack after 0 seconds
1 gem installed

However ever after installing the missing gem, error is still the same. Any advise/suggestions.

Upvotes: 5

Views: 46566

Answers (3)

Antu
Antu

Reputation: 2303

Step One: Install Bundler

Open a terminal window on a computer connected to the internet and cd to the application directory, then, enter the following at the command line.

$ gem install bundler

Step Two: Install Required Gems

Ask bundle to install all the gems specified in the Gemfile to your application.

$ bundle install

If you are using a database in development mode that is different from the database to be used in production mode, use this instead:

$ bundle install --without production

Reference link https://www.realifewebdesigns.com/web-programming/rubyonrails/gem-bundler.asp

Upvotes: 9

AITS
AITS

Reputation: 1

$ gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)"

I'm using this command and it's work for me

Upvotes: 0

Aleksei Matiushkin
Aleksei Matiushkin

Reputation: 120990

You are making database as superuser (using sudo.)

Hence you should install the missing gem as the same user:

sudo gem install lumberjack

Uh, sorry, I misread original error message. You should run bundle install, possibly as superuser, in the top Warvox source directory.

UPD: BTW, why are running make database` as superuser, despite what is written in the installation instructions?

Upvotes: 0

Related Questions