Debian JSON for Ruby

I tried to install JSON for Ruby via RubyGem, # gem install json and I got the following error message: Building native extensions. This could take a while...<br /> ERROR: Error installing json:<br /> ERROR: Failed to build gem native extension. <br /> /usr/bin/ruby1.8 extconf.rb install json<br /> extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)<br /> from extconf.rb:1<br /> <br /> Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/json-1.1.6 for inspection.<br /> Results logged to /usr/lib/ruby/gems/1.8/gems/json-1.1.6/ext/json/ext/generator/gem_make.out<br /> ...

May 24, 2009 · 1 min · 120 words · kenno

LoadError: no such file to load &#8212; openssl

On a Debian system, if the Ruby complains about “LoadError: no such file to load — openssl” try to install this package libopenssl-ruby $ sudo apt-get install libopenssl-ruby Now test if the problem resolved: $ irb -rubygems<br /> irb(main):001:0> require 'openssl'<br /> => true Voilla, there is no more load error. Credit: Ruby Forum

May 23, 2009 · 1 min · 54 words · kenno

apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName

Everytime I start apache2 (# apache2ctl start) this message is dispalyed: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName Well, the site is still running despite the above notification. To fix it, we need to edit the /etc/apache2/httpd.conf or /etc/apache2.conf and add the following line: ServerName nameofserver Now, restart the apache server (# apache2ctrl restart) and should no loger see the previous message.

February 10, 2009 · 1 min · 70 words · kenno

Relocate the URL of SVN Repository

Recently, SVN has been installed on a local Debian box at work. This could have been done a bit earlier in my opinion, but well it’s better be a little late than never. The SVN server is accessed via a LAN ip: 192.168.0.126. Because we didn’t setup static IP on the router, the IP of the server keeps changing from time to time. Here’s how one can change or relocate to the new URL. ...

February 6, 2009 · 1 min · 99 words · kenno

HOWTO add user to sudoers list in Debian/Ubuntu

You need to have root access to do that. So the first step to become root with the following command: ken@debian:~$ su<br /> Password:<br /> debian:/home/ken# visudo<br /> Now you can add a username to the list. For example: <br /> ken ALL=(ALL) ALL<br /> Save the file to complete the process. Credit: Ubuntu Forum

January 27, 2009 · 1 min · 55 words · kenno