ruby-on-rails - 在 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
请有任何帮助
解决方案
似乎安装更新版本会起作用,请尝试 7.0.10-33。
原因是早期版本中存在一些混淆的编译标志,详情请参见 github.com/rmagick/rmagick/issues/1228
推荐阅读
- css - 如何以跨浏览器的方式在 CSS 中指定日文字体?
- python - 在线“Zybooks”编码中的 Python EOFerror
- python - 接收空数据帧以解决纸浆优化问题
- oracle - 我可以为 ASM 创建 Oracle 数据库链接吗?
- javascript - 未捕获的类型错误:无法在 Measure._deleteTip 处读取 null 的属性“parentNode”
- python - 如何为 LSTM 实现 Keras 自定义损失函数
- javascript - 在反应中获取数据返回一个空数组
- c# - 如何在 C# 中创建 IPage 对象
- java - 从 Android Studio 发送 ADB 命令
- java - 手机蓝牙服务无法保持蓝牙