"(LoadError) 193: %1 is not a valid Win32 application." with Ruby on Windows 7 X64 -


i having problem using 'typhoeus gem'. have installed (it shows installed when command "gem list"). below code running:

def test    response = typhoeus.get("http://google.com")    puts response.code  end    puts test 

below error code getting when try , run code:

 c:/ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': 193: %1 not valid win32 application.   - c:/ruby21-x64/lib/ruby/2.1.0/x64-mingw32/openssl.so (loaderror)     c:/ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'     c:/ruby21-x64/lib/ruby/2.1.0/openssl.rb:17:in `<top (required)>'     c:/ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'     c:/ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'     c:/ruby21-x64/lib/ruby/2.1.0/net/https.rb:22:in `<top (required)>'     c:/ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'     c:/ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'     c:/ruby21-x64/lib/ruby/gems/2.1.0/gems/oauth-0.4.7/lib/oauth/consumer.rb:2:in `<top (required)>'     c:/ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'     c:/ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'     c:/ruby21-x64/lib/ruby/gems/2.1.0/gems/oauth-0.4.7/lib/oauth/client/helper.rb:2:in `<top (required)>'     c:/ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'     c:/ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'     c:/ruby21-x64/lib/ruby/gems/2.1.0/gems/oauth-0.4.7/lib/oauth.rb:10:in `<top (required)>'     c:/ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'     c:/ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'     c:/ruby21-x64/lib/ruby/gems/2.1.0/gems/etsy-0.3.0/lib/etsy.rb:5:in `<top (required)>'     c:/ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `require'     c:/ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'     c:/ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require'     ./sandbox_get.rb:10:in `<main>' 

i have tried numerous solutions found on other websites none of them seem working me. running windows 7 x64. have read there has been issue problem on os config have failed find work around.

any appreciated lost honest. :)

further details

when try "gem install openssl"

i error message

  error:  loading command: install (loaderror)     193: %1 not valid win32 application.   - c:/ruby21-x64/lib/ruby/2.1.0/x64-mingw32/openssl.so error:  while executing gem ... (nomethoderror) undefined method `invoke_with_build_args' nil:nilclass 

i still complete beginner , making simple mistake lost @ moment.

----------------------update-----------------------------------

after running "gem commands" error message

   error:  loading command: build (loaderror) 193: %1 not valid win32 application.   - c:/ruby21-x64/lib/ruby/2.1.0/x64-mingw32/openssl.so    error:  loading command: cert (loaderror) 193: %1 not valid win32 application.   - c:/ruby21-x64/lib/ruby/2.1.0/x64-mingw32/openssl.so    error:  loading command: check (loaderror)     193: %1 not valid win32 application.   - c:/ruby21-x64/lib/ruby/2.1.0/x64-mingw32/openssl.so    error:  loading command: generate_index (loaderror)     193: %1 not valid win32 application.   - c:/ruby21-x64/lib/ruby/2.1.0/x64-mingw32/openssl.so    error:  loading command: install (loaderror)     193: %1 not valid win32 application.   - c:/ruby21-x64/lib/ruby/2.1.0/x64-mingw32/openssl.so    error:  loading command: pristine (loaderror)     193: %1 not valid win32 application.   - c:/ruby21-x64/lib/ruby/2.1.0/x64-mingw32/openssl.so    error:  loading command: push (loaderror)     193: %1 not valid win32 application.   - c:/ruby21-x64/lib/ruby/2.1.0/x64-mingw32/openssl.so    error:  loading command: server (loaderror)     193: %1 not valid win32 application.   - c:/ruby21-x64/lib/ruby/2.1.0/x64-mingw32/digest/md5.so    error:  loading command: specification (loaderror)     193: %1 not valid win32 application.   - c:/ruby21-x64/lib/ruby/2.1.0/x64-mingw32/openssl.so    error:  loading command: unpack (loaderror)     193: %1 not valid win32 application.   - c:/ruby21-x64/lib/ruby/2.1.0/x64-mingw32/openssl.so    error:  loading command: update (loaderror)     193: %1 not valid win32 application.   - c:/ruby21-x64/lib/ruby/2.1.0/x64-mingw32/openssl.so    gem commands are:  build             [no command found build] cert              [no command found cert] check             [no command found check] cleanup           clean old versions of installed gems contents          display contents of installed gems dependency        show dependencies of installed gem environment       display information rubygems environment fetch             download gem , place in current directory generate_index    [no command found generate_index]              provide on 'gem' command install           [no command found install] list              display local gems name starts string lock              generate lockdown list of gems mirror            mirror gem files (requires rubygems-mirror) outdated          display gems need updates owner             manage gem owners of gem on push server pristine          [no command found pristine] push              [no command found push] query             query gem information in local or remote repositories rdoc              generates rdoc pre-installed gems search            display remote gems name contains string server            [no command found server] sources           manage sources , cache file rubygems uses search                   gems specification     [no command found specification] stale             list gems along access times uninstall         uninstall gems local repository unpack            [no command found unpack] update            [no command found update]             find location of library file can require yank              remove pushed gem index   on particular command, use 'gem command'. 

---------------------------update--------------------------------

i think might have isolated issue down devkit , curb gem

when run "gem install curb"

error:  error installing curb:     'curb' native gem requires installed build tools.   please update path include build tools or download devkit  'http://rubyinstaller.org/downloads' , follow instructions  @ 'http://github.com/oneclick/rubyinstaller/wiki/development-kit' 

going have @ devkit , see if problem. :)


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -