Ubtuntu安装mysql-devel

在阿里主机云安装 mysql-devel ,没找到包,便在网上下载一个 ·MySQL-devel-5.6.14-1.el6.x86_64.rpm RPM包。

但是在用 rpm -i MySQL-devel-5.6.14-1.el6.x86_64.rpm 安装时提示:

rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
error: Failed dependencies:
        /bin/sh is needed by MySQL-devel-5.6.14-1.el6.x86_64

原因是rpm是红帽的包需要Alien 转换包格式。

apt-get install alien 安装 Alien

用下面命令转换安装

alien MySQL-devel-5.6.14-1.el6.x86_64.rpm 
dpkg -i mysql-devel_5.6.14-2_amd64.deb 

安装成功:

apt list |grep mysql-devel
mysql-devel/now 5.6.14-2 amd64 [installed,local]

你可能感兴趣的:(linux)