Skip to content

Instantly share code, notes, and snippets.

@ka8725
Created November 9, 2011 14:55
Show Gist options
  • Save ka8725/1351661 to your computer and use it in GitHub Desktop.
Save ka8725/1351661 to your computer and use it in GitHub Desktop.
Fails rails project
Andrey-Mac-BookPro:keen ka8725$ sudo gem install rmagick
Password:
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.4.9... yes
checking for HDRI disabled version of ImageMagick... yes
checking for stdint.h... yes
checking for sys/types.h... yes
checking for wand/MagickWand.h... yes
checking for InitializeMagick() in -lMagickCore... no
checking for InitializeMagick() in -lMagick... no
checking for InitializeMagick() in -lMagick++... no
Can't install RMagick 2.13.1. Can't find the ImageMagick library or one of the dependent libraries. Check the mkmf.log file for more detailed information.
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/rmagick-2.13.1 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/rmagick-2.13.1/ext/RMagick/gem_make.out
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.4.9... yes
checking for HDRI disabled version of ImageMagick... yes
checking for stdint.h... yes
checking for sys/types.h... yes
checking for wand/MagickWand.h... yes
checking for InitializeMagick() in -lMagickCore... no
checking for InitializeMagick() in -lMagick... no
checking for InitializeMagick() in -lMagick++... no
Can't install RMagick 2.13.1. Can't find the ImageMagick library or one of the dependent libraries. Check the mkmf.log file for more detailed information.
ActiveRecord::RecordInvalid in 'Customer::PaymentSourcesController create should be blank'
Validation failed: Avatar /var/folders/73/206dll4d62q0c5mqhyj_xz_w0000gn/T/stream,32623,217.jpg is not recognized by the 'identify' command., Avatar /var/folders/73/206dll4d62q0c5mqhyj_xz_w0000gn/T/stream,32623,217.jpg is not recognized by the 'identify' command.
checking for Ruby version >= 1.8.5... -------------------- yes
--------------------
find_executable: checking for gcc... -------------------- yes
--------------------
find_executable: checking for Magick-config... -------------------- yes
--------------------
checking for ImageMagick version >= 6.4.9... -------------------- yes
--------------------
checking for HDRI disabled version of ImageMagick... -------------------- yes
--------------------
have_header: checking for stdint.h... -------------------- yes
"gcc -E -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0 -I. -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -fopenmp conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include <stdint.h>
/* end */
--------------------
have_header: checking for sys/types.h... -------------------- yes
"gcc -E -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0 -I. -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -fopenmp conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include <sys/types.h>
/* end */
--------------------
have_header: checking for wand/MagickWand.h... -------------------- yes
"gcc -E -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0 -I. -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -fopenmp conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include <wand/MagickWand.h>
/* end */
--------------------
have_library: checking for InitializeMagick() in -lMagickCore... -------------------- no
"gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0 -I. -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -fopenmp conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L/usr/local/Cellar/imagemagick/6.7.1-1/lib -L/usr/X11/lib -L/usr/local/Cellar/imagemagick/6.7.1-1/lib -lMagickCore -llcms -ltiff -lfreetype -ljpeg -L/usr/X11/lib -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lpthread -lltdl -lruby -lMagickCore -lpthread -ldl "
conftest.c: In function ‘t’:
conftest.c:13: warning: ‘InitializeMagick’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/magick/deprecate.h:318)
ld: library not found for -llcms
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include <assert.h>
2: #include <ctype.h>
3: #include <stdio.h>
4: #include <stdlib.h>
5: #include <math.h>
6: #include <time.h>
7: #include <stdint.h>
8: #include <sys/types.h>
9: #include <wand/MagickWand.h>
10:
11: /*top*/
12: int main() { return 0; }
13: int t() { void ((*volatile p)()); p = (void ((*)()))InitializeMagick; return 0; }
/* end */
"gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0 -I. -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -fopenmp conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L/usr/local/Cellar/imagemagick/6.7.1-1/lib -L/usr/X11/lib -L/usr/local/Cellar/imagemagick/6.7.1-1/lib -lMagickCore -llcms -ltiff -lfreetype -ljpeg -L/usr/X11/lib -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lpthread -lltdl -lruby -lMagickCore -lpthread -ldl "
conftest.c: In function ‘t’:
conftest.c:13: warning: ‘InitializeMagick’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/magick/deprecate.h:318)
conftest.c:13: error: too few arguments to function ‘InitializeMagick’
checked program was:
/* begin */
1: #include <assert.h>
2: #include <ctype.h>
3: #include <stdio.h>
4: #include <stdlib.h>
5: #include <math.h>
6: #include <time.h>
7: #include <stdint.h>
8: #include <sys/types.h>
9: #include <wand/MagickWand.h>
10:
11: /*top*/
12: int main() { return 0; }
13: int t() { InitializeMagick(); return 0; }
/* end */
--------------------
have_library: checking for InitializeMagick() in -lMagick... -------------------- no
"gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0 -I. -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -fopenmp conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L/usr/local/Cellar/imagemagick/6.7.1-1/lib -L/usr/X11/lib -L/usr/local/Cellar/imagemagick/6.7.1-1/lib -lMagickCore -llcms -ltiff -lfreetype -ljpeg -L/usr/X11/lib -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lpthread -lltdl -lruby -lMagick -lpthread -ldl "
conftest.c: In function ‘t’:
conftest.c:13: warning: ‘InitializeMagick’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/magick/deprecate.h:318)
ld: library not found for -llcms
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include <assert.h>
2: #include <ctype.h>
3: #include <stdio.h>
4: #include <stdlib.h>
5: #include <math.h>
6: #include <time.h>
7: #include <stdint.h>
8: #include <sys/types.h>
9: #include <wand/MagickWand.h>
10:
11: /*top*/
12: int main() { return 0; }
13: int t() { void ((*volatile p)()); p = (void ((*)()))InitializeMagick; return 0; }
/* end */
"gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0 -I. -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -fopenmp conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L/usr/local/Cellar/imagemagick/6.7.1-1/lib -L/usr/X11/lib -L/usr/local/Cellar/imagemagick/6.7.1-1/lib -lMagickCore -llcms -ltiff -lfreetype -ljpeg -L/usr/X11/lib -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lpthread -lltdl -lruby -lMagick -lpthread -ldl "
conftest.c: In function ‘t’:
conftest.c:13: warning: ‘InitializeMagick’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/magick/deprecate.h:318)
conftest.c:13: error: too few arguments to function ‘InitializeMagick’
checked program was:
/* begin */
1: #include <assert.h>
2: #include <ctype.h>
3: #include <stdio.h>
4: #include <stdlib.h>
5: #include <math.h>
6: #include <time.h>
7: #include <stdint.h>
8: #include <sys/types.h>
9: #include <wand/MagickWand.h>
10:
11: /*top*/
12: int main() { return 0; }
13: int t() { InitializeMagick(); return 0; }
/* end */
--------------------
have_library: checking for InitializeMagick() in -lMagick++... -------------------- no
"gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0 -I. -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -fopenmp conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L/usr/local/Cellar/imagemagick/6.7.1-1/lib -L/usr/X11/lib -L/usr/local/Cellar/imagemagick/6.7.1-1/lib -lMagickCore -llcms -ltiff -lfreetype -ljpeg -L/usr/X11/lib -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lpthread -lltdl -lruby -lMagick++ -lpthread -ldl "
conftest.c: In function ‘t’:
conftest.c:13: warning: ‘InitializeMagick’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/magick/deprecate.h:318)
ld: library not found for -llcms
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include <assert.h>
2: #include <ctype.h>
3: #include <stdio.h>
4: #include <stdlib.h>
5: #include <math.h>
6: #include <time.h>
7: #include <stdint.h>
8: #include <sys/types.h>
9: #include <wand/MagickWand.h>
10:
11: /*top*/
12: int main() { return 0; }
13: int t() { void ((*volatile p)()); p = (void ((*)()))InitializeMagick; return 0; }
/* end */
"gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0 -I. -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -fopenmp conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L/usr/local/Cellar/imagemagick/6.7.1-1/lib -L/usr/X11/lib -L/usr/local/Cellar/imagemagick/6.7.1-1/lib -lMagickCore -llcms -ltiff -lfreetype -ljpeg -L/usr/X11/lib -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lpthread -lltdl -lruby -lMagick++ -lpthread -ldl "
conftest.c: In function ‘t’:
conftest.c:13: warning: ‘InitializeMagick’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/magick/deprecate.h:318)
conftest.c:13: error: too few arguments to function ‘InitializeMagick’
checked program was:
/* begin */
1: #include <assert.h>
2: #include <ctype.h>
3: #include <stdio.h>
4: #include <stdlib.h>
5: #include <math.h>
6: #include <time.h>
7: #include <stdint.h>
8: #include <sys/types.h>
9: #include <wand/MagickWand.h>
10:
11: /*top*/
12: int main() { return 0; }
13: int t() { InitializeMagick(); return 0; }
/* end */
--------------------
Can't install RMagick 2.13.1. Can't find the ImageMagick library or one of the dependent libraries. Check the mkmf.log file for more detailed information.
Andrey-Mac-BookPro:keen ka8725$ rake spec
(in /Users/ka8725/projects/keen)
rake aborted!
dlopen(/Users/ka8725/projects/keen/vendor/bundle/ruby/1.8/gems/rmagick-2.13.1/lib/RMagick2.bundle, 9): Library not loaded: /usr/local/lib/libMagickCore.5.dylib
Referenced from: /Users/ka8725/projects/keen/vendor/bundle/ruby/1.8/gems/rmagick-2.13.1/lib/RMagick2.bundle
Reason: image not found - /Users/ka8725/projects/keen/vendor/bundle/ruby/1.8/gems/rmagick-2.13.1/lib/RMagick2.bundle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment