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%로 낮아진 것을 볼 수 있다.

Share Link
reply
«   2025/07   »
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