Having difficulty installing ruby-filemagic gem on new RHEL6 server

后端 未结 4 1514
心在旅途
心在旅途 2021-02-19 19:53

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

相关标签:
4条回答
  • 2021-02-19 20:05

    Had same problem on Ubuntu 12.04. Just installed libmagic-dev package through following command:

    sudo apt-get install libmagic-dev
    
    0 讨论(0)
  • 2021-02-19 20:07

    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.

    0 讨论(0)
  • 2021-02-19 20:12

    I had the same problem on OpenSuse 11.3. This helped:

    zypper install file-devel
    
    0 讨论(0)
  • 2021-02-19 20:25

    On a Mac, using homebrew:

    sudo brew install libmagic
    
    0 讨论(0)
提交回复
热议问题