OS/구름 OS

구름 OS 4.2 Pyinstaller 실행 시 bintuils 오류

강서버 2025. 3. 11. 23:36
반응형

[ 오류 내용 ]

$ pyinstaller -w -F --specpath spec test.py

On Linux, objdump is required. It is typically provided by the 'binutils' package installable via your Linux distribution's package manager.

 

[ 오류 발생 이유 ]

PyInstaller에는 일반적으로 binutils 패키지에서 제공하는 ldd와 objcopy가 필요합니다. 

sudo apt-get update && sudo apt-get install binutils를 실행해야 합니다.

(PyInstaller requires ldd and objcopy which are typically provided by the binutils package.

you should run sudo apt-get update && sudo apt-get install binutils.)

 

 

[ 해결 방안 ]

아래 apt binutils 설치 후 pyinstaller 실행하면 정상 실행됨.

 

$ sudo apt update

$ sudo apt install binutils

 

 

[ 실행 로그 ]

gangserver@gooroom:~/devel/pyqt5$ sudo apt update
[sudo] gangserver 암호: 
(... 로그 생략 ...)

 

gangserver@gooroom:~/devel/pyqt5$ sudo apt install binutils
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다... 완료
상태 정보를 읽는 중입니다... 완료        
The following additional packages will be installed:
  binutils-common binutils-x86-64-linux-gnu libbinutils libctf-nobfd0 libctf0
  libgprofng0
제안하는 패키지:
  binutils-doc
다음 새 패키지를 설치할 것입니다:
  binutils binutils-common binutils-x86-64-linux-gnu libbinutils libctf-nobfd0
  libctf0 libgprofng0
0개 업그레이드, 7개 새로 설치, 0개 제거 및 0개 업그레이드 안 함.
6,425 k바이트 아카이브를 받아야 합니다.
이 작업 후 34.3 M바이트의 디스크 공간을 더 사용하게 됩니다.
계속 하시겠습니까? [Y/n] y
(... 로그 생략 ...)

 

 

 

[ 참조 ]

https://groups.google.com/g/pyinstaller/c/-mhI7ybyGPw

 

Pyinstaller error in yocto image

Hello everyone,  Well after a lot of struggle, I installed pyinstaller in my yocto image, but while executing the command, I got an error which I couldn't solve actually,  Thank you

groups.google.com

 

 

728x90
반응형