blob: 567dcb2da28fc93c2d28c4fa32370cd738b2d8c0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
---
layout: post
title: there is NOT at least X GiB RAM
category: GNU/Linux
tags:
- gentoo
---
Recently, while compiling latest Rust version I came across a problem on my very
old Macbook where `emerge` complained about not enough RAM to compile Rust.
The `check-reqs_pkg_setup` from `check-reqs.eclass` takes care of this check:
```bash
...
pre_build_checks() {
CHECKREQS_DISK_BUILD="7G"
CHECKREQS_MEMORY="4G"
...
check-reqs_pkg_setup
}
```
If you don't have enough memory, the quick and dirty solution is to add enough
swap and run `emerge` again with `${I_KNOW_WHAT_I_AM_DOING}` set.
```
fallocate -l 8G /mnt/swap.swap
mkswap /mnt/swap.swap
swapon /mnt/swap.swap
chmod 600 /mnt/swap.swap
I_KNOW_WHAT_I_AM_DOING=1 emerge -1 rust
```
|