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

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

内容简介:版权声明:本文为博主原创文章,未经博主允许不得转载。 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

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


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

查看所有标签

猜你喜欢:

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

Computer Age Statistical Inference

Computer Age Statistical Inference

Bradley Efron、Trevor Hastie / Cambridge University Press / 2016-7-21 / USD 74.99

The twenty-first century has seen a breathtaking expansion of statistical methodology, both in scope and in influence. 'Big data', 'data science', and 'machine learning' have become familiar terms in ......一起来看看 《Computer Age Statistical Inference》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试