在Windows 10上的ubuntu 20.04 WSL上安装rmagick gem



我正在windows 10上的ubuntu 20.04 WSL上安装rmagick gem,我在下面得到了错误

make "DESTDIR="
compiling rmagick.c
compiling rmdraw.c
compiling rmenum.c
compiling rmfill.c
compiling rmilist.c
compiling rmimage.c
rmimage.c: In function ‘Image_gray_q’:
rmimage.c:7552:32: error: ‘IsGrayImage’ undeclared (first use in this function); did you mean ‘DrawImage’?
7552 |     return has_attribute(self, IsGrayImage);
|                                ^~~~~~~~~~~
|                                DrawImage
rmimage.c:7552:32: note: each undeclared identifier is reported only once for each function it appears in
make: *** [Makefile:245: rmimage.o] Error 1
make failed, exit code 2

请帮忙

请尝试安装libMagickWand

sudo apt-get install libmagickwand-dev 

rmagic github问题

似乎可以安装新版本,请尝试7.0.10-33。

原因是早期版本中存在一些混淆的编译标志,有关详细信息,请参阅github.com/rmagick/rmagick/issues/1228

相关内容

  • 没有找到相关文章

最新更新