简体   繁体   English

MacOS安装LLVM

[英]MacOS installation LLVM

I'm new with llvm and I have a problem with it. 我是llvm的新手,但我有问题。 I have installed it with command brew install llvm 我已经用命令brew install llvm安装了它

after I did this echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.bash_profile 在我执行完此操作后, echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.bash_profile

After this I wrote hello world example which is located in /Documents/llvm_exmaple/helloworld.ll and this .ll and when I typed lli helloworld.ll I got message like -bash: lli: command not found . 在此之后,我写hello world ,位于例如/Documents/llvm_exmaple/helloworld.ll.ll ,当我输入lli helloworld.ll我得到的消息像-bash: lli: command not found

What should I write to make it work? 我应该写些什么才能使其正常工作? By the way other commands don't work too. 顺便说一句,其他命令也不起作用。 Please help me. 请帮我。

在此命令echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.bash_profile之后,我得到了它,您应该编写此source ~/.bash_profile ,然后一切都将正常工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM