[ 오류 내용 ]
$ 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 암호:
기존:1 http://deb.debian.org/debian bookworm InRelease
기존:2 http://deb.debian.org/debian bookworm-updates InRelease
기존:3 http://update.gooroom.kr/gooroom gooroom-4.0 InRelease
받기:4 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]
기존:5 https://dl.google.com/linux/chrome/deb stable InRelease
기존:6 https://packages.microsoft.com/repos/edge stable InRelease
내려받기 48.0 k바이트, 소요시간 11초 (4,515 바이트/초)
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다... 완료
상태 정보를 읽는 중입니다... 완료
All packages are up to date.
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
받기:1 http://deb.debian.org/debian bookworm/main amd64 binutils-common amd64 2.40-2 [2,487 kB]
받기:2 http://deb.debian.org/debian bookworm/main amd64 libbinutils amd64 2.40-2 [572 kB]
받기:3 http://deb.debian.org/debian bookworm/main amd64 libctf-nobfd0 amd64 2.40-2 [153 kB]
받기:4 http://deb.debian.org/debian bookworm/main amd64 libctf0 amd64 2.40-2 [89.8 kB]
받기:5 http://deb.debian.org/debian bookworm/main amd64 libgprofng0 amd64 2.40-2 [812 kB]
받기:6 http://deb.debian.org/debian bookworm/main amd64 binutils-x86-64-linux-gnu amd64 2.40-2 [2,246 kB]
받기:7 http://deb.debian.org/debian bookworm/main amd64 binutils amd64 2.40-2 [65.0 kB]
내려받기 6,425 k바이트, 소요시간 12초 (520 k바이트/초)
Selecting previously unselected package binutils-common:amd64.
(데이터베이스 읽는중 ...현재 356567개의 파일과 디렉터리가 설치되어 있습니다.)
Preparing to unpack .../0-binutils-common_2.40-2_amd64.deb ...
Unpacking binutils-common:amd64 (2.40-2) ...
Selecting previously unselected package libbinutils:amd64.
Preparing to unpack .../1-libbinutils_2.40-2_amd64.deb ...
Unpacking libbinutils:amd64 (2.40-2) ...
Selecting previously unselected package libctf-nobfd0:amd64.
Preparing to unpack .../2-libctf-nobfd0_2.40-2_amd64.deb ...
Unpacking libctf-nobfd0:amd64 (2.40-2) ...
Selecting previously unselected package libctf0:amd64.
Preparing to unpack .../3-libctf0_2.40-2_amd64.deb ...
Unpacking libctf0:amd64 (2.40-2) ...
Selecting previously unselected package libgprofng0:amd64.
Preparing to unpack .../4-libgprofng0_2.40-2_amd64.deb ...
Unpacking libgprofng0:amd64 (2.40-2) ...
Selecting previously unselected package binutils-x86-64-linux-gnu.
Preparing to unpack .../5-binutils-x86-64-linux-gnu_2.40-2_amd64.deb ...
Unpacking binutils-x86-64-linux-gnu (2.40-2) ...
Selecting previously unselected package binutils.
Preparing to unpack .../6-binutils_2.40-2_amd64.deb ...
Unpacking binutils (2.40-2) ...
binutils-common:amd64 (2.40-2) 설정하는 중입니다 ...
libctf-nobfd0:amd64 (2.40-2) 설정하는 중입니다 ...
libbinutils:amd64 (2.40-2) 설정하는 중입니다 ...
libctf0:amd64 (2.40-2) 설정하는 중입니다 ...
libgprofng0:amd64 (2.40-2) 설정하는 중입니다 ...
binutils-x86-64-linux-gnu (2.40-2) 설정하는 중입니다 ...
binutils (2.40-2) 설정하는 중입니다 ...
Processing triggers for libc-bin (2.36-9+deb12u9) ...
Processing triggers for man-db (2.11.2-2) ...
[ 참조 ]
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
'OS > 구름 OS' 카테고리의 다른 글
구름 OS 4.2 Snap Store 설치 (0) | 2025.03.12 |
---|---|
구름 OS 4.2 Visual Studio Code Uninstall (Flatpak) (0) | 2025.03.12 |