eightqueen
V2EX  ›  Rust

rustc 报错,我连个 hello world 都写不出来

  •  
  •   eightqueen · Dec 3, 2018 · 4796 views
    This topic created in 2726 days ago, the information mentioned may be changed or developed.
    1. 代码

      fn main() {
          println!("Hello world!");
      }
      
    2. rustc main.rs 报错 error: couldn't load codegen backend "/usr/local/lib/rustlib/i686-apple-darwin/codegen-backends/librustc_codegen_llvm-llvm.dylib": "dlsym(RTLD_DEFAULT, CFURLConnectionCreateWithProperties): symbol not found"

    3. 系统:MacOS,rustc 1.30.1,gcc:Apple LLVM version 8.0.0 (clang-800.0.42.1)

    2 replies    2019-01-31 00:31:50 +08:00
    sidgwick
        1
    sidgwick  
       Jan 11, 2019
    你 rustc 是怎么安装的?
    eightqueen
        2
    eightqueen  
    OP
       Jan 31, 2019
    @sidgwick mac 升级到最新
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3364 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 00:19 · PVG 08:19 · LAX 17:19 · JFK 20:19
    ♥ Do have faith in what you're doing.