Solved Failed when migrating db for redmine 5

Env

FreeBSD 13.1 amd64
Redmine 5.0.2

Problem

Install redmine 5 following the offical doc at https://www.redmine.org/projects/redmine/wiki/RedmineInstall
excpet that redmine 4 db is restored before `bundle exec rake db:migrate`

Code:
% bundle config set --local without 'development test'
% set RAILS_ENV=production
# restore redmine 4 db, then try to migrate to readmine 5 as below
% bundle exec rake db:migrate
rake aborted!
LoadError: cannot load such file -- listen
% bundle info listen
Could not find gem 'listen', because it's in the gorup 'development', configured to be ignored.

More Info
No problem on Linux, specially manjaro, so it's FreeBSD specific.

Question
I think Ruby should be independent of OS, why not in this case?
 
RAILS_ENV is an environment variable. With csh(1) you set those with setenv(1), not set(1).

Code:
setenv [name [value]]
	       Without	arguments, prints the names and	values of all environ-
	       ment variables.	Given name, sets the environment variable name
	       to value	or, without value, to the null string.
 
RAILS_ENV is an environment variable. With csh(1) you set those with setenv(1), not set(1).

Code:
setenv [name [value]]
           Without    arguments, prints the names and    values of all environ-
           ment variables.    Given name, sets the environment variable name
           to value    or, without value, to the null string.
set only sets env var for the current shell.
setenv not only sets env var for the current shell, but also for the child shells.
 
Back
Top