ruby,rubygemsRelated issues-Collection of common programming errors


  • Greg W
    ruby-on-rails ruby applescript daemon osascript
    I have a need to frequently run an applescript on my web server. As the server is running rails, and I need access to my models before and after running the script, I thought that a daemon (via the daemons gem) might be appropriate.In theory this is fairly easy. Below is a simplified example. #!/usr/bin/env rubyENV[“RAILS_ENV”] ||= “development”require File.dirname(__FILE__) + “/../../config/application” Rails.application.require_environment!$running = true Signal.trap(“TERM”) do $running = f

  • Gagan
    ruby opencv
    I am unable to install ruby-opencv gem.Here’s what I have done so far.Installed openCV withsudo apt-get install libopencv-devThen tried installing ruby-opencv gem withgem install ruby-opencvBut I got the following error? test gem install ruby-opencv Building native extensions. This could take a while… ERROR: Error installing ruby-opencv:ERROR: Failed to build gem native extension./home/ckgagan/.rvm/rubies/ruby-1.9.3-p484/bin/ruby extconf.rb >> Check the required libraries… checking

  • yudi2312
    ruby gem db2
    I am getting below error on installing ibm_db gem. Got no idea what is causing this. I am using ruby on Win 7 32-bit and i am using ibm_data_server_driver_package_win32_v10.5 downloaded from IBM website.D:\Users\zzuj001>gem install ibm_db — ‘–with-IBM_DB-include=”C:\Program Files\ IBM\IBM DATA SERVER DRIVER\include” –with-IBM_DB-lib=”C:\Program Files\IBM\IBM DATA SERVER DRIVER\lib”‘ ERROR: Error installing ibm_db:ERROR: Failed to build gem native extension.C:/Ruby200/bin/ruby.exe extconf.

  • Sayuj
    ruby gem bundle
    I am getting an error while bundle install$ vi Gemfilesource ‘http://rubygems.org’gem ‘daemons’ gem ‘rfeedparser’$ ruby -vruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]$ bundle install –path vendorFetching source index for http://rubygems.org/ Using addressable (2.2.6) Using cgi_multipart_eof_fix (2.5.0) Installing character-encodings (0.4.1) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension./usr/bin/ruby1.8 extconf.rb checking fo

  • Sean
    ruby-on-rails ruby rubygems jekyll rdiscount
    I am attempting to get Jekyll and bower working within Windows 8I have managed to install Ruby, and the DevKit, I tried, version 2.0.2, 1.9.3 and then again with the Rails installer from http://railsinstaller.org/I have followed both scenario A and B at the following, https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting#wiki-gems_fails_comspec_autorun but neither are relevant to me, COMSPEC is my cmd.exe location and I don’t have an autorun?I can run gem install mysql but attempting t

  • madth3
    ruby ubuntu-12.04 lapack blas gsl
    I have Ubuntu Precise and can’t find in the software repo any lapack or blas. When I run sudo gem install gslI get an error output. I have gsl 1.15. The output is as follows Building native extensions. This could take a while… ERROR: Error installing gsl:ERROR: Failed to build gem native extension./usr/bin/ruby1.8 extconf.rb checking gsl version… 1.15 checking gsl cflags… -I/usr/include checking for main() in -lcblas… no checking gsl libs… -L/usr/lib -lgsl -lgslcblas -lm checking fo

  • tokhi
    ruby-on-rails ruby gem bundle ruby-rice
    I’m trying to install rice gem via ruby 1.9.3 in ubuntu 12.4 but I get:An error occurred while installing rice (1.4.2), and Bundler cannot continue. Make sure that `gem install rice -v ‘1.4.2’` succeeds before bundling.I tried to install libs below but it didn’t worke for me:sudo apt-get install libmapnik libmapnik-dev mapnik-utils python-mapnikthis is the complete exception that I get:Gem::Ext::BuildError: ERROR: Failed to build gem native extension./home/vagrant/.rvm/rubies/ruby-2.1.0/bin/ruby

  • dagarre
    ruby-on-rails ruby rubygems bundler therubyracer
    Running bundle update in terminal inside of my project folder and an error occurs and Bundler can’t continue. How can I resolve this and run a successful bundle update?Mac osxTerminal output:master*$ bundle update Fetching source index from http://code.thesite.com/ Fetching gem metadata from https://rubygems.org/………. Fetching gem metadata from https://rubygems.org/…….. Resolving dependencies… Using rake (10.1.0) Using i18n (0.6.5) Using minitest (4.7.5) Using multi_json (1.8.2) U

  • Life of Madness
    ruby gem centos gitlab centos5
    I get this gitlab install error.Does anyone know why?log:[git@ictiy-01 gitlab]$ sudo -u git -H bundle install –deployment –without development test postgres aws Fetching source index from https://rubygems.org/ Using rake (10.1.0) Using i18n (0.6.9) Using minitest (4.7.5) Using multi_json (1.8.2) Using atomic (1.1.14) Using thread_safe (0.1.3) Using tzinfo (0.3.38) Using activesupport (4.0.2) Using builder (3.1.4) Using erubis (2.7.0) Using rack (1.5.2) Using rack-test (0.6.2) Using actionpack

  • Jim Lim
    ruby postgresql rubygems
    This is just another thread about the same question. How to install gem pg. I tried almost all the other threads I have found on stackoverflow and it doesn’t work.I tried installing postgress via brew, and via dmg package. And the outcome is the same error.Xcode Verion: 4.6 Rails Version: 4.0.0 Ruby Version: ruby-2.0.0-p247:$ gcc –version i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) Copyright (C) 2007 Free Software Foundation, Inc. This i

  • Sean
    ruby-on-rails ruby rubygems jekyll rdiscount
    I am attempting to get Jekyll and bower working within Windows 8I have managed to install Ruby, and the DevKit, I tried, version 2.0.2, 1.9.3 and then again with the Rails installer from http://railsinstaller.org/I have followed both scenario A and B at the following, https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting#wiki-gems_fails_comspec_autorun but neither are relevant to me, COMSPEC is my cmd.exe location and I don’t have an autorun?I can run gem install mysql but attempting t

  • dagarre
    ruby-on-rails ruby rubygems bundler therubyracer
    Running bundle update in terminal inside of my project folder and an error occurs and Bundler can’t continue. How can I resolve this and run a successful bundle update?Mac osxTerminal output:master*$ bundle update Fetching source index from http://code.thesite.com/ Fetching gem metadata from https://rubygems.org/………. Fetching gem metadata from https://rubygems.org/…….. Resolving dependencies… Using rake (10.1.0) Using i18n (0.6.5) Using minitest (4.7.5) Using multi_json (1.8.2) U

  • Jim Lim
    ruby postgresql rubygems
    This is just another thread about the same question. How to install gem pg. I tried almost all the other threads I have found on stackoverflow and it doesn’t work.I tried installing postgress via brew, and via dmg package. And the outcome is the same error.Xcode Verion: 4.6 Rails Version: 4.0.0 Ruby Version: ruby-2.0.0-p247:$ gcc –version i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) Copyright (C) 2007 Free Software Foundation, Inc. This i

  • the Tin Man
    rubygems bundle bigdecimal gemfile
    I’m using Bundle to install gems in d:/cucumbertests/cucumber/ successfully, which installs BigDecimal v 1.1.0. This failed in d:/cucumbertests/cucumber/itinfix which installed BigDecimal v 1.2.0.How do I identify the correct version of BigDecimal in my Gemfile in d:/cucumbertests/cucumber/itinfix? Why is the version of BigDecimal correct in d:/cucumbertests/cucumber? The latest version is 1.2.0, found by running gem query –remote –name-matches bigdecimal is:REMOTE GEMS:bigdecimal (1.2.0) bigd

  • Mike
    mysql ruby rubygems gem osx-mavericks
    Trying to install mysql2 on 10.9 is a nightmare. Any help would be greatly appreciated.Running Ruby 2.0.0 p247. Xcode, command line tools and mysql client are installed.Heres the terminal output:gem install mysql2 -v 0.3.13Building native extensions. This could take a while… ERROR: Error installing mysql2:ERROR: Failed to build gem native extension./Users/mike.simmonds/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb checking for rb_thread_blocking_region()… yes checking for rb_wait_for_sin

  • Chloe
    ruby rubygems gem imagemagick rmagick
    How do I install rmagick gem for Windows XP? I already installed ImageMagick with the header files, and I installed RailsInstaller.org which comes with DevKit. I don’t know where to look to fix these errors.C:\RailsInstaller\ImageMagick-6.8.2-Q16>ruby -v ruby 1.9.3p125 (2012-02-16) [i386-mingw32]C:\RailsInstaller\ImageMagick-6.8.2-Q16>gem -v 1.8.16C:\RailsInstaller\ImageMagick-6.8.2-Q16>path=%PATH%;C:\RailsInstaller\ImageMagick-6.8.2-Q16C:\RailsInstaller\ImageMagick-6.8.2-Q16>identif

  • Bushido Code
    ruby-on-rails rubygems bundle-install ruby-install
    I apologize ahead of time if I don’t do a good job of explaining this. I am a complete beginner and I have been struggling to find anything online that is written with that in mind. So far, my only experience is doing the Javascript and Ruby sections of Codecademy.com. I read that I should have some knowledge of Ruby before trying out Rails. So I found this site Getting Started with Rails and I tried to follow the steps and do exactly as it said. It even says at the beginning, “This guide is des

  • the Tin Man
    mysql ruby rubygems mysql2
    I am currently trying to install the mysql2 gem for a Ruby on Rails application. I am using Ruby 1.9.2. Here is the error:todd-andrewss-macbook:shiftly toddOld$ gem install mysql2 Building native extensions. This could take a while… ERROR: Error installing mysql2:ERROR: Failed to build gem native extension./Users/toddOld/.rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb checking for rb_thread_blocking_region()… yes checking for mysql.h… yes checking for errmsg.h… yes checking for mysqld_er

  • MrRoth
    ruby rubygems chef vagrant berkshelf
    enclosed a snippet of my console:release version:$ sudo cat /etc/*release* | grep -i distrib DISTRIB_ID=Ubuntu DISTRIB_RELEASE=13.10 DISTRIB_CODENAME=saucy DISTRIB_DESCRIPTION=”Ubuntu 13.10″ruby version:$ ruby –version ruby 2.0.0p299 (2013-08-29) [x86_64-linux-gnu]vagrant version:$ vagrant –version Vagrant 1.3.5prerequisites:$ sudo dpkg -s libxml2 libxml2-dev libxslt1-dev libxslt1.1 build-essential | grep -i status Status: install ok installed Status: install ok installed Status: install ok in

  • Simpleton
    ruby ruby-on-rails-3 rubygems rvm
    I’ve just upgraded my app from 1.8.7 to 1.9.2 using RVM and had to add RubyGems and Bundler, ran bundle install and got everything to work except SystemTimer. Google-fu returns nothing and I see others have had issue with it in 1.9 but some have gotten it to work. Any ideas?pawel:bodb pawel$ sudo gem install SystemTimer Building native extensions. This could take a while… /Users/pawel/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:48: warning: Insecure world writ

Web site is in building

I discovery a place to host code、demo、 blog and websites.
Site access is fast but not money