질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

간단한 헬로우 좀 찍어보려는데...;;;make가 안된다네요...ㅠ.ㅠ

작성자 정보

  • 최현주 작성
  • 작성일

컨텐츠 정보

본문

hybus-arm~등 네 가지를 다운받아 풀었습니다.
Desktop에 다운을 받아서 풀어서 그 위치에서 hello.c 파일과 makefile을 만들어서 make 명령어를 쳤습니다.
그런데
[root@localhost ~]# make
make -C /lib/modules/2.6.12.6/build M=`pwd` modules
make[1]: Entering directory `/usr/src/kernels/linux-2.6.12.6'
scripts/Makefile.build:13: /root/Makefile: 그런 파일이나 디렉토리가 없음
make[2]: *** 타겟 `/root/Makefile'를 만들 규칙이 없음.  멈춤.
make[1]: *** [_module_/root] 오류 2
make[1]: Leaving directory `/usr/src/kernels/linux-2.6.12.6'
make: *** [all] 오류 2
[root@localhost ~]#

의 에러가 납니다. 물론 hello.ko파일도 만들어지지 않구요-
이런 작업을 하는데 특별한 위치가 있나요??
혹시나 싶어서


[root@localhost ~]# vi ~/.bash_profile
[root@localhost ~]# source ~/.bash_profile
[root@localhost ~]# echo $PATH
/home/saltdoll03/Desktop/hybus-arm-linux-R1/bin:/usr/kerberos/sbin:/usr/kerberos /bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin :/root/bin:/root/bin
[root@localhost ~]# cd /home/saltdoll03/Desktop
[root@localhost Desktop]# ls
Makefile                         hybus-arm-linux-R1.1.tar.gz
bootp-2.4.3-7.i386.rpm           ntfsprogs-1.12.1-1.i586.rpm
captive-static-1.1.5-0.i386.rpm  tftp-server-0.17-9.i386.rpm
hello.c                          xinetd-2.3.13-6.i386.rpm
hybus-arm-linux-R1.1
[root@localhost Desktop]# make
make -C /lib/modules/2.6.12.6/build M=`pwd` modules
make[1]: Entering directory `/usr/src/kernels/linux-2.6.12.6'
  Building modules, stage 2.
  MODPOST
make[1]: Leaving directory `/usr/src/kernels/linux-2.6.12.6'
[root@localhost Desktop]# insmod hello.ko
insmod: can't read 'hello.ko': No such file or directory
[root@localhost Desktop]#

위에 보시듯 파일 경로 잡아주는 것도 했구요...제가 뭘 잘못했을까요??.....제대로 다 설치를 했는데 프로그램은 책에 나오는 간단한 hello 파일이라 틀릴게 없는것같은데....;;;;

도와주세요~~ >.<


 

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,039 명
  • 현재 강좌수 :  35,848 개
  • 현재 접속자 :  96 명