Rust llvm系统-没有';找不到可用的系统级LLVM
我正在努力学习LLVM,用Rust制作一种编程语言。我使用的是环绕LLVMAPI的Rust llvm系统-没有';找不到可用的系统级LLVM,rust,llvm,Rust,Llvm,我正在努力学习LLVM,用Rust制作一种编程语言。我使用的是环绕LLVMAPI的LLVMsys板条箱 我已安装LLVM:LLVM-8.0.0-win64 我在cargo.toml中的依赖项 [dependencies] llvm-sys = "80.1.1" 当我运行cargo run时,我得到以下错误: Updating crates.io index Compiling memchr v2.2.1 Compiling lazy_static v1.4.0 Com
LLVMsys
板条箱
我已安装LLVM:LLVM-8.0.0-win64
我在cargo.toml中的依赖项
[dependencies]
llvm-sys = "80.1.1"
当我运行cargo run
时,我得到以下错误:
Updating crates.io index
Compiling memchr v2.2.1
Compiling lazy_static v1.4.0
Compiling regex-syntax v0.6.12
Compiling semver-parser v0.7.0
Compiling libc v0.2.65
Compiling cc v1.0.47
Compiling thread_local v0.3.6
Compiling semver v0.9.0
Compiling aho-corasick v0.7.6
Compiling regex v1.3.1
Compiling llvm-sys v80.1.1
error: failed to run custom build command for `llvm-sys v80.1.1`
Caused by:
process didn't exit successfully: `C:\Users\Name\Desktop\Carbon\carbon-lang\target\debug\build\llvm-sys-ed5d351b1ae6a41b\build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-env-changed=LLVM_SYS_80_PREFIX
cargo:rerun-if-env-changed=LLVM_SYS_80_IGNORE_BLACKLIST
cargo:rerun-if-env-changed=LLVM_SYS_80_STRICT_VERSIONING
cargo:rerun-if-env-changed=LLVM_SYS_80_NO_CLEAN_CFLAGS
cargo:rerun-if-env-changed=LLVM_SYS_80_USE_DEBUG_MSVCRT
cargo:rerun-if-env-changed=LLVM_SYS_80_FFI_WORKAROUND
Didn't find usable system-wide LLVM.
--- stderr
thread 'main' panicked at 'Failed to execute "C:\\Program Files\\LLVM\\bin\\llvm-config": Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." }', src\libcore\result.rs:1165:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
但是我已经将LLVM\u SYS\u 80\u前缀设置为C:\Program Files\LLVM
,这就是bin文件夹所在的位置
是否应单独安装llvm config
文件?我到处都找不到
仅供参考:我使用的是Windows 10
谢谢你的帮助 LLVM没有附带名为LLVM-config.exe的组件,但我不知道如何绕过它。LLVM-config是一个开发人员端工具,它没有附带二进制文件。您需要从源代码构建LLVM。如何从源代码构建LLVM?