# Problem Installing RMagick

**URL:** <https://www.ruby-forum.com/t/problem-installing-rmagick/112325>\
**Category:** Ruby\
**Created:** [August 17, 2007, 3:35pm UTC](https://www.ruby-forum.com/t/problem-installing-rmagick/112325 "2007-08-17T15:35:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 17, 2007, 3:35pm UTC](https://www.ruby-forum.com/t/problem-installing-rmagick/112325/1 "2007-08-17T15:35:50Z")

</div>

Okay, so I am setting up a brand new Macbook and can’t seem to get  
RMagick or ImageMagick to install with Darwin Ports. Can anyone give  
me some insight as to why this may be failing? I get the same error  
when I do a “sudo port install imagemagick”.

Thanks!

sudo port install rb-rmagick  
Password:  
—\> Building XFree86 with target World  
Error: Target org.macports.build returned: shell command " cd “/opt/  
local/var/macports/build/  
\_opt\_local\_var\_macports\_sources\_rsync.macports.org\_release\_ports\_x11\_XFree86/  
work/xc” && make World " returned error 2  
Command output: dri\_driver.c:1108: error: ‘list’ undeclared (first use  
in this function)  
dri\_driver.c:1108: error: ‘mode’ undeclared (first use in this  
function)  
dri\_driver.c: At top level:  
dri\_driver.c:1112: error: parse error before ‘ctx’  
dri\_driver.c: In function ‘end\_list\_callback’:  
dri\_driver.c:1117: error: dereferencing pointer to incomplete type  
dri\_driver.c:1117: error: ‘ctx’ undeclared (first use in this  
function)  
dri\_driver.c: In function ‘unwrap\_context’:  
dri\_driver.c:1123: error: dereferencing pointer to incomplete type  
dri\_driver.c:1123: error: dereferencing pointer to incomplete type  
dri\_driver.c:1124: error: dereferencing pointer to incomplete type  
dri\_driver.c:1124: error: dereferencing pointer to incomplete type  
dri\_driver.c:1125: error: dereferencing pointer to incomplete type  
dri\_driver.c:1125: error: dereferencing pointer to incomplete type  
dri\_driver.c: In function ‘wrap\_context’:  
dri\_driver.c:1130: error: dereferencing pointer to incomplete type  
dri\_driver.c:1130: error: dereferencing pointer to incomplete type  
dri\_driver.c:1130: error: dereferencing pointer to incomplete type  
dri\_driver.c:1131: error: dereferencing pointer to incomplete type  
dri\_driver.c:1131: error: dereferencing pointer to incomplete type  
dri\_driver.c:1131: error: dereferencing pointer to incomplete type  
dri\_driver.c:1132: error: dereferencing pointer to incomplete type  
dri\_driver.c:1132: error: dereferencing pointer to incomplete type  
dri\_driver.c:1132: error: dereferencing pointer to incomplete type  
make[5]: \*\*\* [dri\_driver.o] Error 1  
make[4]: \*\*\* [all] Error 1  
make[3]: \*\*\* [all] Error 1  
make[2]: \*\*\* [all] Error 1  
make[1]: \*\*\* [World] Error 2  
make: \*\*\* [World] Error 2

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 17, 2007, 3:52pm UTC](https://www.ruby-forum.com/t/problem-installing-rmagick/112325/2 "2007-08-17T15:52:53Z")

</div>

TomRossi7 wrote:

> Okay, so I am setting up a brand new Macbook and can’t seem to get  
> RMagick or ImageMagick to install with Darwin Ports. Can anyone give  
> me some insight as to why this may be failing? I get the same error  
> when I do a “sudo port install imagemagick”.
> 
> Thanks!

Check out [http://rmagick.rubyforge.org/install-faq.html](http://rmagick.rubyforge.org/install-faq.html).
