It appears to be looking for the libmagic.so.1 file. I have that file. It is located in /usr/lib64. I am not running this installation as the root user.
I am also using
Had same problem on Ubuntu 12.04. Just installed libmagic-dev
package through following command:
sudo apt-get install libmagic-dev
I needed to do:
yum install file-devel
That apparently contains the libmagic header files that the filemagic ruby gem required in order to compile. It worked like a champ after that.
I had the same problem on OpenSuse 11.3. This helped:
zypper install file-devel
On a Mac, using homebrew:
sudo brew install libmagic