Project

General

Profile

Redmine Installation (Windows)- Error with bundle install

Added by Kumaravel Sarangapani over 3 years ago

Hi
Any idea about this error while executing bundle install:

Installing rmagick 2.16.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rmagick-2.16.0/ext/RMagick
C:/Ruby25-x64/bin/ruby.exe -I C:/Ruby25-x64/lib/ruby/site_ruby/2.5.0 -r
./siteconf20200727-6880-rhtkgo.rb extconf.rb
  • extconf.rb failed ***
    Could not create Makefile due to some reason, probably lack of necessary
    libraries and/or headers. Check the mkmf.log file for more details. You may
    need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby25-x64/bin/$(RUBY_BASE_NAME)
extconf.rb:141:in ``': No such file or directory - identify -version
(Errno::ENOENT)
from extconf.rb:141:in `configure_compile_options'
from extconf.rb:16:in `initialize'
from extconf.rb:548:in `new'
from extconf.rb:548:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/rmagick-2.16.0 for inspection.
Results logged to
C:/Ruby25-x64/lib/ruby/gems/2.5.0/extensions/x64-mingw32/2.5.0/rmagick-2.16.0/ge
m_make.out

An error occurred while installing rmagick (2.16.0), and Bundler cannot
continue.
Make sure that `gem install rmagick -v '2.16.0' --source
'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
rmagick

Please advise if any solution.

Regards
Kumar.


Replies (4)

RE: Redmine Installation (Windows)- Error with bundle install - Added by Go MAEDA over 3 years ago

I suggest installing the latest Redmine 4.1. Since Redmine 4.1 replaced RMagick with MiniMagick (#30492), errors regarding RMagick will never occur.

RE: Redmine Installation (Windows)- Error with bundle install - Added by Naveed Kamran over 3 years ago

Even with the version 4.1.1 same problem.
It fails installing redmine_dmsf plugin.

Installing simple_enum 2.3.2
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /usr/local/bundle/gems/ox-2.14.0/ext/ox
/usr/local/bin/ruby -I /usr/local/lib/ruby/2.6.0 -r
./siteconf20201216-24-10lvdti.rb extconf.rb
>>>>> Creating Makefile for ruby version 2.6.6 on x86_64-linux <<<<<
checking for rb_time_timespec()... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/usr/local/bin/$(RUBY_BASE_NAME)
    --with-ox-dir
    --without-ox-dir
    --with-ox-include
    --without-ox-include=${ox-dir}/include
    --with-ox-lib
    --without-ox-lib=${ox-dir}/lib
    (1-4/4)