gem

Error while building native extensions for capybara-webkit

流过昼夜 提交于 2020-01-11 05:43:13
问题 I'm trying to install the webkit driver for capybara on Windows, and I'm getting the following error: $ gem install capybara-webkit-0.12.1.gem Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing capybara-webkit-0.12.1.gem: ERROR: Failed to build gem native extension. c:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb Gem files will remain installed in c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/capybara

Error sudo: gem: command not found

筅森魡賤 提交于 2020-01-11 04:33:07
问题 I'm trying to install rubyrep on CentOS, and when executing sudo gem install rubyrep I get the error sudo: gem: command not found . Sudo and gem are both installed and working, just not when combined. My setting: [rubyrep]# which sudo /usr/bin/sudo [rubyrep]# which gem /usr/local/rvm/rubies/ruby-2.1.2/bin/gem [rubyrep]# which ruby /usr/local/rvm/rubies/ruby-2.1.2/bin/ruby [rubyrep]# $PATH -bash: /usr/local/rvm/gems/ruby-2.1.2/bin:/usr/local/rvm/gems/ruby-2.1.2@global/bin:/usr/local/rvm/rubies

Writing Ruby Console Output to Text File

本小妞迷上赌 提交于 2020-01-11 04:01:06
问题 I'm trying to run a Ruby application, which outputs information to the console. I'd like to make this output get saved to a text/log file. Is this even possible? There must be a flag for ruby to do this right? 回答1: Use shell redirections: ruby script.rb > out.txt rails server > out.txt On another note, you may also redirect $stdout, $stderr: $stdout = File.new('/path/to/out.txt', 'w') http://eddymulyono.livejournal.com/65791.html 来源: https://stackoverflow.com/questions/8720150/writing-ruby

Gem install hangs indefinitely

风流意气都作罢 提交于 2020-01-10 20:32:09
问题 Background: I'm a designer that works well with HTML, CSS, and JS. But when it comes to setting up my environment is where I fall short. I recently purchased a home computer. I want to set up Middleman to use in a project. I already installed rvm and all its requirements. I am on ruby-2.0.0-p0, which from what I understand is the latest stable release. When I attempt to install Middleman, or any other gem for that matter, nothing happens. The cursor just moves to the next line. Some guidance,

pg_config, ruby pg, postgresql 9.0 problem after upgrade, centos 5

不打扰是莪最后的温柔 提交于 2020-01-10 19:28:18
问题 After upgrade postgresql 8.1 to 9.0 ive noticed issues with libraries dependency. Postgresql works fine (connection, queries). yum list postgresql* Installed Packages postgresql.i386 9.0.0-1PGDG.el5 installed postgresql-debuginfo.i386 9.0.0-1PGDG.el5 installed postgresql-devel.i386 9.0.0-1PGDG.el5 installed postgresql-libs.i386 9.0.0-1PGDG.el5 installed postgresql-odbcng.i386 0.90.101-2.el5 installed postgresql-plruby.i386 0.5.1-5.el5 installed postgresql-server.i386 9.0.0-1PGDG.el5 install

rake db:migrate is being aborted due to rake version difference [duplicate]

不想你离开。 提交于 2020-01-10 19:26:46
问题 This question already has answers here : You have already activated X, but your Gemfile requires Y (6 answers) Closed 5 years ago . I am getting the error rake db:migrate --trace rake aborted! You have already activated rake 10.1.1, but your Gemfile requires rake 10.1.0. Using bundle exec may solve this. /Users/iang/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:33:in `block in setup' /Users/iang/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler

Mac OS X 安装Ruby

末鹿安然 提交于 2020-01-10 11:07:39
Mac OS X 安装Ruby 安装CocoaPods第一步 起因:重装系统后需要重新安装CocoaPods网上搜了下发现很多都过时了,已经不能用了。而且taobao Gems源已经停止服务,现在有ruby-china提供服务 PS:"$"开头表示需要在终端下执行 1.安装RVM $ curl -L https://get.rvm.io | bash -s stable 期间可能需要输入密码(我安装时没有提示,密码就是开机密码输入时密码不会显示直接输入完成就可以),等待一段时间将安装好(大概五六分钟)。 2.载入RVM环境 若打开新终端窗口则不用执行 $ source ~/.rvm/scripts/rvm 3.检查RVM是否安装好 $ rvm -v 4.安装Ruby ##### 1>列出已知的ruby版本 $ rvm list known 2>选择2.0.0版本进行安装(其他版本也可以) 等待下载(途中需要按回车确定安装路径、还要输入密码)、编译。完成之后Ruby、Ruby Gems就安装好了 $ rvm install 2.0.0 3>查询已安装的ruby $ rvm list 4>卸载已安装的版本(若已经安装过ruby) $ rvm remove [版本号] 4.设置Ruby版本 $ rvm 2.0.0 —default 检查是否安装好了 $ rvm -v $ gem -v 5

how do I install ruby-debug in ruby 1.9.3 / Rails 3.2.1 [duplicate]

杀马特。学长 韩版系。学妹 提交于 2020-01-09 13:05:23
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Rails 3.1 and Ruby 1.9.3p125: ruby-debug19 still crashes with “Symbol not found: _ruby_threadptr_data_type” I'm done with printing to the console -- I want to move up to the 20th century and start using a debugger!! But how do I install ruby-debug? The native compilation of ruby-debug.c fails when I try to install the ruby-debug19 gem. I've looked over other SO postings and haven't found the answer yet... I am

ERROR: While executing gem … (Zlib::GzipFile::Error) not in gzip format

倾然丶 夕夏残阳落幕 提交于 2020-01-09 10:45:29
问题 I am developing a Sencha touch 2 application. I have been following the "Styling the user interface of a Sencha Touch application" tutorial on theming of secha touch applications. It requires me to install Ruby, Compass and SASS. I installed Ruby using the installer from rubyinstaller.org. On executing the following command, I get the expected result which confirms correct installation: C:\>ruby -v ruby 1.9.3p327 (2012-11-10) [i386-mingw32] Current source is up to date: C:\>gem sources **

ERROR: While executing gem … (Zlib::GzipFile::Error) not in gzip format

对着背影说爱祢 提交于 2020-01-09 10:44:53
问题 I am developing a Sencha touch 2 application. I have been following the "Styling the user interface of a Sencha Touch application" tutorial on theming of secha touch applications. It requires me to install Ruby, Compass and SASS. I installed Ruby using the installer from rubyinstaller.org. On executing the following command, I get the expected result which confirms correct installation: C:\>ruby -v ruby 1.9.3p327 (2012-11-10) [i386-mingw32] Current source is up to date: C:\>gem sources **