Wetware » Ruby on Rails

Archive for the ‘Ruby on Rails’ Category

Released my first RubyGem ‘BabyNames’

I often find myself always writing seed data and repeating myself.  Trying to make it as ‘real’ as possible instead of just “test1”, “test2”, “test3” etc. So here is a gem that will simplify all of that! See babynames on github for more details or find it on rubygems.org require ‘rubygems’ require ‘babynames’ person = […]

Posted on June 12, 2011 at 2:28 pm by Jordan Carter · Permalink · 2 Comments
In: Ruby on Rails · Tagged with: ,

Error with passenger-install-nginx-module – Could not find RubyGem passenger (>= 0) (Gem::LoadError)

If you are troubled with passenger-install-nginx-module /home/web90seconds/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:900:in `report_activate_error’: Could not find RubyGem passenger (>= 0) (Gem::LoadError) Then try sudo env GEM_HOME=$GEM_HOME /home/me/.rvm/gems/ruby-1.9.2-p180/bin/passenger-install-nginx-module Obviously change the location of your passenger-install-nginx-module binary.

Posted on March 28, 2011 at 12:53 pm by Jordan Carter · Permalink · 2 Comments
In: Ruby on Rails, Server Config · Tagged with: , ,

Gem Install Error – no such file to load — zlib

If you are troubled with the below gem install ERROR: Loading command: install (LoadError) no such file to load — zlib ERROR: While executing gem … (NameError) uninitialized constant Gem::Commands::InstallCommand Then you have installed ruby without the nessacary libraries available. Remove the ruby install (hopefully just rvm remove 1.9.2) Then install zlib1g-dev libssl-dev libreadline5-dev as […]

Posted on March 28, 2011 at 12:41 pm by Jordan Carter · Permalink · 2 Comments
In: Ruby on Rails, Server Config · Tagged with: 

Rails or Ruby Memcached Gem on Ubuntu and Linux

Get the following error when trying to install memcached ruby gem on your Ubuntu or Linux box? rlibmemcached_wrap.c: In function ‘_wrap_memcached_get_sasl_callbacks’: rlibmemcached_wrap.c:12413: error: ‘sasl_callback_t’ undeclared (first use in this function) rlibmemcached_wrap.c:12413: error: ‘result’ undeclared (first use in this function) rlibmemcached_wrap.c:12424: error: expected expression before ‘)’ token rlibmemcached_wrap.c: In function ‘Init_rlibmemcached’: rlibmemcached_wrap.c:13694: error: ‘SASL_OK’ undeclared (first […]

Posted on October 13, 2010 at 9:26 am by Jordan Carter · Permalink · 2 Comments
In: Ruby on Rails, Server Config, Ubuntu Tricks · Tagged with: , ,

How To – Persist Rails or IRB Console Command History After Exit

Sick of not having Ubuntu rails or irb terminal not saving your command history after exiting the console?  Try this little trick to fix it up! Append into your ~/.irbrc the following

Posted on September 14, 2010 at 11:46 am by Jordan Carter · Permalink · 3 Comments
In: How To, Ruby on Rails, Ubuntu Tricks · Tagged with: , , ,

Redis will not time out. Try installing the SystemTimer gem.

WARNING: Could not find a good alternative for performing time outs — connecting to Redis will not time out. Try installing the SystemTimer gem. rake aborted! undefined method `get’ for nil:NilClass WARNING: Could not find a good alternative for performing time outs — connecting to Redis will not time out. Try installing the SystemTimer gem.rake […]

Posted on July 27, 2010 at 3:03 pm by Jordan Carter · Permalink · 2 Comments
In: Ruby on Rails, Server Config · Tagged with: , ,

sqlite3 Issues – Error installing sqlite3 – sqlite3 requires Ruby version >= 1.9.1

Errors as follows, common problem is not having the header files installed or installing the gem sqlite3 when you actually want sqlite3-ruby. sudo gem install sqlite3 ERROR:  Error installing sqlite3: sqlite3 requires Ruby version >= 1.9.1. Fix with:

Posted on July 6, 2010 at 1:48 pm by Jordan Carter · Permalink · 2 Comments
In: Ruby on Rails, Server Config · Tagged with: ,

RubyGem nokogiri failed to install – libxslt is missing – Error installing nokogiri

Had trouble installing nokogiri until I installed dependencies. libxslt is missing #or libxml2 sudo apt-get install libxslt-dev libxml2-dev Full Error Stacktrace:

Posted on June 29, 2010 at 2:22 pm by Jordan Carter · Permalink · 11 Comments
In: Ruby on Rails, Server Config · Tagged with: , ,