티스토리 뷰
728x90
출처
- 대소니 :: Tensorflow version 확인
- libstdc++.so.6: version `GLIBCXX_3.4.22' not found · Issue #13 · lhelontra/tensorflow-on-arm
리눅스 정보 확인
CPU 정보 확인
$ cat /proc/cpuinfo Processor : ARMv7 Processor rev 5 (v7l) processor : 0 BogoMIPS : 1142.85 processor : 1 BogoMIPS : 1142.85 processor : 2 BogoMIPS : 1142.85 processor : 3 BogoMIPS : 1142.85 Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5 Hardware : sun8i Revision : 0000 Serial : 44007867890c5817090e
커널에 대한 정보
$ uname -a Linux bananapim2zero 3.4.113-sun8i #2 SMP PREEMPT Wed May 8 15:09:43 CEST 2019 armv7l armv7l armv7l GNU/Linux
OS버전에 대한 정보
$ cat /etc/issue Ubuntu 16.04.6 LTS \n \l
논리 코어 수 확인
$ grep -c processor /proc/cpuinfo 4
libstdc++6 라이브러리 업데이트
오류 메시지 ImportError: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/pi/.local/lib/python3.7/site-packages/tensorflow_core/python/_pywrap_tensorflow_internal.so)
libstdc++.so.6 라이브러리가 지원하는 버전 확인
$ strings /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 | grep GLIBCXX GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 GLIBCXX_3.4.4 GLIBCXX_3.4.5 GLIBCXX_3.4.6 GLIBCXX_3.4.7 GLIBCXX_3.4.8 GLIBCXX_3.4.9 GLIBCXX_3.4.10 GLIBCXX_3.4.11 GLIBCXX_3.4.12 GLIBCXX_3.4.13 GLIBCXX_3.4.14 GLIBCXX_3.4.15 GLIBCXX_3.4.16 GLIBCXX_3.4.17 GLIBCXX_3.4.18 GLIBCXX_3.4.19 GLIBCXX_3.4.20 GLIBCXX_3.4.21 GLIBCXX_DEBUG_MESSAGE_LENGTH
libstdc++6 업데이트
$ sudo apt-get install software-properties-common $ sudo add-apt-repository ppa:ubuntu-toolchain-r/test $ sudo apt-get update $ sudo apt-get upgrade $ sudo apt-get upgrade libstdc++6
libstdc++.so.6 라이브러리가 지원하는 버전 확인
$ strings /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 | grep GLIBCXX GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 GLIBCXX_3.4.4 GLIBCXX_3.4.5 GLIBCXX_3.4.6 GLIBCXX_3.4.7 GLIBCXX_3.4.8 GLIBCXX_3.4.9 GLIBCXX_3.4.10 GLIBCXX_3.4.11 GLIBCXX_3.4.12 GLIBCXX_3.4.13 GLIBCXX_3.4.14 GLIBCXX_3.4.15 GLIBCXX_3.4.16 GLIBCXX_3.4.17 GLIBCXX_3.4.18 GLIBCXX_3.4.19 GLIBCXX_3.4.20 GLIBCXX_3.4.21 GLIBCXX_3.4.22 GLIBCXX_3.4.23 GLIBCXX_3.4.24 GLIBCXX_3.4.25 GLIBCXX_3.4.26 GLIBCXX_3.4.27 GLIBCXX_3.4.28 GLIBCXX_DEBUG_MESSAGE_LENGTH
pip3 설치
$ sudo apt update $ sudo apt install gfortran libopenblas-dev liblapack-dev libhdf5-dev $ pip3 --version pip 20.0.2 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)
파이썬 라이브러리 설치
$ sudo pip3 install setuptools wheel $ pip3 install numpy $ sudo pip3 install h5py
swap 사이즈 설정
현재 swap 사이즈 확인
$ free -h total used free shared buff/cache available Mem: 495M 85M 337M 524K 72M 388M Swap: 247M 96M 151M $ sudo swapon -s Filename Type Size Used Priority /dev/zram0 partition 63376 24648 5 /dev/zram1 partition 63376 24616 5 /dev/zram2 partition 63376 24584 5 /dev/zram3 partition 63376 24544 5 $ sudo swapoff /dev/zram0 $ sudo swapoff /dev/zram1 $ sudo swapoff /dev/zram2 $ sudo swapoff /dev/zram3 $ sudo zramctl --reset /dev/zram0 $ sudo zramctl --reset /dev/zram1 $ sudo zramctl --reset /dev/zram2 $ sudo zramctl --reset /dev/zram3 $ sudo zramctl --find --size 512M /dev/zram0 $ sudo zramctl --find --size 512M /dev/zram1 $ sudo zramctl --find --size 512M /dev/zram2 $ sudo zramctl --find --size 512M /dev/zram3 $ sudo mkswap /dev/zram0 Setting up swapspace version 1, size = 512 MiB (536866816 bytes) no label, UUID=e6662e60-e230-4c77-8bf5-fad980fcc8d4 $ sudo mkswap /dev/zram1 Setting up swapspace version 1, size = 512 MiB (536866816 bytes) no label, UUID=3047af26-0e95-4da6-99de-7f27b6bacc1f $ sudo mkswap /dev/zram2 Setting up swapspace version 1, size = 512 MiB (536866816 bytes) no label, UUID=0777059c-8ec4-4db5-833c-d4a12204f2a4 $ sudo mkswap /dev/zram3 Setting up swapspace version 1, size = 512 MiB (536866816 bytes) no label, UUID=e29b5ab6-9b7c-4298-a252-5492183d3c05 $ sudo swapon /dev/zram0 $ sudo swapon /dev/zram1 $ sudo swapon /dev/zram2 $ sudo swapon /dev/zram3 $ free -h total used free shared buff/cache available Mem: 495M 129M 283M 6.5M 82M 338M Swap: 2.0G 0B 2.0G $ sudo swapon -s Filename Type Size Used Priority /dev/zram0 partition 524284 0 -1 /dev/zram1 partition 524284 0 -2 /dev/zram2 partition 524284 0 -3 /dev/zram3 partition 524284 0 -4
TensorFlow 2.1.0 패키지 설치
TensorFlow 2.1.0 패키지 다운로드
$ wget http://1.229.109.140:3562/tensorflow/tensorflow-2.1.0/tensorflow-2.1.0-cp37-none-linux_armv7l.whl
tensorflow 2.1.0 파이썬 페키지 설치
$ export TMPDIR=/var/tmp $ pip3 install tensorflow-2.1.0-cp37-none-linux_armv7l.whl ... 생략 ... Successfully built wrapt gast grpcio absl-py scipy termcolor Installing collected packages: google-pasta, tensorflow-estimator, protobuf, wrapt, absl-py, idna, urllib3, certifi, chardet, requests, markdown, werkzeug, cachetools, pyasn1, pyasn1-modules, rsa, google-auth, grpcio, oauthlib, requests-oauthlib, google-auth-oauthlib, tensorboard, gast, keras-applications, astor, scipy, opt-einsum, termcolor, keras-preprocessing, tensorflow Successfully installed absl-py-0.9.0 astor-0.8.1 cachetools-4.1.0 certifi-2020.4.5.1 chardet-3.0.4 gast-0.2.2 google-auth-1.13.1 google-auth-oauthlib-0.4.1 google-pasta-0.2.0 grpcio-1.28.1 idna-2.9 keras-applications-1.0.8 keras-preprocessing-1.1.0 markdown-3.2.1 oauthlib-3.1.0 opt-einsum-3.2.0 protobuf-3.11.3 pyasn1-0.4.8 pyasn1-modules-0.2.8 requests-2.23.0 requests-oauthlib-1.3.0 rsa-4.0 scipy-1.4.1 tensorboard-2.1.1 tensorflow-2.1.0 tensorflow-estimator-2.1.0 termcolor-1.1.0 urllib3-1.25.8 werkzeug-1.0.1 wrapt-1.12.1
버전 확인
$ python3 Python 3.7.7 (default, Apr 10 2020, 05:33:30) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import tensorflow as tf >>> tf.__version__ '2.1.0'
댓글
300x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 레이싱모델 익스트림 포토 페스티벌
- BPI-M4
- 일본여행
- 튜닝쇼 2008
- Linux
- KOBA
- Mac
- ble
- ffmpeg
- JavaScript
- android
- oracle
- MySQL
- flex
- 서울오토살롱
- 전예희
- NDK
- Spring
- 송주경
- Delphi Tip
- sas2009
- SAS
- Delphi
- 지스타2007
- Xcode
- 동경
- koba2010
- ubuntu
- Spring MVC
- Java
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함