求救,编译错误,/bin/sh: gcc-3.4: command not found

CPU/显卡/打印机/USB设备等硬件问题
回复
ksfwzrn
帖子: 21
注册时间: 2007-01-24 22:20

求救,编译错误,/bin/sh: gcc-3.4: command not found

#1

帖子 ksfwzrn » 2007-01-31 9:53

系统:ubuntu 5.10
目的:驱动intel 536ep软猫

ubuntu@ubuntu:~/Intel-536$ sudo make 536
请尝试执行‘uname --help’来获取更多信息。
Module precompile check
Current running kernel is: 2.6.12-9-386
/lib/modules... autoconf.h exists
diff: /boot/vmlinuz.autoconf.h: 没有那个文件或目录
autoconf.h matches running kernel
diff: /boot/vmlinuz.version.h: 没有那个文件或目录
version.h matches running kernel
uname -r|grep "2.6" && \
cd coredrv && make 536core_26 && \
cp Intel536.ko .. && cd .. && \
strip --strip-debug Intel536.ko && \
exit; \
ls Intel536.ko >/dev/null 2>&1 || uname -r | grep "2.6" && echo "Failed to buil d driver" && exit; \
if [ ]; then \
cd coredrv; make TARGET=TARGET_SELAH KERNEL_SOURCE_PATH= "PSTN_DEF=-DTARGET_SELA H -DTARGET_LINUX -DLINUX" 536core; \
else \
cd coredrv; make TARGET=TARGET_SELAH KERNEL_INCLUDES=/lib/modules/`uname -r`/bui ld/include \
"PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \
fi ; \
cp Intel536.o .. ; \
if [ -a /boot/vmlinuz.version.h ]; then \
cp /boot/vmlinuz.version.h /lib/modules/`uname -r`/build/include/linux/v ersion.h;\
fi
2.6.12-9-386
make[1]: Entering directory `/home/ubuntu/Intel-536/coredrv'
make -C /lib/modules/2.6.12-9-386/build SUBDIRS=/home/ubuntu/Intel-536/coredrv modules
/usr/src/linux-headers-2.6.12-9-386/scripts/gcc-version.sh: line 11: gcc-3.4: co mmand not found
/usr/src/linux-headers-2.6.12-9-386/scripts/gcc-version.sh: line 12: gcc-3.4: co mmand not found
make[2]: gcc-3.4:命令未找到
make[2]: Entering directory `/usr/src/linux-headers-2.6.12-9-386'
CC [M] /home/ubuntu/Intel-536/coredrv/coredrv.o
/bin/sh: gcc-3.4: command not found
make[3]: *** [/home/ubuntu/Intel-536/coredrv/coredrv.o] 错误 127
make[2]: *** [_module_/home/ubuntu/Intel-536/coredrv] 错误 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.12-9-386'
make[1]: *** [536core_26] 错误 2
make[1]: Leaving directory `/home/ubuntu/Intel-536/coredrv'
2.6.12-9-386
Failed to build driver
ubuntu@ubuntu:~/Intel-536$
diskdriver
帖子: 21
注册时间: 2006-12-21 8:45

#2

帖子 diskdriver » 2007-01-31 13:16

你编译的文件需要gcc-3.4版本的。
用新立得安装个gcc-3.4试试,应该可以解决,另外看下是否存在gcc的软连,如存在就将其指向的gcc-3.4
ksfwzrn
帖子: 21
注册时间: 2007-01-24 22:20

#3

帖子 ksfwzrn » 2007-01-31 14:01

另外看下是否存在gcc的软连,如存在就将其指向的gcc-3.4
------- --------
不懂
DRIFT
帖子: 177
注册时间: 2007-01-25 13:04

是不是指定gcc 的默认库文件目录.

#4

帖子 DRIFT » 2007-02-05 12:59

是不是指定gcc 的默认库文件目录.
ksfwzrn
帖子: 21
注册时间: 2007-01-24 22:20

#5

帖子 ksfwzrn » 2007-02-05 14:16

解决了,需要gcc-3.4,因为要编译内核
回复