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

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

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

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


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

查看所有标签

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

Building Websites with Joomla!

Building Websites with Joomla!

H Graf / Packt Publishing / 2006-01-20 / USD 44.99

This book is a fast paced tutorial to creating a website using Joomla!. If you've never used Joomla!, or even any web content management system before, then this book will walk you through each step i......一起来看看 《Building Websites with Joomla!》 这本书的介绍吧!

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

在线 XML 格式化压缩工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具