From 2a408bdf8960e353cb19bb0c40a3a1665c5265a5 Mon Sep 17 00:00:00 2001 From: Robin Dupret Date: Sat, 7 Jul 2012 16:10:24 +0300 Subject: Add few information on Fedora and CentOS --- .../source/contributing_to_ruby_on_rails.textile | 25 ++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'guides/source') diff --git a/guides/source/contributing_to_ruby_on_rails.textile b/guides/source/contributing_to_ruby_on_rails.textile index 1dadce2083..fd5e2b28c0 100644 --- a/guides/source/contributing_to_ruby_on_rails.textile +++ b/guides/source/contributing_to_ruby_on_rails.textile @@ -66,12 +66,26 @@ Install first libxml2 and libxslt together with their development files for Noko $ sudo apt-get install libxml2 libxml2-dev libxslt1-dev +If you are on Fedora or CentOS, you can run + + +$ sudo yum install libxml2 libxml2-devel libxslt libxslt-devel + + +If you have any problems with these libraries, you should install them manually compiling the source code. Just follow the instructions "here":http://nokogiri.org/tutorials/installing_nokogiri.html#red_hat__centos . + Also, SQLite3 and its development files for the +sqlite3-ruby+ gem -- in Ubuntu you're done with just $ sudo apt-get install sqlite3 libsqlite3-dev +And if you are on Fedora or CentOS, you're done with + + +$ sudo yum install sqlite3 sqlite3-devel + + Get a recent version of "Bundler":http://gembundler.com/: @@ -150,6 +164,13 @@ $ sudo apt-get install mysql-server libmysqlclient15-dev $ sudo apt-get install postgresql postgresql-client postgresql-contrib libpq-dev +On Fedora or CentOS, just run: + + +$ sudo yum install mysql-server mysql-devel +$ sudo yum install postgresql-server postgresql-devel + + After that run: @@ -172,7 +193,7 @@ and create the test databases: $ cd activerecord -$ rake mysql:build_databases +$ bundle exec rake mysql:build_databases PostgreSQL's authentication works differently. A simple way to set up the development environment for example is to run with your development account @@ -185,7 +206,7 @@ and then create the test databases with $ cd activerecord -$ rake postgresql:build_databases +$ bundle exec rake postgresql:build_databases NOTE: Using the rake task to create the test databases ensures they have the correct character set and collation. -- cgit v1.2.3