標題:
lnux编译问题
[打印本頁]
作者:
囡囡
時間:
2012-10-27 21:04
標題:
lnux编译问题
请看图,是什么问题,怎么修?
os 5.5系统
[root@localhost sa]# cd saac
[root@localhost saac]# dir
acfamily.c db.h main.c saacproto_oac.h tcpip_util.c
acfamily.h deathcontend.c main.h saacproto_serv.c tcpip_util.h
auction.c deathcontend.h makefile saacproto_serv.h util.c
auction.h defend.c makesaac saacproto_util.c util.h
char.c defend.h recv.c saacproto_util.h version.h
char.h lock.c recv.h saacproto_work.c wk
chatroom.c lock.h saacproto_lserver.c saacproto_work.h
chatroom.h mail.c saacproto_lserver.h sasql.c
db.c mail.h saacproto_oac.c sasql.h
[root@localhost saac]# make clean
make -C wk clean;
make[1]: Entering directory `/root/sa/saac/wk'
rm -f acwk *.o *~
make[1]: Leaving directory `/root/sa/saac/wk'
/bin/rm -f main.o recv.o util.o char.o db.o mail.o acfamily.o defend.o lock.o tcpip_util.o chatroom.o auction.o sasql.o saacproto_serv.o saacproto_util.o saacproto_work.o saacproto_lserver.o saacproto_oac.o deathcontend.o
/bin/rm -f *~
/bin/rm -f stderr.*
[root@localhost saac]# make depend
mv makefile makefile.bak
sed -ne '1,/^# DO NOT DELETE THIS LINE/p' makefile.bak > makefile
cc -M main.c recv.c util.c char.c db.c mail.c acfamily.c defend.c lock.c tcpip_util.c chatroom.c auction.c sasql.c saacproto_serv.c saacproto_util.c saacproto_work.c saacproto_lserver.c saacproto_oac.c deathcontend.c >> makefile
/bin/sh: cc: command not found
make: *** [depend] 错误 127
[root@localhost saac]# make
gcc -march=pentium4 -w -O3 -pipe -freg-struct-return -minline-all-stringops -mmmx -msse -msse2 -I /usr/include/mysql -c -o main.o main.c
make: gcc:命令未找到
make: *** [main.o] 错误 127
[root@localhost saac]#
[
本帖最後由 囡囡 於 2012-10-27 21:18 編輯
]
作者:
囡囡
時間:
2012-10-27 21:07
发布了图~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
作者:
shen
時間:
2012-10-28 01:40
沒裝gcc, 所以不能編譯 = =
歡迎光臨 We Love SA 石器時代研討中心 (http://lab.welovesa.com/)
Powered by Discuz! 6.0.0