我正在尝试在我的Debian机器上安装curb gem,但是我很难用原生扩展来构建gem.我正在使用RVM.
只是我正在使用的一系列事项:
我被告知我必须安装以下软件包并且我已经这样做了:
sudo apt-get install libcurl3 libcurl3-gnutls libcurl4-openssl-dev
Building native extensions. This could take a while...
ERROR: Error installing curb:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
Run Code Online (Sandbox Code Playgroud)
sudo apt-get install libcurl3 libcurl3-gnutls libcurl4-openssl-dev
checking for curl-config... yes
checking for curlinfo_redirect_time... * 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. …
Run Code Online (Sandbox Code Playgroud) 我正在尝试相当于这件Ruby:
def color=(color)
@color = color
any_bar = UDPSocket.new
any_bar.connect HOSTNAME, @port
any_bar.send @color, 0
any_bar.close
end
Run Code Online (Sandbox Code Playgroud)
我看不到任何其他的方式来初始化UdpSocket从锈病API文档没有bind().