Saari Development

*nix: nslookup to resolve an IP to host name

Posted in linux/unix by imsaar on September 13th, 2007

nslookup is useful to resolve an ip address to a host name in the linux/unix environment.

nslookup - query Internet name servers interactively

Ruby : Where are the gems on ubuntu 7.04

Posted in linux/unix, ruby by imsaar on August 8th, 2007

It took me some time to figure it out where the gems are installed on my ubuntu 7.04 linux machine so I thought I would save it here as a reminder. The ruby gems are stored here:

/var/lib/gems/1.8/gems

What I did to find this is to run gem install without sudo to see the error message:

me@desktop:/usr/lib/ruby/1.8$ gem install rails
Bulk updating Gem source index for: http://gems.rubyforge.org
ERROR:  While executing gem ... (Errno::EACCES) 
Permission denied - /var/lib/gems/1.8/cache/rails-1.2.3.gem

The permission denied message gave me my answer. Who said error messages are not educational?

Hurray!