Gotchas
Database user name
In older versions of Rails you might have used a configuration like this in your database.yml:
production:
adapter: mysql
database: myapp_production
user: myapp_productionn
password: sekrit
host: localhost
In newer versions, be sure to use “username” or you’re likely to see errors when ‘root’ tries to log in to mysql.
Nokogiri
You may run into problems trying to install the nokogiri gem. The error might look like this:
make
gcc -fPIC -O0 -g -march=i386 -mcpu=i686 -Wall -fPIC -g -DXP_UNIX -O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux -I. -c html_document.c
In file included from ./html_document.h:4,
from html_document.c:1:
./native.h:7:27: libxml/parser.h: No such file or directory
./native.h:8:26: libxml/xpath.h: No such file or directory
./native.h:9:35: libxml/xpathInternals.h: No such file or directory
./native.h:10:30: libxml/xmlreader.h: No such file or directory
./native.h:11:31: libxml/HTMLparser.h: No such file or directory
./native.h:12:29: libxml/HTMLtree.h: No such file or directory
In file included from ./native.h:15,
# many more below
Use the steps below to get it to compile.
yum install -y libxml2 libxml2-devel
sudo ln -s /usr/include/libxml2/libxml /usr/include/libxml
ldconfig
gem install nokogiri
