Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install on windows with Ruby-2.2.4 & 2.3.3 #74

Closed
srikanthgurram opened this issue Dec 21, 2016 · 1 comment
Closed

Failed to install on windows with Ruby-2.2.4 & 2.3.3 #74

srikanthgurram opened this issue Dec 21, 2016 · 1 comment

Comments

@srikanthgurram
Copy link

Hi,

I have been trying this for 2 days, but was never successful installing on windows 7

I tried with Ruby-2.2.4 and 2.3.3 as well. However, I do not see any issue with Ruby-1.9.3 & taglib-ruby-0.6.0 on the same machine.

OS: Window-7-x64
Ruby:- rubyinstaller-2.3.3.exe
Ruby- DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe

c:\certification_test_suite>gem install taglib-ruby --platform ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing taglib-ruby:
        ERROR: Failed to build gem native extension.

    current directory: C:/Ruby23/lib/ruby/gems/2.3.0/gems/taglib-ruby-0.7.1/ext/taglib_base
C:/Ruby23/bin/ruby.exe -r ./siteconf20161221-3256-19l00zu.rb extconf.rb
checking for main() in -lstdc++... yes
checking for main() in -ltag... no
You must have taglib installed in order to use taglib-ruby.

Debian/Ubuntu: sudo apt-get install libtag1-dev
Fedora/RHEL: sudo yum install taglib-devel
Brew: brew install taglib
MacPorts: sudo port install taglib

*** 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
        --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:/Ruby23/bin/$(RUBY_BASE_NAME)
        --with-tag-dir
        --without-tag-dir
        --with-tag-include
        --without-tag-include=${tag-dir}/include
        --with-tag-lib
        --without-tag-lib=${tag-dir}/lib
        --with-stdc++lib
        --without-stdc++lib
        --with-taglib
        --without-taglib

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  C:/Ruby23/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/taglib-ruby-0.7.1/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in C:/Ruby23/lib/ruby/gems/2.3.0/gems/taglib-ruby-0.7.1 for inspection.
Results logged to C:/Ruby23/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/taglib-ruby-0.7.1/gem_make.out

Attached the logs and screenshots

taglib

gem_make.out.txt
mkmf.log.txt

@robinst
Copy link
Owner

robinst commented Jun 13, 2017

Hey. Sorry about that, I don't run Windows anymore and I'm not going to investigate this. Windows is not really friendly to Ruby extensions.

The output shows that it can't find taglib:

checking for main() in -ltag... no

So that's the problem. Not sure how to correctly install it either. I'm gonna close this in favor of #62.

@robinst robinst closed this as completed Jun 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants