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

Issue with Gem Installation #13

Closed
KagemniKarimu opened this issue Jan 27, 2022 · 7 comments
Closed

Issue with Gem Installation #13

KagemniKarimu opened this issue Jan 27, 2022 · 7 comments

Comments

@KagemniKarimu
Copy link

KagemniKarimu commented Jan 27, 2022

Receive the following error...

ERROR: Error installing asciiart:
ERROR: Failed to build gem native extension.

*** 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.

When I check the mkfile log I get the following:

assert_minimum_ruby_version!: checking for Ruby version >= 2.3.0... -------------------- yes


find_executable: checking for magick... -------------------- no


find_executable: checking for identify... -------------------- no


@KagemniKarimu
Copy link
Author

I installed ImageMagick with C libraries but retain the same error.

@nodanaonlyzuul
Copy link
Owner

Hi @KagemniKarimu

Thanks for the bug report.
Can you provide....

  1. asciiart version.
  2. Ruby version.
  3. Imagemagick version (convert -version).
  4. OS & OS Version

@KagemniKarimu
Copy link
Author

KagemniKarimu commented Jan 31, 2022

Ruby 3.1.0
asciiart Version 0.2.0
Imagemagick 7.1.0 Q16 HDRI-x64
RubyMine 2021.2.3
Windows 10 Home 21H1 19043.1466

Update FWIW I was able to get (aspects) of it working, so long as I didn't use bundler/make a Gemfile

@nodanaonlyzuul
Copy link
Owner

Hi @KagemniKarimu

Thanks - FWIW I was able to re-create not being able to install using Ruby 3.1.0.
My specs were:

  • Mac OS 11.6 (big sur).
  • Ruby 3.1.0
  • asciiart 0.2.0
  • ImageMagick 7.1.0-22 Q16-HDRI x86_64 2022-01-29

My output is:

ERROR:  Error installing asciiart:
	ERROR: Failed to build gem native extension.

    current directory: ~.rvm/gems/ruby-3.1.0/gems/rmagick-4.1.2/ext/RMagick
~.rvm/rubies/ruby-3.1.0/bin/ruby -I /Users/stephenschor/.rvm/rubies/ruby-3.1.0/lib/ruby/3.1.0 -r ./siteconf20220202-97075-txmvnb.rb extconf.rb
checking for brew... yes
checking for Ruby version >= 2.3.0... yes
checking for pkg-config... yes
checking for outdated ImageMagick version (<= 6.7.7)... no
checking for gcc... yes
checking for __GNUC__... *** 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.

However

I WAS able to install the gem in Ruby 3.0.0!
@KagemniKarimu - can you do me a favor and try to install this in Ruby 3.0?
I don't have a Windows machine - and I suspect this is a matter of me needing to bump my rmagick dependency.

Thanks!

nodanaonlyzuul pushed a commit that referenced this issue Feb 4, 2022
This fixes build problems that started in 3.1.0.
As reported in #13
@nodanaonlyzuul
Copy link
Owner

Hi @KagemniKarimu

I have a branch that fixes installation problems in ruby 3.1.0 for me. (while not breaking 3.0 & 2.7).
If you get a moment can you try the following in Ruby 3.1.0?

  1. Pull & checkout the update/fix-for-ruby3-1 branch.
  2. (Using ruby 3.1.0) bundle install in the directory.
  3. gem build asciiart.gemspec
  4. gem install asciiart-0.3.0.gem

This SHOULD build for you. It built for me ....but like I said, I don't have a Windows machine to test on.

@KagemniKarimu
Copy link
Author

I tried the new branch and it seemed to be working! Thank you!!!

@nodanaonlyzuul
Copy link
Owner

Hey Great!

I appreciate you taking the time to test.
I'm going to close this issue, and merge & deploy the new version later.

Thanks for the report.

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