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

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

Open
yaochao1108 opened this issue Jan 23, 2019 · 4 comments

Comments

@yaochao1108
Copy link

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

@k-p-jones
Copy link

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

@WearyWanderer
Copy link

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

@meltingice
Copy link
Member

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

@Manjitsing
Copy link

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

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

5 participants