Colcon build --symlink-install --parallel-workers 1 error

ubuntu@ubuntu:~/turtlebot3_ws/src$ colcon build
Starting >>> turtlebot3_description
Starting >>> turtlebot3_node
Starting >>> turtlebot3_example
Starting >>> turtlebot3_teleop
Finished <<< turtlebot3_description [3.93s]
Starting >>> ld08_driver
Finished <<< turtlebot3_example [9.46s]
Finished <<< turtlebot3_teleop [9.48s]
[31.7s] [3/7 complete] [2 ongoing] [turtlebot3_node:build 28% - 29.6s] …

여기서 빌드가 안됨

 git clone -b humble https://github.com/ROBOTIS-GIT/turtlebot3.git
$ git clone -b humble https://github.com/ROBOTIS-GIT/ld08_driver.git

github 문제가 있는듯 함 빠른 수정과 답변 부탁

Hello,

This issue seems to be caused by insufficient memory on the Raspberry Pi. Please follow the steps below to set up swap memory using dphys-swapfile and try again:


Steps to Set Up Swap Memory

  1. Install dphys-swapfile
    Install the required package using the following command:
sudo apt update
sudo apt install dphys-swapfile
  1. Configure Swap File Size
    Open the configuration file to set the swap file size:
sudo nano /etc/dphys-swapfile

Modify the CONF_SWAPSIZE parameter to the desired size (in MB).

CONF_SWAPSIZE=2048
  1. Apply the Changes and Enable Swap
    Apply the new settings and activate the swap file:
sudo dphys-swapfile setup
sudo dphys-swapfile swapon
  1. Verify Swap Memory
    Use the following command to ensure the swap memory is correctly configured:
free -h

Try these steps and see if the issue is resolved. If the problem persists or you encounter any other issues, feel free to let us know!


이 문제는 라즈베리파이의 메모리 부족으로 인해 발생한 것으로 보입니다. 아래 단계에 따라 dphys-swapfile을 사용해 스왑 메모리를 설정한 후 다시 시도해 보세요.


스왑 메모리 설정 방법

  1. dphys-swapfile 설치
    다음 명령어를 사용하여 필요한 패키지를 설치합니다:
sudo apt update
sudo apt install dphys-swapfile
  1. 스왑 파일 크기 설정
    스왑 파일 크기를 설정하려면 다음 파일을 엽니다:
sudo nano /etc/dphys-swapfile

CONF_SWAPSIZE 매개변수를 원하는 크기(MB 단위)로 수정합니다.

CONF_SWAPSIZE=2048
  1. 설정 적용 및 스왑 활성화
    설정을 적용하고 스왑 파일을 활성화합니다:
sudo dphys-swapfile setup
sudo dphys-swapfile swapon
  1. 스왑 메모리 확인
    아래 명령어를 사용하여 스왑 메모리가 제대로 설정되었는지 확인하세요:
free -h

위 단계를 시도해 보시고, 문제가 해결되지 않거나 다른 문제가 발생하면 언제든 말씀해 주세요!