Skip to content

Commit

Permalink
doc: Fix grammar on installing.md
Browse files Browse the repository at this point in the history
Signed-off-by: HoJeong Go <seia@outlook.kr>
  • Loading branch information
seia-soto committed Dec 1, 2023
1 parent 3f6cc70 commit 7568bd9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/installing.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,15 +227,15 @@ If `newuidmap/newgidmap` tools are present on your system and `/etc/subuid`, `et

### Other distros: AlpineLinux

The overall procedure follows the Ubuntu's one.
You can get development resources required to build Incus on your AlpineLinux via following command:
The overall procedure follows the Ubuntu instruction above.
You can get the development resources required to build Incus on your AlpineLinux via the following command:

```sh
apk add acl-dev autoconf automake eudev-dev gettext-dev go intltool libcap-dev libtool libuv-dev linux-headers lz4-dev tcl-dev sqlite-dev lxc-dev make xz
```

To take advantage of all the necessary features of Incus, you must install additional packages.
You can reference the list of packages you need to use specific function from [LXD package definition in AlpineLinux aports repository](https://gitlab.alpinelinux.org/alpine/infra/aports/-/blob/master/community/lxd/APKBUILD).
You can reference the list of packages you need to use specific functions from [LXD package definition in AlpineLinux aports repository](https://gitlab.alpinelinux.org/alpine/infra/aports/-/blob/master/community/lxd/APKBUILD).
Also you can find the package you need with the binary name from [AlpineLinux packages contents filter](https://pkgs.alpinelinux.org/contents).

```sh
Expand All @@ -246,7 +246,7 @@ apk add acl attr ca-certificates cgmanager dbus dnsmasq lxc iproute2 iptables ne
apk add qemu-system-x86_64 qemu-chardev-spice qemu-hw-usb-redirect qemu-hw-display-virtio-vga qemu-img qemu-ui-spice-core ovmf sgdisk util-linux-misc virtiofsd
```

After preparing the source from release tarball or git repository, you need follow the below steps to avoid known issues during build time:
After preparing the source from a release tarball or git repository, you need follow the below steps to avoid known issues during build time:

```sh
# cc1: error: /usr/local/include: No such file or directory [-Werror=missing-include-dirs]
Expand All @@ -263,12 +263,12 @@ export CGO_CPPFLAGS="-I/usr/include"
make
```

You can continue to `From source: Install` and `Machine setup` section to finalise setting up your Incus instance.
You can continue to `From source: Install` and `Machine setup` sections to finalize setting up your Incus instance.
If you still encounter issues, the following details may help you:

#### `make`: gettext.cgo2.c:(.text+0x2b9): undefined reference to `libintl_gettext'

If you didn't installed `libintl` from package manager, the location of required library and header file can be different.
If you didn't install `libintl` from the package manager, the location of the required library and header file can be different.
You can find the default location of `libintl.h` and `libintl.so` file from [AlpineLinux packages contents filter](https://pkgs.alpinelinux.org/contents?file=libintl*&path=&name=gettext-dev&branch=edge).
Also according to [GNU gettext FAQ: integrating undefined](https://www.gnu.org/software/gettext/FAQ.html#integrating_undefined), the `-lintl` flag should be located at the near end of the link command line.

Expand Down

0 comments on commit 7568bd9

Please sign in to comment.