sqlite – Sheep Guarding Llama https://sheepguardingllama.com Scott Alan Miller :: A Life Online Sat, 26 Sep 2009 14:01:44 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.1 Installing ruby-sqlite3 on Red Hat or CentOS Linux https://sheepguardingllama.com/2008/11/installing-ruby-sqlite3-on-red-hat-or-centos-linux/ https://sheepguardingllama.com/2008/11/installing-ruby-sqlite3-on-red-hat-or-centos-linux/#comments Sun, 23 Nov 2008 22:04:22 +0000 http://www.sheepguardingllama.com/?p=3012 Continue reading "Installing ruby-sqlite3 on Red Hat or CentOS Linux"

]]>
For my development environment, I like to SQLite3 on Red Hat Enterprise Linux (RHEL / CentOS.)  When working with the gem installer for the sqlite-ruby package I kept getting an error on my newest machine.  I searched online and found no answers anywhere while finding many people having this save problem.  I have found a solution.  There is no need to compile Ruby again from source.

The command used was:

gem install sqlite3-ruby

What I found was the following error:

gem install sqlite3-ruby
Building native extensions.  This could take a while…
ERROR:  Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb install sqlite3-ruby
checking for fdatasync() in -lrt… no
checking for sqlite3.h… no

make
make: *** No rule to make target `ruby.h’, needed by `sqlite3_api_wrap.o’.  Stop.

Gem files will remain installed in /usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4 for inspection.
Results logged to /usr/lib64/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/gem_make.out

There are two main causes of this problem.  The first is that the correct dev packages are not installed.  Be sure that you install the correct packages for Red Hat.  In RHEL 5, which I use, SQLite3 is now simply SQLite.

yum install ruby-devel sqlite sqlite-devel ruby-rdoc

If you are still receiving the error then you most likely do not have a C compiler installed.  The Gem system needs make and the GCC.  So install those as well.  (Obviously you could combine these two steps.)

yum install make gcc

Voila, you SQLite / SQLite3 installation on Red Hat (RHEL), Fedora, or CentOS Linux should be working fine.  Now your “rake db:migrate” should be working.

Update: If you follow these direction and get the error that sqlite3-ruby requires Ruby version > 1.8.5 then you can go to my follow-up directions on
SQLite3-Ruby Gem Version Issues on Red Hat Linux and CentOS

]]>
https://sheepguardingllama.com/2008/11/installing-ruby-sqlite3-on-red-hat-or-centos-linux/feed/ 16
October 6, 2008: A Day with No Title, Oops https://sheepguardingllama.com/2008/10/october-6-2008/ https://sheepguardingllama.com/2008/10/october-6-2008/#respond Tue, 07 Oct 2008 16:23:53 +0000 http://www.sheepguardingllama.com/?p=2670 Continue reading "October 6, 2008: A Day with No Title, Oops"

]]>
46 Days to Baby Day! (33 Weeks and Three Days Pregnant)

18 Work Days Left for Dominica; House closing in 1 – 19 days.

I am on the early morning shift today so Dominica got me up when she got up to get ready to go to work.  The office was pretty slow this morning.  It was a nice morning to be on the early shift.

For breakfast I ran over to Airlie Cafe and picked up a sandwich.  Oreo is happy to be home with me today.  He spent the entire morning sitting in the brown chair in the living room right beside my desk all bundled in his wool blankets like a little papoose (actually, at 25lbs, he is a rather large papoose.)  I have the windows open and am wearing a sweatshirt around the apartment.

Today feels a bit like winter.  It is dark and cold and the streets are mostly barren of people.  The apartment is rather chilly.  Yesterday was much, much warmer.  According to the Weather Channel, today is supposed to be the coldest day in the first half of October.  Too bad, today would have been the perfect weather for moving.

I got my “classwork” done for my RIT class first thing this morning giving me a bit of a jump on the week.  Then I went on and read all of the reading assignments for this week.  Then, as there was more time available, I just went ahead and did this week’s homework!  Talk about getting a jump on the week.  I completed the entire week’s work on the morning of the first day!  This is going to be a really busy week, though, so getting this out of the way was a really good idea.

Today is another wild ride for the financial markets.  What a day.  Today the Dow fell below 10,000 points taken us to the lowest market levels in four years!  At least I can say that it is an interesting time to be working in the financial markets.

I went to do the work that I needed to do for BrainBench today and realized that my manager had not applied the work that I did last time correctly and that now we had two rounds of work having been completed based on work that was not correct.  All of this came about because the web site that I use to do my workflow with them doesn’t have all of the necessary functionality implemented so I have to have my manager at BB do some of the work for me.

Today was a scary day on the market.  At one point we had a drop of over 800 points – the all time largest point drop.  But at the end of the day it was just over 300 points down.  Still a pretty bad day.  Oil dropped to just under $88 though so gas should be getting cheaper quickly which will, in theory, encourage people to do some additional spending.  If it stays down until Christmas it might have a significant impact on Christmas shopping habits.

The weather was crazy here today.  Very cold this morning.  Then mid-afternoon it got so warm and sunny that Dominica was driving the convertible with the top down when she went to lunch.  Then by five it was cold and windy again.

Katie saw gas at $3.03 in NJ yesterday.  Imagine what it will be tomorrow!

On her way home from work Dominica picked up food from Cheeseburger in Paradise.  We get BBQ Cheddar Veggie Burgers from there.  They are pretty good.  Although what I really miss is the veggie burger from Tom Wahl’s in Avon, New York.  They make the best veggie burger anywhere.

We watched several episodes of Magnum P.I. during and after dinner.  Dominica has gotten hooked on that show.  It really is a classic.  She went to bed around nine or nine thirty.  I went out to the office and continued studying Ruby on Rails from the book that I finished this weekend.  I am attempting to do all of the samples and examples in the book to get as much out of it as possible.  I am having a lot of run with it.

To get a little more out of the book I decided to adapt the project in the book to SQLite instead of MySQL which they use.  I have used MySQL a lot over the years but have never used SQLite in my own project and was interested to see it at work.

I stayed up until elevenish and then headed off to bed myself.  Tomorrow will be my only day on Wall Street this week.  The weather is nice, though, so I am looking forward to not overheating on my walk into the office.

]]>
https://sheepguardingllama.com/2008/10/october-6-2008/feed/ 0