samedi 25 juin 2016

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.(Windows)

Just cloned a project from github and while doing bundle install getting above for two or three gems. Not able to get proper solution. Tried some suggested solution but they are not working..

C:UsersMayuresh>d:

D:>cd MyWork

D:MyWork>cd ruby

D:MyWorkruby>git clone https://github.com/ging/vish

Cloning into 'vish'...
remote: Counting objects: 91613, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 91613 (delta 0), reused 0 (delta 0), pack-reused 91611
Receiving objects: 100% (91613/91613), 251.20 MiB | 87.00 KiB/s, done.
Resolving deltas: 100% (59935/59935), done.
Checking connectivity... done.
Checking out files: 100% (2689/2689), done.

D:MyWorkruby>dir

Volume in drive D is Eclectic
 Volume Serial Number is 64EA-C566

 Directory of D:MyWorkruby

06/25/2016  09:07 PM    <DIR>          .
06/25/2016  09:07 PM    <DIR>          ..
06/19/2016  11:44 AM    <DIR>          ELANCO_ATP_ATOPICA
06/17/2016  11:24 PM                90 hello_sinatra.rb
06/17/2016  11:22 PM                90 hello_sinatra.rb~
06/13/2016  12:48 AM               348 player_spec.rb
06/25/2016  04:37 PM    <DIR>          ruby-getting-started
06/12/2016  04:06 PM               325 scrabble.rb
06/12/2016  04:04 PM               289 scrabble.rb~
06/08/2016  01:58 AM               407 treasure_trove.rb
06/25/2016  09:41 PM    <DIR>          vish
               6 File(s)          1,549 bytes
               5 Dir(s)   1,427,271,680 bytes free

D:MyWorkruby>cd vish

D:MyWorkrubyvish>rails s

git://github.com/agordillo/scorm.git (at master@b3d47f9) is not yet checked out.
 Run `bundle install` first.

D:MyWorkrubyvish>bundle install

Fetching git://github.com/agordillo/scorm.git
Fetching git://github.com/ging/social_stream.git
Checking out files: 100% (1466/1466), done.
Fetching git://github.com/ebarra/paperclip-ffmpeg.git
Fetching git://github.com/ebarra/oai_repository.git
Fetching git://github.com/pahanix/delegates_attributes_to.git
Fetching git://github.com/galetahub/simple-captcha.git
Fetching git://github.com/randym/acts_as_xlsx.git
Fetching git://github.com/mojombo/god.git
Fetching git://github.com/rails/rails.git
Checking out files: 100% (2433/2433), done.
Fetching gem metadata from http://rubygems.org/..........
Fetching version metadata from http://rubygems.org/...
Fetching dependency metadata from http://rubygems.org/..
Resolving dependencies..................
Installing rake 10.5.0
Installing Ascii85 1.0.2
Using i18n 0.7.0
Using multi_json 1.11.2
Installing builder 3.0.4
Using erubis 2.7.0
Installing journey 1.0.4
Installing rack 1.4.7
Installing hike 1.2.3
Using tilt 1.4.1
Installing mime-types 1.25.1
Installing polyglot 0.3.5
Installing arel 3.0.3
Installing tzinfo 0.3.46
Using bundler 1.11.2
Using json 1.8.3
Using thor 0.19.1
Installing htmlentities 4.3.4
Installing nokogiri 1.5.11
Installing rubyzip 1.0.0
Installing afm 0.2.2
Installing rmagick 2.13.2 with native extensions

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

    C:/Ruby22/bin/ruby.exe -r ./siteconf20160625-1860-1ntnc6k.rb extconf.rb
checking for Ruby version >= 1.8.5... yes
Invalid drive specification.
Unable to get ImageMagick version
*** 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:/Ruby22/bin/$(RUBY_BASE_NAME)

extconf failed, exit code 1

Gem files will remain installed in C:/Ruby22/lib/ruby/gems/2.2.0/gems/rmagick-2.
13.2 for inspection.
Results logged to C:/Ruby22/lib/ruby/gems/2.2.0/extensions/x86-mingw32/2.2.0/rma
gick-2.13.2/gem_make.out
Installing bcrypt 3.1.11
Installing sass 3.4.21
Installing cancan 1.6.10
Installing highline 1.7.8
Installing jruby-pageant 1.1.1
Installing ffi 1.9.10
Installing coderay 1.1.1
Using coffee-script-source 1.10.0
Using execjs 2.6.0
Installing deep_merge 1.0.1
Using delegates_attributes_to 0.0.1 from git://github.com/pahanix/delegates_attr
ibutes_to.git (at 69704cb@69704cb)
Installing descriptive_statistics 2.4.0
Installing detect_language 1.0.5
Using orm_adapter 0.5.0
Installing diff-lcs 1.1.3
Installing multipart-post 2.0.0
Installing forgery 0.6.0
Installing hashie 2.1.2
Using god 0.13.5 from git://github.com/mojombo/god.git (at a0602dd@a0602dd)
Installing hashery 2.1.1
Installing jwt 1.4.1
Installing kgio 2.10.0 with native extensions

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

    C:/Ruby22/bin/ruby.exe -r ./siteconf20160625-1860-1i5gmei.rb extconf.rb
checking for CLOCK_MONOTONIC in time.h... yes
checking for clockid_t in time.h... yes
checking for clock_gettime() in -lrt... no
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for poll() in poll.h... no
checking for getaddrinfo() in sys/types.h,sys/socket.h,netdb.h... no
getaddrinfo required
*** 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:/Ruby22/bin/$(RUBY_BASE_NAME)
        --with-rtlib
        --without-rtlib
        --with-nsllib
        --without-nsllib
        --with-socketlib
        --without-socketlib

extconf failed, exit code 1

Gem files will remain installed in C:/Ruby22/lib/ruby/gems/2.2.0/gems/kgio-2.10.
0 for inspection.
Results logged to C:/Ruby22/lib/ruby/gems/2.2.0/extensions/x86-mingw32/2.2.0/kgi
o-2.10.0/gem_make.out
Installing ruby-imagespec 0.2.0
Installing method_source 0.8.2
Installing modernizr-rails 2.7.1
Installing multi_xml 0.5.5
Installing mysql2 0.3.16 with native extensions

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

    C:/Ruby22/bin/ruby.exe -r ./siteconf20160625-1860-1iw3agb.rb extconf.rb
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region()... no
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** 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:/Ruby22/bin/$(RUBY_BASE_NAME)
        --with-mysql-dir
        --without-mysql-dir
        --with-mysql-include
        --without-mysql-include=${mysql-dir}/include
        --with-mysql-lib
        --without-mysql-lib=${mysql-dir}/lib
        --with-mysql-config
        --without-mysql-config
        --with-mysql-dir
        --without-mysql-dir
        --with-mysql-include
        --without-mysql-include=${mysql-dir}/include
        --with-mysql-lib
        --without-mysql-lib=${mysql-dir}/lib
        --with-mysqlclientlib
        --without-mysqlclientlib
        --with-mlib
        --without-mlib
        --with-mysqlclientlib
        --without-mysqlclientlib
        --with-zlib
        --without-zlib
        --with-mysqlclientlib
        --without-mysqlclientlib
        --with-socketlib
        --without-socketlib
        --with-mysqlclientlib
        --without-mysqlclientlib
        --with-nsllib
        --without-nsllib
        --with-mysqlclientlib
        --without-mysqlclientlib
        --with-mygcclib
        --without-mygcclib
        --with-mysqlclientlib
        --without-mysqlclientlib

extconf failed, exit code 1

Gem files will remain installed in C:/Ruby22/lib/ruby/gems/2.2.0/gems/mysql2-0.3
.16 for inspection.
Results logged to C:/Ruby22/lib/ruby/gems/2.2.0/extensions/x86-mingw32/2.2.0/mys
ql2-0.3.16/gem_make.out
Installing oauth 0.5.1
Installing ruby-rc4 0.1.5
Installing ttfunk 1.4.0
Using pg 0.17.1
Installing power_assert 0.2.7
Installing slop 3.6.0
Installing win32console 1.3.2
Installing raindrops 0.16.0 with native extensions

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

    C:/Ruby22/bin/ruby.exe -r ./siteconf20160625-1860-nrxioh.rb extconf.rb
checking for mmap() in sys/mman.h... no
mmap() not found
*** 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:/Ruby22/bin/$(RUBY_BASE_NAME)
        --with-atomic_ops-dir
        --without-atomic_ops-dir
        --with-atomic_ops-include
        --without-atomic_ops-include=${atomic_ops-dir}/include
        --with-atomic_ops-lib
        --without-atomic_ops-lib=${atomic_ops-dir}/lib

extconf failed, exit code 1

Gem files will remain installed in C:/Ruby22/lib/ruby/gems/2.2.0/gems/raindrops-
0.16.0 for inspection.
Results logged to C:/Ruby22/lib/ruby/gems/2.2.0/extensions/x86-mingw32/2.2.0/rai
ndrops-0.16.0/gem_make.out
Installing redis 3.0.7
Installing riddle 1.5.12
Installing rspec-core 2.9.0
Installing rspec-mocks 2.9.0
Installing websocket 1.2.2
Using simple_captcha 0.1.6 from git://github.com/galetahub/simple-captcha.git (a
t 2602bf1@2602bf1)
Installing stringex 1.5.1
Installing sqlite3 1.3.9
Installing faker 1.4.3
Installing i18n-js 2.1.2
Using activesupport 3.2.22.2 from git://github.com/rails/rails.git (at 3-2-stabl
e@54ebd0a)
Installing sitemap_generator 5.1.0
Installing rack-cache 1.6.1
Using rack-test 0.6.3
Installing rack-ssl 1.3.4
Installing warden 1.2.6
Installing rack-protection 1.5.3
Installing vegas 0.1.11
Installing sprockets 2.2.3
Installing rest-client 1.6.7
Installing treetop 1.4.15
Installing rdoc 3.12.2
Installing xpath 2.0.0
Installing sanitize 2.1.0
Installing axlsx 2.0.1
Using scorm 1.0.5 from git://github.com/agordillo/scorm.git (at master@b3d47f9)
An error occurred while installing rmagick (2.13.2), and Bundler cannot
continue.
Make sure that `gem install rmagick -v '2.13.2'` succeeds before bundling.

D:MyWorkrubyvish>

1 commentaire:

  1. Really nice blog post.provided a helpful information.I hope that you will post more updates like this Ruby on Rails Online Training Bangalore

    RépondreSupprimer