Skip to content

Commit 936bced

Browse files
authored
readme: improve the sections about the installation of dependencies (#17336)
1 parent 7f5cba1 commit 936bced

File tree

1 file changed

+17
-28
lines changed

1 file changed

+17
-28
lines changed

README.md

Lines changed: 17 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,12 @@ v run tetris/tetris.v
228228

229229
In order to build Tetris or 2048 (or anything else using `sokol` or `gg` graphics modules),
230230
you will need additional development libraries for your system.
231-
For some Linux distros (Debian/Ubuntu based), you need to run this:
232-
`sudo apt install libxi-dev libxcursor-dev`.
233-
For Fedora/RH/CentOS, you need to run this:
234-
`sudo dnf install libXcursor-devel libXi-devel libX11-devel libglvnd-devel` .
235-
For NixOS, add these packages to your `environment.systemPackages`:
236-
`xorg.libX11.dev xorg.libXcursor.dev xorg.libXi.dev libGL.dev`
231+
232+
| System | Installation method |
233+
|---------------------|----------------------------------------------------------------------------------------------------|
234+
| Debian/Ubuntu based | `sudo apt install libxi-dev libxcursor-dev` |
235+
| Fedora/RH/CentOS | `sudo dnf install libXcursor-devel libXi-devel libX11-devel libglvnd-devel` |
236+
| NixOS | add `xorg.libX11.dev xorg.libXcursor.dev xorg.libXi.dev libGL.dev` to `environment.systemPackages` |
237237

238238
## V net.http, net.websocket, `v install`
239239

@@ -244,19 +244,12 @@ use the `-d use_openssl` switch when you compile.
244244

245245
To install OpenSSL on non-Windows systems:
246246

247-
```bash
248-
macOS:
249-
brew install openssl
250-
251-
Debian/Ubuntu:
252-
sudo apt install libssl-dev
253-
254-
Arch/Manjaro:
255-
openssl is installed by default
256-
257-
Fedora:
258-
sudo dnf install openssl-devel
259-
```
247+
| System | Installation command |
248+
|---------------------|----------------------------------|
249+
| macOS | `brew install openssl` |
250+
| Debian/Ubuntu based | `sudo apt install libssl-dev` |
251+
| Arch/Manjaro | openssl is installed by default |
252+
| Fedora/CentOS/RH | `sudo dnf install openssl-devel` |
260253

261254
On Windows, OpenSSL is simply hard to get working correctly. The instructions
262255
[here](https://tecadmin.net/install-openssl-on-windows/) may (or may not) help.
@@ -267,15 +260,11 @@ V's `sync` module and channel implementation uses libatomic.
267260
It is most likely already installed on your system, but if not,
268261
you can install it, by doing the following:
269262

270-
```bash
271-
MacOS: already installed
272-
273-
Debian/Ubuntu:
274-
sudo apt install libatomic1
275-
276-
Fedora/CentOS/RH:
277-
sudo dnf install libatomic-static
278-
```
263+
| System | Installation command |
264+
|---------------------|-------------------------------------|
265+
| macOS | already installed |
266+
| Debian/Ubuntu based | `sudo apt install libatomic1` |
267+
| Fedora/CentOS/RH | `sudo dnf install libatomic-static` |
279268

280269
## V UI
281270

0 commit comments

Comments
 (0)