Linux下升级安装ImageMagick

服务器系统为 Centos

1.删除旧版本

/usr/bin/convert 是 ImageMagick 工具集中 convert 命令的可执行文件

复制代码
#确定已安装版本
convert  --version

# 对于基于RPM的系统,如Red Hat、CentOS
rpm -qf /usr/bin/convert  

#根据返回的版本信息,卸载(CentOS)
sudo rpm -e --nodeps ImageMagick-6.7.8.9-16.el7_6.x86_64
#或者
sudo yum remove ImageMagick-6.7.8.9-16.el7_6.x86_64

2.安装新版本

可以直接按照官网的教程安装,https://imagemagick.org/script/download.php

如果发现缺少很多依赖,可以直接从源码编译安装。

使用源码直接编译,下载地址https://imagemagick.org/script/install-source.php

复制代码
#解压缩
tar -xvf ImageMagick-x.x.x.tar.xz
cd ImageMagick-x.x.x
#配置、编译与安装
./configure --prefix=/usr/local/imagemagick # 可以指定自定义安装路径
make
sudo make install
#配置环境变量
echo 'export PATH="/usr/local/imagemagick/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
相关推荐
2023自学中1 天前
imx6ull 开发板, mame 模拟器,运行游戏 测试
linux·游戏·嵌入式·开发板
是个西兰花1 天前
Linux:进程信号
linux·运维·服务器
CS创新实验室1 天前
从“业余爱好”到数字基石:Linux 发展史及带给技术人的成长启示
linux·运维·服务器
Biomamba生信基地1 天前
FindNeighbors()函数报错object ‘CsparseMatrix_validate’ not found
linux·运维·服务器·生物信息学
orion573 天前
Missing Semester Class1:course overview and introduction of shell
linux
用户120487221613 天前
Linux驱动编译与加载
linux·嵌入式
用户805533698033 天前
Input 子系统架构:Core、Handler、Driver 三层是怎么协作的
linux·嵌入式
用户805533698033 天前
RK-Forge外设系列开篇 - 把板子从「能启动」变成「能用」:Ethernet/SPI/MMC 三个纯接线外设
linux·github·嵌入式
七歌杜金房4 天前
我终于又有了自己的 Linux 电脑
linux·debian·mac
tntxia5 天前
linux curl命令详解_curl详解
linux