psd.rb icon indicating copy to clipboard operation
psd.rb copied to clipboard

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

Open yaochao1108 opened this issue 7 years ago • 4 comments

current directory: /usr/local/rvm/gems/ruby-2.1.0/gems/nokogiri-1.5.11/ext/nokogiri /usr/local/rvm/rubies/ruby-2.1.0/bin/ruby -r ./siteconf20190123-8177-ac2mfa.rb extconf.rb checking for libxml/parser.h... no

libxml2 is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.

*** 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=/usr/local/rvm/rubies/ruby-2.1.0/bin/ruby --with-zlib-dir --without-zlib-dir --with-zlib-include --without-zlib-include=${zlib-dir}/include --with-zlib-lib --without-zlib-lib=${zlib-dir}/lib --with-iconv-dir --without-iconv-dir --with-iconv-include --without-iconv-include=${iconv-dir}/include --with-iconv-lib --without-iconv-lib=${iconv-dir}/lib --with-xml2-dir --without-xml2-dir --with-xml2-include --without-xml2-include=${xml2-dir}/include --with-xml2-lib --without-xml2-lib=${xml2-dir}/lib --with-xslt-dir --without-xslt-dir --with-xslt-include --without-xslt-include=${xslt-dir}/include --with-xslt-lib --without-xslt-lib=${xslt-dir}/lib --with-libxslt-config --without-libxslt-config --with-pkg-config --without-pkg-config --with-libxml-2.0-config --without-libxml-2.0-config --with-libiconv-config --without-libiconv-config

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

/usr/local/rvm/gems/ruby-2.1.0/extensions/x86_64-linux/2.1.0/nokogiri-1.5.11/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /usr/local/rvm/gems/ruby-2.1.0/gems/nokogiri-1.5.11 for inspection. Results logged to /usr/local/rvm/gems/ruby-2.1.0/extensions/x86_64-linux/2.1.0/nokogiri-1.5.11/gem_make.out

gem imstall psd can't install psd

yaochao1108 avatar Jan 23 '19 09:01 yaochao1108

I had the same issue on Ubuntu 16.04 and solved it by running:

sudo apt-get install libxslt-dev libxml2-dev
gem install psd

k-p-jones avatar May 15 '19 15:05 k-p-jones

Currently having this issue trying to install on windows - if anyone has a suggestion on how to fix please let me know :). Seems the psd gem should just be updated to use latest nokogiri as this old version doesn't work with x64 ruby

WearyWanderer avatar Jul 31 '19 15:07 WearyWanderer

@WearyWanderer the nokogiri requirement comes from the xmp gem, which has it locked to ~> 1.5.0. Doesn't look like xmp has been updated in awhile. Moving to a more up-to-date version of nokogiri would require dropping the xmp gem dependency, which I think should be possible since it's mostly just parsing some XML. Will have to find some time to work on this though unless someone else wants to submit a PR.

meltingice avatar Jul 31 '19 15:07 meltingice

Someone hacked my personal information without my permission someone hack my personal on my all personal data on my all Gmail all iCloud my Samsung my Google Drive my anythingMy name of the domain any mama you are a number of my IP address on my server address my host address for my anything hack my personal service Canada account my tax regarding an all information my banking information please help me protect me this happening March 28,2020 to go by the time I can face on that I have Panaway every day please help me protect me me protect me

Manjitsing avatar Sep 20 '21 14:09 Manjitsing