Ubuntu 16.04版本上安装make 3.8.1

Ubuntu 16.40 默认make的版本是4.1,部分编译需要make 3.8.1或3.8.2,需要降级

安装步骤:

使用which make 查看当前make安装的路径,ubuntu 16.04默认安装路径为/usr/bin/mak

复制代码
/usr/bin/make

从网址下载一个ftp://ftp.gnu.org/gnu/make

下载的版本 make-3.81.tar.gz ,解压 tar zxvf make-3.81.tar.gz 获得文件夹make-3.81

找到解压的文件make-3.8.1/glob/glob.c,添加一行代码 #define __alloca alloc

复制代码
#define __alloca alloca               //添加代码
#if defined _AIX && !defined __GNUC__
#pragma alloca
#endif

进入到make-3.81执行以下指令

复制代码
./configure --prefix=/usr 
sudo make 
sudo make install
相关推荐
hujun861012 小时前
Ubuntu安装无线网卡
linux
Johny_Zhao12 小时前
CentOS Stream 8 高可用 Kuboard 部署方案
linux·网络·python·网络安全·docker·信息安全·kubernetes·云计算·shell·yum源·系统运维·kuboard
Roc-xb14 小时前
/etc/profile.d/conda.sh: No such file or directory : numeric argument required
python·ubuntu·conda
卖猪肉的痴汉14 小时前
1.1 Linux 编译FFmpeg 4.4.1
linux·ffmpeg
哲讯智能科技14 小时前
苏州SAP代理商:哲讯科技助力企业数字化转型
大数据·运维·人工智能
十五年专注C++开发14 小时前
Qt .pro配置gcc相关命令(三):-W1、-L、-rpath和-rpath-link
linux·运维·c++·qt·cmake·跨平台编译
qq_6285157615 小时前
Centos与RockLinux设置静态ip
linux·运维·centos
程序员老乔15 小时前
【Dify系列】【一】【安装与部署】【ubuntu22.04安装docker部署dify1.4.2】
运维·docker·容器
程序猿小D16 小时前
第27节 Node.js Buffer
linux·开发语言·vscode·node.js·c#·编辑器·vim
沧浪之水1201013716 小时前
linux常用命令
linux·运维·服务器