Memcached gem install problem


I am trying to install ruby gem memcached on a linux server in my
homespace but getting into trouble when it builds native extension. The
error message is related to libraries as follows:

grep: /usr/lib64/ No such file or directory
/bin/sed: can’t read /usr/lib64/ No such file or directory
libtool: link: `/usr/lib64/’ is not a valid libtool archive

It looked like is not available, so I installed it in my home
and am providing it as a -L value but still to no avail.
Any help is appreciated.
The linux is 64 bit CentOS release 4.9 and the gcc is 4.4.5.
Any help is appreciated.