Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

askariabdurrahman
1,610 PointsI can not install imagemagick on mac.
I have asked this question before but it is still not working.
Every time I try to install imagemagick it gives me the same error:
Error: You must brew link xz libtool
before imagemagick can be installed
This does not work with sudo.
When I run brew link xz libtool it gives me the error: Linking /usr/local/Cellar/xz/5.2.2... Error: Could not symlink . /usr/local/opt is not writable.
1 Answer

Milo Winningham
Web Development Techdegree Student 3,317 PointsSounds like you need to fix the permissions on /usr/local/
(you should never have to use sudo with Homebrew). If that doesn't work, brew doctor
can usually tell you what's wrong.
askariabdurrahman
1,610 Pointsaskariabdurrahman
1,610 PointsThanks for the help.