你如何在Heroku中安装filemagic(libmagic)?

时间:2023-01-12 18:42:44

Usually it is brew install libmagic

通常它是brew安装libmagic

I need it because the Ruby Gem ruby-filemagic' needs it.

我需要它,因为Ruby Gem ruby​​-filemagic'需要它。

1 个解决方案

#1


-6  

Try brew install magic

尝试brew install magic

If you don't have libmagic.1.dylib file in your system, you need to install it using port command

如果系统中没有libmagic.1.dylib文件,则需要使用port命令安装它

   sudo port install file

#1


-6  

Try brew install magic

尝试brew install magic

If you don't have libmagic.1.dylib file in your system, you need to install it using port command

如果系统中没有libmagic.1.dylib文件,则需要使用port命令安装它

   sudo port install file