Update README.md

pull/345/head
Alex Medvednikov 2019-06-22 20:47:08 +02:00 committed by GitHub
parent 268c037e41
commit ea7bbd52c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 12 deletions

View File

@ -53,7 +53,7 @@ The rest of the directories are vlib modules: `builtin/` (strings, arrays, maps)
### Linux and macOS ### Linux and macOS
```bash ```bash
cd ~ # You can use any directory mkdir -p ~/code && cd ~/code # You can use any directory
git clone https://github.com/vlang/v git clone https://github.com/vlang/v
cd v/compiler cd v/compiler
wget https://vlang.io/v.c # Download the V compiler's source translated to C wget https://vlang.io/v.c # Download the V compiler's source translated to C
@ -66,7 +66,7 @@ That's it! Now you have a V executable at `~/v/compiler/v`.
You can create a symlink so that it's globally available: You can create a symlink so that it's globally available:
``` ```
sudo ln -s /home/alex/v/compiler/v /usr/local/bin/v sudo ln -s /$HOME/v/compiler/v /usr/local/bin/v
``` ```
### Windows ### Windows
@ -75,16 +75,7 @@ V works great on Windows Subsystem for Linux. The instructions are the same as a
If you want to build v.exe on Windows without WSL, you will need Visual Studio. Microsoft doesn't make it easy for developers. Mingw-w64 could suffice, but if you plan to develop UI and graphical apps, VS is your only option. If you want to build v.exe on Windows without WSL, you will need Visual Studio. Microsoft doesn't make it easy for developers. Mingw-w64 could suffice, but if you plan to develop UI and graphical apps, VS is your only option.
If you don't have it installed, download Build Tools for Visual Studio: https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019 V temporarily can't be compiled with Visual Studio. This will be fixed asap.
```
git clone https://github.com/vlang/v
cd v/compiler
wget https://vlang.io/v.c
cl v.c /out:v.exe
v.exe -o v.exe .
```
### Testing ### Testing