我正在尝试使用安装Rails
sudo gem install rails
Run Code Online (Sandbox Code Playgroud)
在新版本的Ubuntu 16.04上.Ruby 2.3.1p112已经安装.在安装Rails的过程中,一旦获取Nokogiri完成,我会收到以下错误:
Fetching: nokogiri-1.8.0.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.3.0/gems/nokogiri-1.8.0/ext/nokogiri
/usr/bin/ruby2.3 -r ./siteconf20170608-1635-1vnwqbn.rb extconf.rb
checking if the C compiler accepts ... *** 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
--without-opt-dir …Run Code Online (Sandbox Code Playgroud) 我看到这用于清漆vcl if语句"〜"
if (req.url ~ "phpMyAdmin") {
return (pass);
}
Run Code Online (Sandbox Code Playgroud)
我知道它有点像==时间in_array()
if ( req.http.User-Agent ~ "(Android|iPhone|iPad|BlackBerry|SAMSUNG)")
return(pass);
}
Run Code Online (Sandbox Code Playgroud)
有人可以解释它实际意味着什么.它也是一个默认的php运算符吗?它和使用之间有什么区别==