Skip to content

Commit 042d8fe

Browse files
authored
Merge pull request #3343 from kairveeehh/docss
separated binary installation
2 parents f6e535f + fee6a21 commit 042d8fe

File tree

2 files changed

+72
-30
lines changed

2 files changed

+72
-30
lines changed

website/content/en/docs/installation/_index.md

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -47,33 +47,4 @@ VERSION=$(curl -fsSL https://api.github.com/repos/lima-vm/lima/releases/latest |
4747
curl -fsSL "https://github.com/lima-vm/lima/releases/download/${VERSION}/lima-${VERSION:1}-$(uname -s)-$(uname -m).tar.gz" | tar Cxzvm /usr/local
4848
```
4949
{{% /tab %}}
50-
51-
{{% tab header="Source" %}}
52-
The source code can be found at <https://github.com/lima-vm/lima.git>
53-
54-
```bash
55-
git clone https://github.com/lima-vm/lima.git
56-
cd lima
57-
make
58-
make install
59-
```
60-
61-
The installation directory (`$PREFIX`) defaults to `/usr/local`.
62-
63-
Run `make help-variables` to show other Makefile variables.
64-
65-
#### Advanced configuration with Kconfig tools
66-
(This step is not needed for most users)
67-
68-
To change the build configuration such as the guest architectures, run `make config` or `make menuconfig`.
69-
70-
This requires kconfig tools installed, it is also possible to edit `.config`.
71-
The default configuration can be found in the file `config.mk` (make syntax).
72-
73-
The tools are available as either "kconfig-frontends" or "kbuild-standalone".
74-
There is one `conf` for the text, and one `mconf` for the menu interface.
75-
76-
A python implementation is available at <https://pypi.org/project/kconfiglib>.
77-
It can be installed with `pip install --user kconfiglib`, including `guiconfig`.
78-
{{% /tab %}}
79-
{{< /tabpane >}}
50+
{{< /tabpane >}}
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
title: Source Installation
3+
weight: 30
4+
---
5+
6+
## Installing from Source
7+
8+
If you prefer to build Lima from source, follow these steps:
9+
10+
### Prerequisites
11+
Ensure you have the following dependencies installed:
12+
- `git`
13+
- `go`
14+
- `make`
15+
16+
### Build and Install
17+
Run the following commands:
18+
19+
```bash
20+
git clone https://github.com/lima-vm/lima
21+
cd lima
22+
make
23+
sudo make install
24+
```
25+
26+
> **Note:** `sudo make install` is required unless you have write permissions for `/usr/local`. Otherwise, installation may fail.
27+
28+
### Alternative Installation (Without Sudo)
29+
If you prefer installing Lima in your home directory, configure the `PREFIX` and `PATH` as follows:
30+
31+
```bash
32+
make PREFIX=$HOME/.local install
33+
export PATH=$HOME/.local/bin:$PATH
34+
```
35+
36+
## Packaging Lima for Distribution
37+
After building Lima from source, you may want to package it for installation on other machines:
38+
39+
```bash
40+
cd _output
41+
# Create a compressed archive
42+
tar czf lima-package.tar.gz *
43+
```
44+
45+
This package can then be transferred and installed on the target system.
46+
47+
## Advanced Configuration with Kconfig Tools
48+
(This step is not needed for most users)
49+
50+
To change the build configuration such as the guest architectures, run:
51+
52+
```bash
53+
make config # For text-based configuration
54+
make menuconfig # For a menu-based configuration
55+
```
56+
57+
This requires Kconfig tools to be installed. It is also possible to manually edit `.config`. The default configuration can be found in `config.mk` (which follows make syntax).
58+
59+
The tools are available as either `kconfig-frontends` or `kbuild-standalone`. There are two interfaces:
60+
- `conf` for text-based configuration.
61+
- `mconf` for a menu-driven interface.
62+
63+
A Python implementation is available at [Kconfiglib](https://pypi.org/project/kconfiglib). It can be installed with:
64+
65+
```bash
66+
pip install --user kconfiglib
67+
```
68+
69+
This also includes support for `guiconfig` (GUI-based configuration).
70+
71+

0 commit comments

Comments
 (0)