1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

readme: improve the sections about the installation of dependencies (#17336)

This commit is contained in:
Artem Yurchenko 2023-02-16 11:25:51 +01:00 committed by GitHub
parent 7f5cba1a38
commit 936bced29e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -228,12 +228,12 @@ v run tetris/tetris.v
In order to build Tetris or 2048 (or anything else using `sokol` or `gg` graphics modules), In order to build Tetris or 2048 (or anything else using `sokol` or `gg` graphics modules),
you will need additional development libraries for your system. you will need additional development libraries for your system.
For some Linux distros (Debian/Ubuntu based), you need to run this:
`sudo apt install libxi-dev libxcursor-dev`. | System | Installation method |
For Fedora/RH/CentOS, you need to run this: |---------------------|----------------------------------------------------------------------------------------------------|
`sudo dnf install libXcursor-devel libXi-devel libX11-devel libglvnd-devel` . | Debian/Ubuntu based | `sudo apt install libxi-dev libxcursor-dev` |
For NixOS, add these packages to your `environment.systemPackages`: | Fedora/RH/CentOS | `sudo dnf install libXcursor-devel libXi-devel libX11-devel libglvnd-devel` |
`xorg.libX11.dev xorg.libXcursor.dev xorg.libXi.dev libGL.dev` | NixOS | add `xorg.libX11.dev xorg.libXcursor.dev xorg.libXi.dev libGL.dev` to `environment.systemPackages` |
## V net.http, net.websocket, `v install` ## V net.http, net.websocket, `v install`
@ -244,19 +244,12 @@ use the `-d use_openssl` switch when you compile.
To install OpenSSL on non-Windows systems: To install OpenSSL on non-Windows systems:
```bash | System | Installation command |
macOS: |---------------------|----------------------------------|
brew install openssl | macOS | `brew install openssl` |
| Debian/Ubuntu based | `sudo apt install libssl-dev` |
Debian/Ubuntu: | Arch/Manjaro | openssl is installed by default |
sudo apt install libssl-dev | Fedora/CentOS/RH | `sudo dnf install openssl-devel` |
Arch/Manjaro:
openssl is installed by default
Fedora:
sudo dnf install openssl-devel
```
On Windows, OpenSSL is simply hard to get working correctly. The instructions On Windows, OpenSSL is simply hard to get working correctly. The instructions
[here](https://tecadmin.net/install-openssl-on-windows/) may (or may not) help. [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.
It is most likely already installed on your system, but if not, It is most likely already installed on your system, but if not,
you can install it, by doing the following: you can install it, by doing the following:
```bash | System | Installation command |
MacOS: already installed |---------------------|-------------------------------------|
| macOS | already installed |
Debian/Ubuntu: | Debian/Ubuntu based | `sudo apt install libatomic1` |
sudo apt install libatomic1 | Fedora/CentOS/RH | `sudo dnf install libatomic-static` |
Fedora/CentOS/RH:
sudo dnf install libatomic-static
```
## V UI ## V UI