Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用的一个叫做回形针的 gem 需要安装 imagemagick。我怎样才能让 rails 来管理这些非 gem 依赖项(对于团队/版本控制的项目,你不能只要求每个人都为你的功能安装依赖项)。
我一直在寻找答案,但找不到合适的答案。
你就是不能。Paperclip 执行命令(就像打开终端时一样),它不使用 API 或 imagemagick 库。所以你不能用 Rails 管理你的系统,因为你有特定的管理工具。
或者你可以创建一个简单的脚本来安装这个软件,但它不是很消耗。