Got Bored So I Installed Ruby on Rails, Or Tried To Atleast
Posted on March 31, 2009
Filed Under Humor, Misc, Rambling
Lately I’ve been having bouts with insomnia. Being awake till the sun comes out, and having to go to work on 2 hours of sleep is not a good thing. Note: Blogging about the whole ordeal afterwards when I should be going to sleep is also not a good thing. However I’m very happy at my accomplishment tonight so I thought I’d share my results with the world.
If you don’t already know this, I started out this blog back in 2007 to teach myself about a few different things, among which was games, making money online, and some webmaster stuff. These occasional webmaster type of posts I haven’t included in a while so bear with me, as Iyou probably won’t see one like it for a while again, or possibly more if my insomnia doesn’t go away.
Anyways I somehow got the idea in my head to go a head and install, on my Windows 64 bit Vista box, a copy of Ruby on Rails 2.3.2. Simple enough, it was as easy as following the directions, and installing it. I won’t rewrite a tutorial on that seeing as how they are on the web in abundance. Here’s one I followed up to the SQL part. (I installed MySQL version 6.0 instead).
Speaking of MySQL, this was the cause of my problems tonight, however I was able to finally find the answers to my questions after much Googling. Why does it seem like if there is anything that could go wrong on an installation, it does.
So anyways the first problem that came up after the I went through the whole thing was to run the:
ruby script\server
Command to test out the darned application. To my horror I got a big red error message stating that something went wrong. Great, but I quickly found one error. Ruby defaults to SQLlive so in order for it to work with MySQL I had to change the contents of the database.yml file in the test project to contain the following:
development:
adapter: mysql
encoding: utf8
database: myfirstproject_development
username:
password:
However this didn’t seem to solve the issue. I still had that big old red error message pop up telling my that I failed to install it correctly. The error I was getting was:
bundled mysql.rb driver has been removed from Rails 2.2
Now this part took me a little bit of sifting through information. There was plenty of different solutions which all kind of worked. The most simplest was to copy the file libmySQL.dll from my SQL\bin folder to the c:\ruby\bin folder thanks to this post.
Soo, after all that I go and start up the ruby server again, and run into yet another error. This really isn’t my day for doing new installs. This time during the ‘rake’ command test, I get the:
Client does not support authentication protocol
error this time. Great, but atleast Sun has an easy way to fix that one here. Apparently you get that error message because you’re using a MySQL version older than 4.1 or something about old password hashes etc.
But anyways, its done. After all those errors, and about 3 hours of time spent, since I’m not at my peak thinking skills at 3am in the morning, I finally get the darned installation done. Its good, I can start my Ruby on Rails learning experience when I get back home from work tomorrow.
Except for one thing…
I installed MySQL 6.0 which is in alpha, and people are telling my to go install MySQL 5.1 if I want to learn on a stable platform. Soo, tomorrow I’ll be uninstalling, and reinstalling all this crap all over again.
[Subscribe to these posts free via a rss reader or e-mail]
Popularity: 2% [?]
Comments
7 Responses to “Got Bored So I Installed Ruby on Rails, Or Tried To Atleast”
Leave a Reply
Hi!
Thank you for your great article. Still need to learn many thing from you.
See you around.
Hehe, i can only imagine how bored you were
.. But knowlegde is power and getting new experience is the way to improve.
Georges last blog post..A Budget Orlando Vacation
Geez, you must have really been bored! I remember trying to install RoR but it always crashed with some semi random error … maybe my version was corrupted because I kept asking myself how people manage to use this when it’s clearly NOT WORKING.
Thanks for the post
Pozycjonowanie Poznans last blog post..Gry dla dzieci
I am planning to make some sort of social networking web application. I will be using Ruby on Rails to build it. I have just learnt the basics of Ruby on Rails. Now how can I go about to do user registration and authentication and display customized content for each user after he/she longs in?
Ruby is good, but rails makes it even more likable. BTW, for smaller prototypes sqlite is not such a bad option. If you are using ActiveRecord without explicit queries, you shouldn’t find a difference between using SQLite or MySQL.
Interesting Article.The information you provide is useful. Thanks for sharing.
in my opinion the best open source framework for rapid development of web applications