编译llvm的时候:collect2:ld terminated with signal 9(或11)

1 Creating a file for 1024 MB size you want:

We will create a /mnt/1024MB.swap swap file and set the permissions so that users cannot read it directly.

[root@localhost mnt]# dd if=/dev/zero of=1024MB.swap bs=1024 count=1024000

Linux增加swap空间大小解决编译错误collect2:ld terminated with signal 9(或11)

chmod 600 /mnt/1024MB.swap

2 Formatting that file to create a swapping device:

mkswap /mnt/1024MB.swap

3 Adding the swap to the running system:

 swapon /mnt/1024MB.swap

The additional swap is now available and can be seen by "cat /proc/meminfo or swapon"

Linux增加swap空间大小解决编译错误collect2:ld terminated with signal 9(或11)

4 Making the change permanent:

Edit the /etc/fstab:

vim /etc/fstab

Add this line at the end of the file:

/mnt/1024MB.swap swap swap sw 0 0

Save. After the next reboot the swap will be used automatically.

 

相关文章:

  • 2022-12-23
  • 2022-01-12
  • 2022-01-19
  • 2021-10-18
  • 2021-10-06
  • 2021-09-07
  • 2021-07-31
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
  • 2022-01-20
  • 2021-12-03
  • 2021-08-02
相关资源
相似解决方案