Tag: Gems

  • sqlite3.h is missing – Ruby on Rails

    Just an error I ran into while running bundle install on a new ubuntu virtual: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb checking for sqlite3.h… no sqlite3.h is missing. Try ‘port install sqlite3 +universal’ or ‘yum install sqlite-devel’ and check your shared library search path (the location where your sqlite3 shared library…

  • Not Recognised by the ‘identify’ command – Paperclip

    Just a quick post on another problem I ran into while setting up PaperClip. When attempting to submit a form WITHOUT an image I received the following error message: Assets asset /tmp/stream20120218-22611-dgnkr-0.exe is not recognized by the ‘identify’ command. Apparently the most common cause of this issue is one of two things: #1: You don’t…

  • PaperClip Issues – Ruby on Rails

    I finally decided to replace all my existing code to handle images with Paperclip. I was following the screencast by Emerson Lackey, #134 Paperclip, however I ran into a couple of issues. Thankfully they were all very easily fixed, and probably wouldn’t have occurred at all if I’d simply watched the whole screencast instead of…

  • PostgreSQL Installation Error – Ruby

    I ran into a bit of problem moving an app to a test Heroku host – I needed to install PostgreSQL. I added the following to my Gemfile: #Gemfile #gem ‘sqlite3’ gem ‘pg’ I then tried to run bundle install: root@chris-VirtualBox:~/site# bundle install However I received the following error: root@chris-VirtualBox:~/site# bundle install Fetching source index…

  • Uninstalling a Gem – Ruby on Rails

    Due to a few recent issues with SunSpot (see my previous posts), I’ve decided to uninstall it until I have enough time to work on it properly. Once again, Ruby makes this pretty simple: chris@chris-VirtualBox:~/site$ sudo gem uninstall sunspot [sudo] password for chris: You have requested to uninstall the gem: sunspot-1.2.1 sunspot_rails-1.2.1 depends on [sunspot…

Create a website or blog at WordPress.com