Sunday, October 4, 2009

Rails with Ruby 1.9

Works like a char out of the box ... almost --

Quick things to keep in mind - make sure you have ssl-devel and readline installed before you begin the ruby 1.9 compilation

gem comes by default in ruby 1.9 - so no problem....

right after you build/install ruby 1.9, do a gem update --system
That'll update gem itself and then install rails by doing gem install rails

Then install gem install sqlte3-ruby


And here are the steps to set up mysql -
yum install mysql mysql-devel mysql-server

service mysqld start

chkconfig mysqld on

mysqladmin -u root password yourpassword

[root@localhost ~]# mysql -u root -p
Enter password:
mysql>; CREATE DATABASE somedb;
Query OK, 1 row affected (0.09 sec)
mysql> GRANT ALL PRIVILEGES ON drupal.*
-> TO 'myuser'@'localhost' IDENTIFIED BY
->'somepassword' WITH GRANT OPTION;
Query OK, 0 rows affected (0.01 sec)
mysql> quit


Thanks to http://studge.com/setting-up-mysql-in-fedora-core-6/

No comments: