강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

junmin2319님의 프로필 이미지
junmin2319

작성한 질문수

설계독학맛비's 실전 Verilog HDL Season 1 (Clock부터 Internal Memory까지)

c언어 빌드 질문드립니다.

작성

·

266

1

c언어 빌드할 때 make를 치니까 없다고 떠서 $ sudo apt-get install build-essential 을 해봤는데 아래 사진처럼 오류가 떴습니다. 어떻게 해결해야 할까요??

 

답변 1

0

설계독학맛비님의 프로필 이미지
설계독학맛비
지식공유자

안녕하세요 :)

linux 의 install package 설정이 안되어 있는 것 같아요.

스크린샷 대신, text 도 올려주시면 검색에 도움이 될 것 같아요 :)

(구글링을 해봐야 할 것 같습니다.)

junmin2319님의 프로필 이미지
junmin2319
질문자

jeon@DESKTOP-PKFN6LS:~/work/inflearn/Matbi_VerilogHDL_Season1/chapter_14/test_c$ sudo apt-get install build-essential

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following additional packages will be installed:

  cpp-9 dpkg-dev fakeroot g++ g++-9 gcc-9 gcc-9-base libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan5 libdpkg-perl libfakeroot

  libfile-fcntllock-perl libgcc-9-dev libstdc++-9-dev make

Suggested packages:

  gcc-9-locales debian-keyring g++-multilib g++-9-multilib gcc-9-doc gcc-9-multilib bzr libstdc++-9-doc make-doc

The following NEW packages will be installed:

  build-essential dpkg-dev fakeroot g++ g++-9 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl libfakeroot

  libfile-fcntllock-perl libstdc++-9-dev make

The following packages will be upgraded:

  cpp-9 gcc-9 gcc-9-base libasan5 libgcc-9-dev

5 upgraded, 13 newly installed, 0 to remove and 207 not upgraded.

1 not fully installed or removed.

Need to get 0 B/32.3 MB of archives.

After this operation, 66.0 MB of additional disk space will be used.

Do you want to continue? [Y/n] y

Setting up libc-bin (2.31-0ubuntu9.2) ...

Aborted (core dumped)

/sbin/ldconfig.real: Can't stat /usr/local/lib/x86_64-linux-gnu: No such file or directory

/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once

/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once

/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once

/sbin/ldconfig.real: Path `/usr/lib' given more than once

/usr/lib/wsl/lib:

/usr/local/lib:

/lib/x86_64-linux-gnu:

Aborted (core dumped)

dpkg: error processing package libc-bin (--configure):

 installed libc-bin package post-installation script subprocess returned error exit status 134

Errors were encountered while processing:

 libc-bin

E: Sub-process /usr/bin/dpkg returned an error code (1)

 

설계독학맛비님의 프로필 이미지
설계독학맛비
지식공유자

다음링크 try 해보시겠어요?

https://blog.miyu.pe.kr/i/entry/953

sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

junmin2319님의 프로필 이미지
junmin2319
질문자

이제 되네요! 감사합니다.

설계독학맛비님의 프로필 이미지
설계독학맛비
지식공유자

다행이네요!

즐공하세요 :)

junmin2319님의 프로필 이미지
junmin2319

작성한 질문수

질문하기