eightqueen
V2EX  ›  Rust

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

  •  
  •   eightqueen · Dec 3, 2018 · 5272 views
    This topic created in 2922 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
    sidgwick
    Jan 11, 2019
    1
    你 rustc 是怎么安装的?
    eightqueen
    eightqueen
    OP
    Jan 31, 2019
    2
    @sidgwick mac 升级到最新
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2344 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 13:42 · PVG 21:42 · LAX 05:42 · JFK 08:42
    ♥ Do have faith in what you're doing.