View
리눅스에 Ruby를 다운받다가 다음과 같은 에러가 발생했다.
```
BUILD FAILED (Amazon Linux 2023 using ruby-build 20230512)
Inspect or clean up the working tree at /tmp/ruby-build.20230515101522.52871.9OdfUY
Results logged to /tmp/ruby-build.20230515101522.52871.log
Last 10 log lines:
compiling ossl_x509ext.c
compiling ossl_x509name.c
/tmp/ccXiIpNv.s: Assembler messages:
/tmp/ccXiIpNv.s: Fatal error: can't write 30 bytes to section .debug_loclists of ossl_x509name.o: 'No space left on device'
/tmp/ccXiIpNv.s: Fatal error: ossl_x509name.o: No space left on device
make[2]: *** [Makefile:324: ossl_x509name.o] Error 1
make[2]: Leaving directory '/tmp/ruby-build.20230515101522.52871.9OdfUY/ruby-3.1.1/ext/openssl'
make[1]: *** [exts.mk:256: ext/openssl/all] Error 2
make[1]: Leaving directory '/tmp/ruby-build.20230515101522.52871.9OdfUY/ruby-3.1.1'
make: *** [uncommon.mk:305: build-ext] Error 2
```
df -h 명령어로 파일 공간을 확인해보면
$ df -h
/tmp 폴더의 사용량이 100%이다.
tmp 폴더의 사이즈를 늘려주면 된다.
$ sudo -s
$ df -h /tmp
$ mount -o remount,size=5G /tmp/
$ sudo su - 로컬사용자이름
root 사용자로 권한을 올리고,
tmp의 사용량을 다시 한번 확인하고,
사이즈를 remount하고,
다시 로컬 사용자로 돌아간다.
Use 퍼센테지가 10%로 낮아진 것을 볼 수 있다.
'Develop > Error' 카테고리의 다른 글
[Spring] Cannot snapshot index.html: not a regular file 에러 해결 (0) | 2023.08.24 |
---|---|
[Ubuntu] mysqlclient 설치 오류: Exception: Can not find valid pkg-config name. (0) | 2023.07.30 |
[Django] django.db.migrations.exceptions.InconsistentMigrationHistory (0) | 2023.07.28 |
[VSC] 업데이트 에러 해결 (1) | 2023.03.20 |
[IntelliJ] java: cannot find symbol (0) | 2023.02.27 |