vmware-archive / vcloud-rest

Unofficial ruby bindings for VMware vCloud Director®
Apache License 2.0
29 stars 37 forks source link

Can't install via gem #4

Closed alexbilbie closed 10 years ago

alexbilbie commented 11 years ago

I can't install via sudo gem install vcloud-rest.

I'm running Ruby (on OSX via RVM) ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-darwin12.2.0] and Gem 1.8.24.

This is the output I get:

sudo gem install vcloud-rest                                                                  alexbilbie@localhost
Building native extensions.  This could take a while...
ERROR:  Error installing vcloud-rest:
    ERROR: Failed to build gem native extension.

        /Users/alexbilbie/.rvm/rubies/ruby-1.9.3-p362/bin/ruby extconf.rb
checking for libxml/parser.h... *** 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=/Users/alexbilbie/.rvm/rubies/ruby-1.9.3-p362/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
/Users/alexbilbie/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
    from /Users/alexbilbie/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:506:in `try_cpp'
    from /Users/alexbilbie/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:970:in `block in find_header'
    from /Users/alexbilbie/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
    from /Users/alexbilbie/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
    from /Users/alexbilbie/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:254:in `open'
    from /Users/alexbilbie/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
    from /Users/alexbilbie/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:254:in `open'
    from /Users/alexbilbie/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
    from /Users/alexbilbie/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
    from /Users/alexbilbie/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:969:in `find_header'
    from extconf.rb:116:in `<main>'

Gem files will remain installed in /Users/alexbilbie/.rvm/gems/ruby-1.9.3-p362/gems/nokogiri-1.5.10 for inspection.
Results logged to /Users/alexbilbie/.rvm/gems/ruby-1.9.3-p362/gems/nokogiri-1.5.10/ext/nokogiri/gem_make.out
astratto commented 11 years ago

Hi, please take a look at the line "You have to install development tools first."...

Do you have Xcode installed? Are you able to compile other gems (i.e., nokogiri)?

alexbilbie commented 11 years ago

I have all the development tools installed and yes I'm able to compile and install other gems.

Emailing from my iPhone like a BOSS

On 14 Jun 2013, at 09:13, Stefano Tortarolo notifications@github.com wrote:

Hi, please take a look at the line "You have to install development tools first."...

Do you have Xcode installed? Are you able to compile other gems (i.e., nokogiri)?

— Reply to this email directly or view it on GitHub.

astratto commented 11 years ago

Uhm... since you are using RVM, could you try to install it without sudo?

astratto commented 10 years ago

I close this issue, feel free to re-open it if you need more information.