Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/rust/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Rust gmp mpfr系统未能建立在macOS catalina 10.15.6上_Rust_Mpfr - Fatal编程技术网

Rust gmp mpfr系统未能建立在macOS catalina 10.15.6上

Rust gmp mpfr系统未能建立在macOS catalina 10.15.6上,rust,mpfr,Rust,Mpfr,我在macOS catalina 10.15.6上。我试图使用生锈的板条箱,特别是使用MPFR的浮动库。由于分段错误,我无法编译代码。下面是精确的错误和一个小的示例程序。有人知道有没有办法解决这个问题吗 一个使用rug::Float的小程序 use rug::Float;

我在macOS catalina 10.15.6上。我试图使用生锈的板条箱,特别是使用MPFR的浮动库。由于分段错误,我无法编译代码。下面是精确的错误和一个小的示例程序。有人知道有没有办法解决这个问题吗

一个使用rug::Float的小程序

use rug::Float;                                                                 
                                                                                
fn main() {                                                                                                                        
        let valid = Float::parse("12.25e-4");                                   
        println!("{}", Float::with_val(32, valid.unwrap()));                    
}      
当我尝试使用
货物运行
运行它时,gmp mpfr系统的构建有一个分段错误。我看到:

libtool: warning: assuming '-no-fast-install' instead
../../../gmp-src/test-driver: line 107:  4825 Segmentation fault: 11  "$@" > $log_file 2>&1
make[5]: *** [test-suite.log] Error 1
make[4]: *** [check-TESTS] Error 2
make[3]: *** [check-am] Error 2
make[2]: *** [check-recursive] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 2
thread 'main' panicked at 'Program failed with code 2: "make" "-j" "8" "check"', /Users/sample/.cargo/registry/src/github.com-1ecc6299db9ec823/gmp-mpfr-sys-1.4.0/build.rs:1146:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace