Difference between revisions of "User:Woozle/Redmine/2"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
(Created page with "==2020-02-09== The [https://redmine.org/projects/redmine/wiki/Download download/install] instructions suggest strongly that using subversion is the best way to upgrade -- svn...")
 
Line 1: Line 1:
 
==2020-02-09==
 
==2020-02-09==
 +
===Redmine: download===
 
The [https://redmine.org/projects/redmine/wiki/Download download/install] instructions suggest strongly that using subversion is the best way to upgrade --
 
The [https://redmine.org/projects/redmine/wiki/Download download/install] instructions suggest strongly that using subversion is the best way to upgrade --
 
  svn co https://svn.redmine.org/redmine/branches/4.0-stable redmine-4.0
 
  svn co https://svn.redmine.org/redmine/branches/4.0-stable redmine-4.0
Line 6: Line 7:
  
 
I think this assumes I'm working with an already-configured instance, though, so I should look at the [https://redmine.org/projects/redmine/wiki/RedmineInstall installation guide] before trying the <code>svn update</code>.
 
I think this assumes I'm working with an already-configured instance, though, so I should look at the [https://redmine.org/projects/redmine/wiki/RedmineInstall installation guide] before trying the <code>svn update</code>.
 +
 +
On further reflection, I realized that I should probably be installing v4.1, in spite of the example:
 +
svn co http://svn.redmine.org/redmine/branches/4.1-stable/ redmine-4.1
 +
That seemed to work too.
 +
===Ruby===
 +
It looked like the packaged version of Ruby (2.5.1p57 (2018-03-29 revision 63029)) would be ok -- Redmine 4.1 wants Ruby 2.3, 2.4, 2.5, or 2.6 and Rails 5.2 -- so I did that.
 +
===Rails===
 +
I was never able to find actual instructions for installing Rails (unless you're serving from Windows or Mac for some reason), but a hint somewhere suggested that it could be installed with <code>[[Ruby/gem|gem]]</code>:
 +
<pre>
 +
root@cloud1:~# gem install rails
 +
Fetching: concurrent-ruby-1.1.5.gem (100%)
 +
Successfully installed concurrent-ruby-1.1.5
 +
Fetching: i18n-1.8.2.gem (100%)
 +
 +
HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
 +
But that may break your application.
 +
 +
If you are upgrading your Rails application from an older version of Rails:
 +
 +
Please check your Rails app for 'config.i18n.fallbacks = true'.
 +
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
 +
'config.i18n.fallbacks = [I18n.default_locale]'.
 +
If not, fallbacks will be broken in your app by I18n 1.1.x.
 +
 +
If you are starting a NEW Rails application, you can ignore this notice.
 +
 +
For more info see:
 +
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
 +
 +
Successfully installed i18n-1.8.2
 +
Fetching: thread_safe-0.3.6.gem (100%)
 +
Successfully installed thread_safe-0.3.6
 +
Fetching: tzinfo-1.2.6.gem (100%)
 +
Successfully installed tzinfo-1.2.6
 +
Fetching: zeitwerk-2.2.2.gem (100%)
 +
Successfully installed zeitwerk-2.2.2
 +
Fetching: activesupport-6.0.2.1.gem (100%)
 +
Successfully installed activesupport-6.0.2.1
 +
Fetching: rack-2.2.1.gem (100%)
 +
Successfully installed rack-2.2.1
 +
Fetching: rack-test-1.1.0.gem (100%)
 +
Successfully installed rack-test-1.1.0
 +
Fetching: mini_portile2-2.4.0.gem (100%)
 +
Successfully installed mini_portile2-2.4.0
 +
Fetching: nokogiri-1.10.7.gem (100%)
 +
Building native extensions. This could take a while...
 +
ERROR:  Error installing rails:
 +
        ERROR: Failed to build gem native extension.
 +
 +
    current directory: /var/lib/gems/2.5.0/gems/nokogiri-1.10.7/ext/nokogiri
 +
/usr/bin/ruby2.5 -r ./siteconf20200209-18711-ifi5p4.rb extconf.rb
 +
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
 +
 +
extconf failed, exit code 1
 +
 +
Gem files will remain installed in /var/lib/gems/2.5.0/gems/nokogiri-1.10.7 for inspection.
 +
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.7/gem_make.out
 +
</pre>

Revision as of 17:35, 9 February 2020

2020-02-09

Redmine: download

The download/install instructions suggest strongly that using subversion is the best way to upgrade --

svn co https://svn.redmine.org/redmine/branches/4.0-stable redmine-4.0

...and then cd to the redmine-4.0 folder which that creates, and:

svn update

I think this assumes I'm working with an already-configured instance, though, so I should look at the installation guide before trying the svn update.

On further reflection, I realized that I should probably be installing v4.1, in spite of the example:

svn co http://svn.redmine.org/redmine/branches/4.1-stable/ redmine-4.1

That seemed to work too.

Ruby

It looked like the packaged version of Ruby (2.5.1p57 (2018-03-29 revision 63029)) would be ok -- Redmine 4.1 wants Ruby 2.3, 2.4, 2.5, or 2.6 and Rails 5.2 -- so I did that.

Rails

I was never able to find actual instructions for installing Rails (unless you're serving from Windows or Mac for some reason), but a hint somewhere suggested that it could be installed with gem:

root@cloud1:~# gem install rails
Fetching: concurrent-ruby-1.1.5.gem (100%)
Successfully installed concurrent-ruby-1.1.5
Fetching: i18n-1.8.2.gem (100%)

HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.

If you are upgrading your Rails application from an older version of Rails:

Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.

If you are starting a NEW Rails application, you can ignore this notice.

For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0

Successfully installed i18n-1.8.2
Fetching: thread_safe-0.3.6.gem (100%)
Successfully installed thread_safe-0.3.6
Fetching: tzinfo-1.2.6.gem (100%)
Successfully installed tzinfo-1.2.6
Fetching: zeitwerk-2.2.2.gem (100%)
Successfully installed zeitwerk-2.2.2
Fetching: activesupport-6.0.2.1.gem (100%)
Successfully installed activesupport-6.0.2.1
Fetching: rack-2.2.1.gem (100%)
Successfully installed rack-2.2.1
Fetching: rack-test-1.1.0.gem (100%)
Successfully installed rack-test-1.1.0
Fetching: mini_portile2-2.4.0.gem (100%)
Successfully installed mini_portile2-2.4.0
Fetching: nokogiri-1.10.7.gem (100%)
Building native extensions. This could take a while...
ERROR:  Error installing rails:
        ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.5.0/gems/nokogiri-1.10.7/ext/nokogiri
/usr/bin/ruby2.5 -r ./siteconf20200209-18711-ifi5p4.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.5.0/gems/nokogiri-1.10.7 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.7/gem_make.out