Project

General

Profile

Actions

Defect #15056

closed

Command missing in the RedmineInstall page

Added by Yann PENIGUEL about 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
Documentation
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Hello there,

At step 4 of the RedmineInstall guide, it seem to miss a command.
If you follow the instructions, you will get a Bundler::GemfileNotFound when trying to use "bundle install --without development test".
It is because you need to use "bundle init" first, which initiate the required Gemfile.

Yann PENIGUEL

Actions #1

Updated by Jan Niggemann (redmine.org team member) about 12 years ago

  • Due date set to 2013-10-21
  • Status changed from New to Needs feedback
  • Priority changed from Normal to Low

bundle install: Install the gems specified by the Gemfile or Gemfile.lock
bundle init: Generate a simple Gemfile, placed in the current directory

So... No, you don't need to do this.
Please explain why you feel bundle init should be used.

Actions #2

Updated by Yann PENIGUEL about 12 years ago

In the case you are doing a totally fresh install of redmine with a totally new Ruby installation (specially done for running Redmine), the file "Gemfile" does not exist.
So, you get that exception.
I think this tutorial has been done by someone who already has a fully functional ruby environment.
But there are case where peoples, like me, are asked to do a redmine installation from scratch, on a machine that doesn't already have a ruby installation.
In that case, if you follow the wiki page, you fail.
Because you got a fresh install of ruby without Gemfile.
So i think the wiki page should add a little precision : In the case you are on a fresh ruby install without an existing Gemfile, you have to do a "bundle init".
Without that, someone trying to install ruby+redmine fail.
This is trivial for a ruby adict, but this wiki page is potentially readen by peoples not familiar with ruby.

Actions #3

Updated by Mischa The Evil about 12 years ago

  • Due date deleted (2013-10-21)
  • Category changed from Wiki to Documentation
  • Status changed from Needs feedback to Closed
  • Resolution set to Invalid

Jan is right here. bundle init is not needed and would probably fail if executed (or break the Redmine source even before the installation is completed).

Yann PENIGUEL wrote:

In the case you are doing a totally fresh install of redmine with a totally new Ruby installation (specially done for running Redmine), the file "Gemfile" does not exist.

Because you got a fresh install of ruby without Gemfile.

Gemfile is part of the Redmine source code: see source:/trunk/Gemfile.

Actions #4

Updated by Jan Niggemann (redmine.org team member) about 12 years ago

The stack is roughly like this
- ruby
- rails
- rails-application

The Gemfile is usually part of the rails application.

Yann PENIGUEL wrote:

In the case you are doing a totally fresh install of redmine with a totally new Ruby installation (specially done for running Redmine), the file "Gemfile" does not exist.

That is not correct, the Gemfile is always part of the redmine download package. If it would not be, then which versions of which gems would bundler use?

I think this tutorial has been done by someone who already has a fully functional ruby environment.
But there are case where peoples, like me, are asked to do a redmine installation from scratch, on a machine that doesn't already have a ruby installation.

Gemfiles are application-specific and technically don't belong to ruby itself.

In that case, if you follow the wiki page, you fail.
Because you got a fresh install of ruby without Gemfile.

You don't, because it is in redmine-2.3.3.tar.gz you just downloaded.

I'm closing this as it isn't a defect per se, let's discuss this on the forums...
Oh, Mischa already did while I was writing this...

Actions #5

Updated by Toshi MARUYAMA about 12 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF