rust构建actix-web出现error: failed to run custom build command for `miniz-sys v0.1.11`

栏目: 编程语言 · Rust · 发布时间: 5年前

内容简介:版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/lastsweetop/article/details/89175602

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/lastsweetop/article/details/89175602

问题描述

在初次使用actix-web时就遇到个大坑,cargo build或者cargo run时

报错

error: failed to run custom build command for `miniz-sys v0.1.11`
process didn't exit successfully: `/Users/apple/Documents/mydream/rust/my-actix-web/target/debug/build/miniz-sys-f1a7e649d83ac816/build-script-build` (exit code: 101)

还有一段

error: failed to run custom build command for `brotli-sys v0.3.2`
process didn't exit successfully: `/Users/apple/Documents/mydream/rust/my-actix-web/target/debug/build/brotli-sys-7f2d0418ae4fe23f/build-script-build` (exit code: 101)

原因分析

主要是Mac OS升级到Mojave之后cctools版本不对引起的

问题解决

需要由855升级到921

但升级到时候就发现port也无法使用了,因此先现在对应的macport版本

Install MacPorts for macOS Mojave v10.14

执行更新

sudo port -v selfupdate

重新安装cctools

sudo port install cctools

然后再构建就会发现问题解决了


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Weaving the Web

Weaving the Web

Tim Berners-Lee / Harper Paperbacks / 2000-11-01 / USD 15.00

Named one of the greatest minds of the 20th century by Time , Tim Berners-Lee is responsible for one of that century's most important advancements: the world wide web. Now, this low-profile genius-wh......一起来看看 《Weaving the Web》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换