Can't install magickwand in ruby
===

Hi everyone I am trying to install magickwand. 

this is the error I am getting

    18:12:22[/Users/hooligan]$ gem install magickwand
    Building native extensions.  This could take a while...
    ERROR:  Error installing magickwand:
      ERROR: Failed to build gem native extension.
    
            /Users/hooligan/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
    checking for Magick-config... yes
    checking for ImageMagick version >= 6.5.0... yes
    checking for wand/MagickWand.h... yes
    checking for MagickWandGenesis() in -lMagickWand... yes
    checking for DrawSetBorderColor() in stdio.h,stdlib.h,math.h,wand/MagickWand.h,assert.h,ctype.h,math.h,time.h... yes
    checking for MagickSetColorspace() in stdio.h,stdlib.h,math.h,wand/MagickWand.h,assert.h,ctype.h,math.h,time.h... yes
    checking for MagickSetImageFuzz() in stdio.h,stdlib.h,math.h,wand/MagickWand.h,assert.h,ctype.h,math.h,time.h... yes
    checking for ruby/io.h... yes
    checking for rb_frame_this_func() in ruby.h,ruby/io.h... yes
    checking for rb_enumeratorize() in ruby.h,ruby/io.h... yes
    checking for rb_obj_type() in ruby.h,ruby/io.h... no
    creating extconf.h
    creating Makefile
    
    make
    /usr/bin/gcc-4.2 -I. -I/Users/hooligan/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/x86_64-darwin11.2.0 -I/Users/hooligan/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/Users/hooligan/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -DRUBY_EXTCONF_H=\"extconf.h\"  -I/usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick   -fno-common  -I/usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick    -o drawing.o -c drawing.c
    /usr/bin/gcc-4.2 -I. -I/Users/hooligan/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/x86_64-darwin11.2.0 -I/Users/hooligan/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/Users/hooligan/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -DRUBY_EXTCONF_H=\"extconf.h\"  -I/usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick   -fno-common  -I/usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick    -o magickwand.o -c magickwand.c
    /usr/bin/gcc-4.2 -I. -I/Users/hooligan/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/x86_64-darwin11.2.0 -I/Users/hooligan/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/Users/hooligan/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -DRUBY_EXTCONF_H=\"extconf.h\"  -I/usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick   -fno-common  -I/usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick    -o utility.o -c utility.c
    /usr/bin/gcc-4.2 -I. -I/Users/hooligan/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/x86_64-darwin11.2.0 -I/Users/hooligan/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/Users/hooligan/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -DRUBY_EXTCONF_H=\"extconf.h\"  -I/usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick   -fno-common  -I/usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick    -o wand.o -c wand.c
    /usr/bin/gcc-4.2 -dynamic -bundle -o magickwand.bundle drawing.o magickwand.o utility.o wand.o -L. -L/Users/hooligan/.rvm/rubies/ruby-1.9.2-p290/lib -L.  -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -L/usr/local/Cellar/imagemagick/6.7.7-6/lib -lMagickCore   -lruby.1.9.1 -lMagickWand  -lpthread -ldl -lobjc 
    ld: duplicate symbol _mwr_mMagickWand in magickwand.o and drawing.o for architecture x86_64
    collect2: ld returned 1 exit status
    make: *** [magickwand.bundle] Error 1
    
    
    Gem files will remain installed in /Users/hooligan/.rvm/gems/ruby-1.9.2-p290/gems/magickwand-0.2.0 for inspection.
    Results logged to /Users/hooligan/.rvm/gems/ruby-1.9.2-p290/gems/magickwand-0.2.0/ext/magickwand/gem_make.ou

I have installed rmagick (rmagick (2.13.1)) and imagemagick (imagemagick-6.7.7-6 via brew)

I also have this in my .bash_profile:

    export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH


I have the following: 

    locate MagickWand.h
    /usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick/wand/MagickWand.h
    /usr/local/Cellar/imagemagick/6.7.7-6/share/doc/ImageMagick/www/api/MagickWand/struct__MagickWand.html

as well as 

    /Users/vng/.rvm/gems/ruby-1.9.2-p290/gems/magickwand-0.2.0/ext/magickwand/magickwand.o


Any idea what's preventing me from installing magickwand? 