V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
eightqueen
V2EX  ›  Rust

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

  •  
  •   eightqueen · 2018-12-03 11:51:58 +08:00 · 3808 次点击
    这是一个创建于 1943 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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 条回复    2019-01-31 00:31:50 +08:00
    sidgwick
        1
    sidgwick  
       2019-01-11 14:59:41 +08:00
    你 rustc 是怎么安装的?
    eightqueen
        2
    eightqueen  
    OP
       2019-01-31 00:31:50 +08:00
    @sidgwick mac 升级到最新
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2815 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 13:36 · PVG 21:36 · LAX 06:36 · JFK 09:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.