Tag: 安装

gem install无法从rubygems.org下载

当我打字 gem安装sass 我收到以下错误消息 C:> gem install compass ERROR:找不到有效的gem’罗盘’(> = 0),原因如下:无法从https://rubygems.org/下载数据 – SSL_connect retur ned = 1 errno = 0 state = SSLv3读取服务器证书B:证书validation失败( https://rubygems.org/latest_specs.4.8.gz )

如何用mkmf.log安装Nokogiri Ruby gem,说没有找到libiconv?

我正在安装Ruby Nokogiri gem并在下面找到错误。 如何诊断并解决它? # gem install nokogiri Building native extensions. This could take a while… ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. … /opt/ruby/1.9.3-p194/bin/ruby extconf.rb checking for libxml/parser.h… *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log […]

“gem install foundation”中的证书validation失败

安装nodejs,ruby和git plus bower后尝试安装Foundation。 我一直收到以下错误,我不知道如何解决它: 无法找到有效的gem“基础”(> = 0),原因如下:无法从https://rubygems.org/下载数据 – SSL_connect返回= 1 errno = 0状态= SSLv3读取服务器证书B:证书validation失败( https://api.rubygems.org/latest_specs.4.8.gz ) 有任何想法吗?

使用rvm安装gem

当尝试使用rvm安装gem时,我收到此错误 $ rvm gem install sproutcore ERROR: While executing gem … (Errno::EACCES) Permission denied – /home/tee/.gem/specs 但它在rvm网站上说你不应该使用sudo所以我不确定我的设置有什么问题 当我键入$ GEM_HOME时,它显示该目录指向rvm目录 $GEM_HOME bash: /home/tee/.rvm/gems/ruby-1.8.7-p302: is a directory 我有什么想法我做错了吗?

无法解决Ruby错误(缺少心理)

每当我在服务器上运行Ruby时,我都会收到以下错误: /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/yaml.rb:56:in `’: It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby. 我使用RVM将Ruby安装到我的VPS上。 我已经尝试按照Stack Overflow上的其他问题的指示安装包libyaml ,但无济于事。 我不确定我的VPS运行的是什么类型的系统,但它没有apt-get命令。 它确实有yum ……

如何在低内存系统上使用RVM编译ruby?

rvm install 1.9.3 导致make.log中的错误: … compiling ./enc/trans/emoji_sjis_docomo.c compiling ./enc/trans/emoji_sjis_kddi.c gcc: internal compiler error: Killed (program cc1) gcc: internal compiler error: Killed (program cc1) gcc: internal compiler error: Killed (program cc1) Please submit a full bug report, with preprocessed source if appropriate. … dmesg显示 [180031.341709] send sigkill to 3705 (cc1), adj 0, size 3394 在某些时候运行配置过程的free节目: total […]

如何从/ usr / local卸载Ruby?

一切都工作正常,直到我们决定将ruby从1.8.6升级到1.8.7,那就是当它完全崩溃的时候。 当我们从源代码编译Ruby 1.8.7时,它已安装到/ usr / local / bin中,而Ruby 1.8.6则保留在/ usr / bin中。 目前,我们已经卸载了ruby 1.8.6,并且我们删除了/ usr / local中的ruby 1.8.7文件。 当我们尝试“哪个ruby”它指向/ usr / local。 如果有人可以帮助我们做我们需要做的事情重新回到正轨,我们将非常感激。并且还知道我们如何从/ usr / local卸载ruby。 我们尝试了yum删除ruby,从/usr/bin.Thanks和干杯中删除ruby!

Ruby gem mysql2安装错误

我在Windows7中安装了Ruby版本ruby 1.9.2p0(2010-08-18)[i386-mingw32]。 和gemvesion 1.3.7 当我试图安装mysql gem时,它显示Failed to build gem native extension错误,为什么会这样? 我的mysql版本是5.1.36(WampServer) E:\RubyApps\test_app2>gem install mysql2 Building native extensions. This could take a while… ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. E:/Ruby192/bin/ruby.exe extconf.rb checking for rb_thread_blocking_region()… *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary […]