openaustralia / morph

Take the hassle out of web scraping
https://morph.io
GNU Affero General Public License v3.0
461 stars 74 forks source link

Error installing morph-cli gem #792

Open dpschramm opened 9 years ago

dpschramm commented 9 years ago

Command line output:

schramm-macbookpro:Documents schramm$ sudo gem install morph-cli
Password:
Fetching: thor-0.19.1.gem (100%)
Successfully installed thor-0.19.1
Fetching: unf_ext-0.0.7.1.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing morph-cli:
    ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/unf_ext-0.0.7.1 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/unf_ext-0.0.7.1/ext/unf_ext/gem_make.out

Results from /Library/Ruby/Gems/2.0.0/gems/unf_ext-0.0.7.1/ext/unf_ext/gem_make.out

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h
kaydensigh commented 9 years ago

Installing the headers solved the above problem:

sudo apt-get install ruby-dev

But running morph gave this output:

Uploading and running...
/usr/lib/ruby/2.1.0/openssl/buffering.rb:326:in `syswrite': Connection reset by peer (Errno::ECONNRESET)
    from /usr/lib/ruby/2.1.0/openssl/buffering.rb:326:in `do_write'
    from /usr/lib/ruby/2.1.0/openssl/buffering.rb:344:in `write'
    from /usr/lib/ruby/2.1.0/net/http/generic_request.rb:202:in `copy_stream'
    from /usr/lib/ruby/2.1.0/net/http/generic_request.rb:202:in `send_request_with_body_stream'
    from /usr/lib/ruby/2.1.0/net/http/generic_request.rb:132:in `exec'
    from /usr/lib/ruby/2.1.0/net/http.rb:1406:in `block in transport_request'
    from /usr/lib/ruby/2.1.0/net/http.rb:1405:in `catch'
    from /usr/lib/ruby/2.1.0/net/http.rb:1405:in `transport_request'
    from /usr/lib/ruby/2.1.0/net/http.rb:1378:in `request'
    from /var/lib/gems/2.1.0/gems/rest-client-2.0.0.rc1/lib/restclient/request.rb:326:in `net_http_do_request'
    from /var/lib/gems/2.1.0/gems/rest-client-2.0.0.rc1/lib/restclient/request.rb:498:in `block in transmit'
    from /usr/lib/ruby/2.1.0/net/http.rb:853:in `start'
    from /var/lib/gems/2.1.0/gems/rest-client-2.0.0.rc1/lib/restclient/request.rb:494:in `transmit'
    from /var/lib/gems/2.1.0/gems/rest-client-2.0.0.rc1/lib/restclient/request.rb:202:in `execute'
    from /var/lib/gems/2.1.0/gems/rest-client-2.0.0.rc1/lib/restclient/request.rb:52:in `execute'
    from /var/lib/gems/2.1.0/gems/morph-cli-0.2.2/lib/morph-cli.rb:26:in `execute'
    from /var/lib/gems/2.1.0/gems/morph-cli-0.2.2/bin/morph:32:in `execute'
    from /var/lib/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /var/lib/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /var/lib/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
    from /var/lib/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
    from /var/lib/gems/2.1.0/gems/morph-cli-0.2.2/bin/morph:63:in `<top (required)>'
    from /usr/local/bin/morph:23:in `load'
    from /usr/local/bin/morph:23:in `<main>'