If you’re like me, you’ve gotten the ‘MySQL lost connection’ errors when running rails apps on Ubunutu. And if you’ve tried to apply the common fix - installing the mysql gem - you might not have been able to and have seen an error such as:
ERROR: While executing gem … (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build [...]
I got dual monitors working well, except the two screens were basically duplicates - each screen having its own desktop, and control panels. Plus, it wasn’t possible to drag windows between screens. Adding the Xinerama option as shown below seems to have fixed this issue.
(from /etc/X11/xorg.conf)
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen" 0 0
Screen "aticonfig-Screen[1]" [...]
Another crumb for the setup path…
You’ll need to create a symlink to irb to run the console:
ln -s /usr/bin/irb1.8 /usr/bin/irb
The Ruby OpenSSL bindings are not installed by default on Ubuntu and Capistrano needs them.. so if you see this error:
`gem_original_require': no such file to load -- openssl (LoadError)
run this command(you probably already have the openssl library, but not the Ruby bindings):
apt-get install libopenssl-ruby
I’ve just followed a great walk-though on getting Rails up and running on Ubuntu. I now have Eclipse (with the RadRails plugin), mysql, apache, Ruby and Rails all working really well.
A lot of what I post here doubles as a journal of sorts, insuring I don’t lose any of these juicy nuggets when I [...]