安装imagemagick的问题 [英] Problems installing imagemagick

查看:116
本文介绍了安装imagemagick的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图启动我的第一个炼油厂cms项目,我已经遇到了麻烦。我想让imagemagick继续前进,并且我遇到了错误。我查看了stackoverflow关于更改我的配置文件的权限,或有问题的目录,还卸载并重新安装,但到目前为止没有运气。我希望也许有人可以指导我解决这个问题。非常感谢。

Im trying to start my first refinery cms project, and am already having trouble. I am trying to get imagemagick going, and am getting errors. I looked on stackoverflow about changing permissions to my profile, or the directories that have problems, also uninstalling and reinstalling, but so far no luck. I was hoping maybe someone could walk me through fixing this. Thanks so much.

 Mac-Pro:local user$ brew install imagemagick
 Error: You must `brew link jpeg' before imagemagick can be installed
 Mac-Pro:local user$ brew link jpeg
 Linking /usr/local/Cellar/jpeg/8d... 
 Error: Could not symlink file: /usr/local/Cellar/jpeg/8d/bin/wrjpgcom
 /usr/local/bin is not writable. You should change its permissions.


推荐答案

鼓励之后,这是我对问题作为答案。

After encouragement, here's my comment to the question as an answer.

问题是Homebrew目录正在尝试运行 brew 的用户无法写入使用。要解决此问题,请使该用户可以写入该目录。

The problem is that the directory Homebrew is trying to use isn't writable by the user running brew. To fix this, make the directory writable by that user.

sudo chown -R yourusename:admin /usr/local/bin

这会递归地更改 / usr / local / bin中所有对象的所有权用户名为 yourusername 的目录。它假定您的用户位于OS X管理员组中。

This recursively changes the ownership of all objects inside the /usr/local/bin directory to the user called yourusername. It assumes that your user is in the OS X administrator group.

如果您不确定用户的用户名,可以运行命令 whoami

If you're not sure of the username of your user, you can run the command whoami.

这篇关于安装imagemagick的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆