vlang

Can I install vlang in Mac OS?


V is getting more and more interesting to me, and I'd like to play with it in MacOS. I'm so used to the make/make install paradigm, so naturally after:

xcode-select --install
git clone https://github.com/vlang/v
cd v
make

I did:

make install

and got:

Please use `sudo v symlink` instead.

So I did:

sudo v symlink

and got:

V panic: symlink doesn't exist

I'm feeling very stupid. What to do? Thanks super in advance 😊


Solution

  • For those who may be running into this problem, here are my notes around the fix:

    xcode-select --install
    git clone https://github.com/vlang/v
    cd v
    make
    sudo ./v symlink
    Get the Visual Studio plugin with
    https://marketplace.visualstudio.com/items?itemName=0x9ef.vscode-vlang