Build from source not operational
Ricky-Tigg opened this issue ยท 1 comments
Ricky-Tigg commented
v.: 1.4.4 | OS: Fedora. Hello.
$ dnf --installed list golang-bin | sed 1d
golang-bin.x86_64 1.20.1-1.fc38 @fedora
In application
$ cd Downloads && git clone https://github.com/FiloSottile/mkcert && cd mkcert
$ go build -ldflags "-X main.Version=$(git describe --tags)"
$ mkcert -install
bash: mkcert: command not found..
Ricky-Tigg commented
So that was that; the installation instruction was partial.
$ ./mkcert -install
Created a new local CA ๐ฅ
Sudo password:
The local CA is now installed in the system trust store! โก๏ธ
Warning: "certutil" is not available, so the CA can't be automatically installed in Firefox and/or Chrome/Chromium! โ ๏ธ
Install "certutil" with "yum install nss-tools" and re-run "mkcert -install" ๐
$ sudo dnf -qy install nss-tools && ./mkcert -install
The local CA is already installed in the system trust store! ๐
The local CA is now installed in the Firefox and/or Chrome/Chromium trust store (requires browser restart)! ๐ฆ
- A system configuration may have a command language interpreter that does not specify the use of
./
and other supported syntaxes as required in order to execute an executable. However Bash, which is the default Shell installed on a majority of GNU/Linux distributions and other UNIX systems, it is a requirement. - As demonstrated above the instructions lack to inform that installations of golang-bin and nss-tools were pre-requirements.
- "
Install "certutil" with "yum (...)
" | That illustrates a non-updated comment. YUM was replaced by dnf; thus became obsolete.
Here is accordingly a complete commands instruction:
$ sudo dnf -qy install golang-bin nss-tools
$ git clone https://github.com/FiloSottile/mkcert && cd mkcert
$ go build -ldflags "-X main.Version=$(git describe --tags)"
$ ./mkcert -install