在 ubuntu 上安装 rmagick gem 20.04 在 Windows 10 上安装 WSL
installing rmagick gem on ubuntu 20.04 WSL on Windows 10
我在 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
安装新版本似乎可以,试试 7.0.10-33。
原因是在早期版本中有一些混淆的编译标志,详情请参阅github。com/rmagick/rmagick/issues/1228
我在 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
安装新版本似乎可以,试试 7.0.10-33。
原因是在早期版本中有一些混淆的编译标志,详情请参阅github。com/rmagick/rmagick/issues/1228