I download redmine in github
And open the application
After give bundle install
An error occurred while installing rmagick (2.16.0), and Bundler
cannot continue. Make sure that gem install rmagick -v '2.16.0'
succeeds before bundling.
To see why this extension failed to compile, please check the mkmf.log
which can be found here:
/home/supranimbus12/.rvm/gems/ruby-2.3.0#global/extensions/x86_64-linux/2.3.0/rmagick-2.16.0/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in
/home/supranimbus12/.rvm/gems/ruby-2.3.0#global/gems/rmagick-2.16.0
for inspection. Results logged to
/home/supranimbus12/.rvm/gems/ruby-2.3.0#global/extensions/x86_64-linux/2.3.0/rmagick-2.16.0/gem_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'
succeeds before bundling.
In Gemfile: rmagick
Please make sure you install Imagemagick first. If you are using ubuntu, then you can use apt-get to install Imagemagick. Also maybe you need to install libmagickwand-dev.
Related
It's my first time to use ruby on rails I installed rails from this link http://railsinstaller.org/en
I created my first project but I facing troubles when trying to run rails server, first, it requires to run
bundle install
After running bundle install
I see several issues in the command line
To see why this extension failed to compile, please check the mkmf.log which can
be found here:
C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/sqlite3-1.4.2/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in
C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/sqlite3-1.4.2 for
inspection.
Results logged to
C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/sqlite3-1.4.2/gem_make.out
An error occurred while installing sqlite3 (1.4.2), and Bundler cannot continue.
Make sure that `gem install sqlite3 -v '1.4.2' --source 'https://rubygems.org/'`
succeeds before bundling.
In Gemfile:
sqlite3
So how I can fix these pleas?
In your Gemfile try lowering the version of sqlite you're using.
gem 'sqlite3', '~>1.3.13'
Looking at https://rubygems.org/gems/sqlite3/versions/1.3.13-x86-mingw23 , 1.3.13 seems to be the latest supported version with mingw23.
While doing bundle install
collect2.exe: error: ld returned 1 exit status
make: *** [RMagick2.so] Error 1
make failed, exit code 2
Gem files will remain installed in
C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/rmagick-2.16.0 for
inspection.
Results logged to
C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/rmagick-2.16.0/gem_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'` succeeds before bundling.
In Gemfile:
rmagick
Then I tried gem install rmagick -v '2.16.0' which in turn throwed this error
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
collect2.exe: error: ld returned 1 exit status
make: *** [RMagick2.so] Error 1
make failed, exit code 2
Gem files will remain installed in C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/rmagick-2.16.0 for inspection.
Results logged to C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/rmagick-2.16.0/gem_make.out
After that i tried gem install rmagick --platform=ruby -- --with-opt-lib="C:/Program Files/ImageMagick-6.9.6-Q16-HDRI/lib" --with-opt-include="C:/Program Files/ImageMagick-6.9.6-Q16-HDRI/include" which throwed the same error as mentioned above in gem install rmagick -v '2.16.0'
Please help me out with this..
Install ImageMagick on Windows 10
Important: DON'T download the latest version of ImageMagick. It won't work with RMagick on a Windows development environment. You have to take Version: 6.7.9-9-Q16 and they have to be the 32-bit versions (even if you are on a 64-bit system). I found those versions of ImageMagick here.
STEP 1: Download and Install STATIC: ImageMagick-6.7.9-9-Q16-windows-static.exe
Set the installation path to 'C:\ImageMagick' - this is important, to avoid the common windows whitespace path bug, then just click through the rest of the installation
STEP 2: Download and Install DLL: ImageMagick-6.7.9-9-Q16-windows-dll.exe
During installation, check the checkbox to install the source headers.
Install RMagick Gem in Rails
Now go to your Rails Console (Git bash), cd to the root path of your Rails Application and enter the following command:
gem install rmagick --platform=ruby -- --with-opt-dir=C:/ImageMagick
The installation takes a while, when everything was successfull you should see:
Thats it. Don't forget to add gem 'RMagick' to your Gemfile.
If you still don't succeed, try to install:
MinGW Min GNU Windows Environment
http://www.mingw.org/
http://sourceforge.net/projects/mingw...
(make sure to install the development tools)
I am trying to install all dependencies via following command:
bundle install
It gave me following error:
An error occurred while installing libv8 <3.16.14.13>, and bundle cannot continue.
Make sure that 'gem install libv8 -v '3.16.14.13' ' succeeds before bundling.
Then from this link:
Error installing libv8: ERROR: Failed to build gem native extension
I found this solution:
gem install libv8 -v '3.16.14.13' -- --with-system-v8
It then installed the libv8
Then again I ran the command:
bundle install
Now its giving me following error:
An error occurred while installing therubyracer <0.12.2>, and bundler cannot continue.
Make sure that 'gem install therubyracer -v '0.12.2' ' succeeds before bundling.
I tried deleting therubyracer from gem file and then run the command but i am getting the same error.
Please guide me.
Thanx
I see that you are using Windows 7 , then prepare yourself:
Unfortunately, there's no know way of installing that gem on Windows:
Linked question: therubyracer not installing on Windows
This is one of many things that made me change to Linux.
EDIT
There is a workaround but its from 4 years ago so , I hope this will work:
https://github.com/eakmotion/therubyracer_for_windows
EDIT 2 - About middleman
Did you install the DevKit for RubyInstaller?.
Here you have the documentation of the gem with the installation steps:
https://github.com/middleman/middleman
EDIT 3
Check this one. There are others with the same issue (of course) and they managed to "solved" it using it:
https://github.com/jawwadzafar/middleman-boilerplate
I am going to install some gems in my rails application using bundle install on Debian testing(stretch). I get this error:
Installing bcrypt 3.1.10 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby2.1 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 /tmp/bundler20151208-29851-hg3bi3bcrypt-3.1.10/gems/bcrypt-3.1.10 for inspection.
Results logged to /tmp/bundler20151208-29851-hg3bi3bcrypt-3.1.10/extensions/x86_64-linux/2.1.0/bcrypt-3.1.10/gem_make.out
An error occurred while installing bcrypt (3.1.10), and Bundler cannot continue.
Make sure that `gem install bcrypt -v '3.1.10'` succeeds before bundling.
but I have installed bcrypt and bcrypt-ruby using gem install .
For gems with C extensions to compile, you'll need to install the ruby-dev package:
$ sudo apt-get install ruby-dev
When iam trying to install Ruby Rails on my centos server .When i enter Bundle install i got the error
An error occurred while installing pg (0.14.1), and Bundler cannot continue.
Make sure that gem install pg -v '0.14.1' succeeds before bundling.
When i try `gem install pg -v '0.14.1 got the below error
Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/pg-0.14.1 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/pg-0.14.1/ext/gem_make.out
Anybody know why i get this error? Help is highly appreciated.
This should help you --
$ sudo yum install postgresql-devel
Setting up Install Process
...
Complete!
$ sudo gem install pg
Building native extensions. This could take a while...
Successfully installed pg-0.14.1
1 gem installed
Installing ri documentation for pg-0.14.1...
Installing RDoc documentation for pg-0.14.1...