목록2024/05/14 (1)
채록채록
[Linux\Debian] kernel configuration is invalid오류, linux-headers
진짜 어제부터 잘 되던 커널모듈 예제가 컴파일조차 안되어서 미치는줄 알았다. 오류 내용은 다음과 같다.챗지피티에게 물어봐도 뻔한 대답을 하고(뭐 이것저것 잘 검토해보세요! 같은)검색해서 한 방법도 잘 안되고, 업데이트했다가 재부팅도 해보고...실습 예제가 나와있는 책에서 하란대로 헤더도 설치했는데 안되었다. ㅠㅠ그런데 다른 사이트를 참고하여 linux headers를 '재'설치하니까 되었다.포인트는 '재'설치이다. 그냥 install 하면 안된다.그러니까 이제 드디어 컴파일된 것을 확인할 수 있었다. 내가 저 헬로월드를 출력하기 위해 이런 개고생을 했다니...살짝 자괴감들었지만 그래도 그 과정에서 알게된 것이 많았음에 의의를 둔다.1. 커널모듈 코드를 뜯어보며 모듈이 커널에 insmod될 때 호출되는 i..
Linux
2024. 5. 14. 07:54