The following forum(s) have migrated to Microsoft Q&A (Preview): Azure App Service - Web Apps!
Visit Microsoft Q&A (Preview) to post new questions.

Learn More

 locked
How to install rmagick on "Web App On Linux" RRS feed

  • Question

  • Hello,

    I was pushed Redmine 3.3 to my "Web App On Linux" by local Git.
    But, displayed following error.

    --------------------------------

    remote: extconf.rb
    remote: checking for gcc... yes
    remote: checking for Magick-config... no
    remote: checking for pkg-config... yes
    remote: Package MagickCore was not found in the pkg-config search path.
    remote: Perhaps you should add the directory containing `MagickCore.pc'
    remote: to the PKG_CONFIG_PATH environment variable
    remote: No package 'MagickCore' found
    remote: checking for outdated ImageMagick version (<= 6.4.9)... *** extconf.rb f
    ailed
    remote: ***
    remote: Could not create Makefile due to some reason, probably lack of necessary

    remote: libraries and/or headers.  Check the mkmf.log file for more details.  Yo
    u may
    remote: need configuration options.
    remote:
    remote: Provided configuration options:
    remote:         --with-opt-dir
    remote:         --without-opt-dir
    remote:         --with-opt-include
    remote:         --without-opt-include=${opt-dir}/include
    remote:         --with-opt-lib
    remote:         --without-opt-lib=${opt-dir}/lib
    remote:         --with-make-prog
    remote:         --without-make-prog
    remote:         --srcdir=.
    remote:         --curdir
    remote:         --ruby=/usr/local/.rbenv/versions/2.3.3/bin/$(RUBY_BASE_NAME)
    remote:
    remote: To see why this extension failed to compile, please check the mkmf.log w
    hich can
    remote: be found here:
    remote:
    remote:   /tmp/bundle/extensions/x86_64-linux/2.3.0-static/rmagick-2.16.0/mkmf.l
    og
    remote:
    remote: extconf failed, exit code 1
    remote:
    remote: Gem files will remain installed in /tmp/bundle/gems/rmagick-2.16.0 for
    remote: inspection.
    remote: Results logged to
    remote: /tmp/bundle/extensions/x86_64-linux/2.3.0-static/rmagick-2.16.0/gem_make
    .out
    remote:
    remote: An error occurred while installing rmagick (2.16.0), and Bundler cannot
    remote: continue.
    remote: Make sure that `gem install rmagick -v '2.16.0'` succeeds before bundlin
    g.
    remote: An error has occurred during web site deployment.
    remote: bundler failed
    remote:
    remote: Error - Changes committed to remote repository but deployment to website
     failed.

    -----------------------------------------------------------------

    I wrote additional following lines to Gemfile.

    -------------------------
    group :ImageMagick do

        gem "ImageMagick", ">= 6.4.9"
      end
    ------------------------

    and displayed error.

    ---------------------------------

    remote: Could not find gem 'ImageMagick (>= 6.4.9)' in any of the gem sources li
    sted in

    ----------------------------------

    Please, How to install rmagick and Redmine.

    Tuesday, June 20, 2017 5:31 AM

All replies

  • Hello OrdinaryDeveloper.JP

    This errir is due to rmagick is not available inthe built-in image that the platform provide, a way to solve this is to create a custom Docker container. One way to do that is through forking our built-in container (https://github.com/Azure-App-Service/ruby/tree/master/2.3) and use it as a custom container (https://docs.microsoft.com/en-us/azure/app-service-web/app-service-linux-using-custom-docker-image)

    Ahmed
    App Service Team

    Tuesday, June 20, 2017 6:37 PM
  • How exactly are you setting up the deployment? Are you referring to any Azure documentations?

    There is a discussion on similar query here, you may look into that.

    Also, refer the suggestions outlined in the links below:

    Investigating continuous deployment and Deployment vs runtime issues

    Checkout the documentation Troubleshooting for more details.

    ---------------------------------------------------------------------------------------------------

    Do click on "Mark as Answer" on the post that helps you, this can be beneficial to other community members.

    Tuesday, June 20, 2017 6:41 PM