linux (7) 썸네일형 리스트형 [centos] dlib install error, C++11 is required to use dlib, but the version of GCC you are using is tooold and doesn't support C++11. You need GCC 4.9 or newer. 에러 해결법 문제점1 문제점2 https://hidden-loca.tistory.com/6 [Python] dlib 설치하기. 2021. 03. 17 수정 근 수개월 동안 가장 많은 페이지 방문이 있었지만, 내용상 대충대충 써 내린 부분이 많아 새로 수정. - 가상환경생성 dlib을 설치할 가상환경을 만들었습니다. 가상환경이름은 dlib hidden-loca.tistory.com 위 방법대로 했는데도 안됐다. C++11 is required to use dlib, but the version of GCC you are using is too old and doesn't support C++11. You need GCC 4.9 or newer. conda install dlib 위 명령어는 안됨... 해결책 conda.. [centos] No decoder for stream #0:0, filtering impossible, Decoder (codec av1) not found for input stream #0:0 ffmpeg 를 이용하여 centos에서 video (확장자 mp4)의 이미지를 추출하는 작업을 시도했는데.. 에러 발생! ffmpeg -i videoplayback\ -\ taeyeon.mp4 taeyeon/video-frame-%d.png ffmpeg version 문제인가? sudo yum install epel-release sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm sudo yum install ffmpeg ffmpeg-devel 버전 업그레이드 하니 다른 에러 발생!! # Decoder (cod.. [linux] ubuntu에서 2TB 이상 HDD 마운트 시키기 1. 디스크 정보 확인 fdisk -l 3.65 TB HDD가 보인다. /dev/sda이다. (아래부터 이 위치로 입력하면 된다.) 2. parted 이용하여 분할하기 sudo parted /dev/sda 입력 mklabel 입력 후 gpt 내부 데이터가 모두 사라진다는 메세지가 출력 됨 yes 입력 unit GB 입력하여 단뒤 변환 print 입력하여 용량 확인 mkpart primary 0GB 4001GB 입력(우측엔 본인 용량 입력하면 됨) q 입력하여 커맨드로 돌아옴 다시 fdisk -l을 해본다. 3. 파티션 포맷 mkfs.ext4 /dev/sda1 중간에 정보 입력하는 부분은 그냥 엔터 쳐서 무시하고 넘어가도 됨 5. UUID 확인 sudo blkid 입력하여 UUID 확인 후 복사해두기 6... python으로 폴더 지우기 (os, shutil) 파일을 지울 때는 os.remove를 사용하는데. 이걸 폴더에 사용하면 안 먹힌다. import os folder = '/temp/blar' os.remove(folder) 에러가 난다. 폴더는 어떤 방식으로 지울까?? 2가지 방법이 있다. 1. os.rmdir import os folder = '/temp/blar' os.rmdir(folder) 2. shutil.rmtree 1 번 방법이 안 통할 때가 있다. 폴더내에 또 파일들이 들어있을 경우다. 그럴 경우 이 방법을 쓴다. shutil.rmtree(folder, ignore_errors=True) linux, terminal에서 구글 드라이브 대용량 파일 다운 받기 medium.com/@acpanjan/download-google-drive-files-using-wget-3c2c025a8b99 Download Google Drive Files using wget Files can be downloaded from google drive using wget. Before that you need to know that files are small and large sized in google drive. medium.com 완전 꿀팁 공유를 누르고 링크를 복사하고 id를 확인해야한다!! [linux] ls로 파일 용량 보기 ls로 파일 용량 보기 ls -alSh 이렇게 용량이 나온다. faq.hostway.co.kr/Linux_ETC/3799 Linux ETC - ls 명령어의 파일 사이즈 쉽게 확인하기 ls 명령어의 파일 사이즈 쉽게 확인하기ls 의 스위치 옵션 -h (--human-readable) 를 이용하면 KB/MB/GB 단위로 쉽게 파일 사이즈 확인이 가능하다.[HOSTWAY] /home > # ls -alhtotal 312Gdrwxr-xr-x. 6 root root 4.0K Oct 22 23 faq.hostway.co.kr [linux] gdrive id가 없을때, 폴더째로 받아야할때 위와 같이 id가 아니라 folders 다음에 뭔가가 놓여있을 경우 어떡하지??? linux에서 gdrive를 다운 받아야한다. 이 gdrive는 go라는 언어로 동작하는데, go라는 언어도 다운 받아야 할 수도 있다. 우선 gdrive-linux-x64를 다운받아주자. wget https://raw.githubusercontent.com/AnimMouse/gdrive-binaries/master/linux/gdrive-linux-x64 mv gdrive-linux-x64 gdrive chmod +x gdrive ./gdrive about gdrive란 명령어가 안통하면 go 언어를 설치해야 한다. http://golang.org/dl 다운로드 사이트에서 Linux용 압축파일(go*.tar.gz) 파일의.. 이전 1 다음