安装时出现以下错误:
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/json_web_token-0.3.2/lib/json_web_token.rb:36: warning: already initialized constant JWT
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jwt-1.5.6/lib/jwt/json.rb:4: warning: previous definition of JWT was here
rake aborted!
LoadError: Could not open library 'libcurl': The specified module could not be found.
.
Could not open library 'libcurl.dll': The specified module could not be found.
.
Could not open library 'libcurl.so.4': The specified module could not be found.
.
Could not open library 'libcurl.so.4.dll': The specified module could not be found.
D:/data/catarse/config/application.rb:8:in"
D:/data/catarse/Rakefile:4:in"
(See full trace by running task with …
Tried installing Typhoeus on a Windows 7 environment. Gem installs successfully but when trying to run a simple ruby script:: require 'typhoeus'
Typhoeus.get("www.google.com", verbose: true)
I get the following error:: D:/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.9.3-x86-mingw32/lib/ffi/library.rb:133:in `block in ffi_lib': Could not open l (LoadError)url': The specified module could not be found. . Could not open library 'libcurl.dll': The specified module could not be found. . Could not open library 'libcurl.so.4': The specified module could not be found.
I tried adding curl.exe and libcurl.dll that I …
我对这个错误感到头疼,因为类似的错误指的是从源代码编译libcurl的实例; 但是,我只是想在我的Ubuntu 12.04上运行一个以前的rails项目.
Exception Trace from Running Rails Application Server
/var/lib/gems/1.9.1/gems/ffi-1.1.1/lib/ffi/library.rb:121:in `block in ffi_lib': Could not open library 'libcurl': libcurl: cannot open shared object file: No such file or directory. (LoadError)
Could not open library 'libcurl.so': libcurl.so: cannot open shared object file: No such file or directory
from /var/lib/gems/1.9.1/gems/ffi-1.1.1/lib/ffi/library.rb:88:in `map'
from /var/lib/gems/1.9.1/gems/ffi-1.1.1/lib/ffi/library.rb:88:in `ffi_lib'
from /var/lib/gems/1.9.1/gems/typhoeus-0.4.2/lib/typhoeus/curl.rb:405:in `<module:Curl>'
from /var/lib/gems/1.9.1/gems/typhoeus-0.4.2/lib/typhoeus/curl.rb:6:in `<module:Typhoeus>'
from /var/lib/gems/1.9.1/gems/typhoeus-0.4.2/lib/typhoeus/curl.rb:5:in `<top (required)>'
from /var/lib/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
from /var/lib/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `block in require'
from /var/lib/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `block in load_dependency'
from /var/lib/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:640:in `new_constants_in'
from …Run Code Online (Sandbox Code Playgroud)