Difference between revisions of "User:Woozle/Redmine/2"
Line 66: | Line 66: | ||
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.7/gem_make.out | Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.10.7/gem_make.out | ||
</pre> | </pre> | ||
+ | It took some puzzling to work out that the key part of that message was: | ||
+ | can't find header files for ruby at /usr/lib/ruby/include/ruby.h | ||
+ | ...suggesting that the Ruby header files (presumably in the <code>ruby-dev</code> package) need to be installed. | ||
+ | |||
+ | Having installed them, we will try again... |
Revision as of 19:38, 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
It took some puzzling to work out that the key part of that message was:
can't find header files for ruby at /usr/lib/ruby/include/ruby.h
...suggesting that the Ruby header files (presumably in the ruby-dev
package) need to be installed.
Having installed them, we will try again...