Category Archives: Linux

OpenSSL, Rails 3 and Ubuntu

I’m using RVM on my Ubuntu box. This way I can nicely install several Ruby and Rails versions next to each other. With Rails 3 however I had a little bit of trouble. When starting the server using

rails server

the server started fine, but as soon as I clicked “About your application’s environment”, I got this error on the console:

LoadError: no such file to load -- openssl

If you’re getting this too the first thing to check is whether these packages are installed:

  • openssl
  • libssl-dev
  • libssl0.9.8

If they are and it anyway doesn’t work you want to go to the source code of your Ruby installation. In my case the source is in this path:

~/.rvm/src/ruby-1.8.7-p249

Now you cd to ext/openssl and run the following commands:

ruby extconf.rb
make
make install

After restarting WEBrick, everything was good:

For a more complete description on how to install Rails 3 on Ubuntu using RVM, checkout this blog post by Rohit Arondekar: Installing Rails 3.0 Beta 3 on Ubuntu using RVM

DeliciousTwitterFacebookLinkedInRedditSlashdotTechnorati FavoritesDiggShare
Posted in Linux, RubyOnRails | 3 Comments

Mounting via SSH

One of those easy and very useful Linux commands:

sshfs user@host:/path/to/folder ./my_local_folder

Mounts the remote folder in the local my_local_folder.

You might have to install sshfs before:

sudo apt-get install sshfs
DeliciousTwitterFacebookLinkedInRedditSlashdotTechnorati FavoritesDiggShare
Posted in Linux | Leave a comment

Rails on Ubuntu 9.04

Here some good advises how to install Rails on Ubuntu 9.04: Installing Ruby on Rails on Debian/Ubuntu

After I finished the installation I created a new app and tried to start up the development server. That failed with below message:

/usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:159:in
`require_frameworks': no such file to load -- openssl (RuntimeError)

To fix this you need to install OpenSSL:

sudo apt-get install openssl
 
sudo apt-get install libopenssl-ruby

After that WEBrick started up without issues and served the standard welcome page.

DeliciousTwitterFacebookLinkedInRedditSlashdotTechnorati FavoritesDiggShare
Posted in Linux, RubyOnRails | Leave a comment

Preperation project sierra update

I want to update some stuff on project-sierra.de and since I don’t want to edit the code in the life web page I need a local dev enviroment, meaning LAMP. Nothing great, just another possibility to be astonished by the Ubuntu (well, originally Debian) package system:

Type “sudo apt-get -y install mysql-server apache2 libapache2-mod-php5 php5 php5-mysql”, wait a few seconds and you have your LAMP up and running.

Microsoft is so good in copying features from others, which makes me think why they didn’t copy that yet…

DeliciousTwitterFacebookLinkedInRedditSlashdotTechnorati FavoritesDiggShare
Posted in Linux | 1 Comment

Ubuntu 9.04: System Beep beim Herunterfahren

Sehr nervig, aber sehr einfach abzuschalten.

Der Datei /etc/modprobe.d/blacklist fügt man folgende Zeile hinzu:

blacklist pcspkr

Anschließend, um nicht neustarten zu müssen führt man folgenden Befehl aus:

modprobe -r pcspkr

siehe auch hier: Annoying beep on shutdown using “System -> Shut down…” und hier: How to prevent modules from loading

DeliciousTwitterFacebookLinkedInRedditSlashdotTechnorati FavoritesDiggShare
Posted in Linux | Leave a comment