Chinaunix

标题: ubuntu如何make? [打印本页]

作者: singmj    时间: 2007-05-03 09:09
标题: ubuntu如何make?
我装了ubuntu7.0桌面版,如何安装网上下来的原始码
我用make
居然出现不能找到stdio.h

我晕,狂晕

用export查了路径  /sbin路径有的

难道桌面版不包括gcc?但GCC明明有的,

查了debian手册,没找到,

请教。。。
作者: latteye    时间: 2007-05-03 10:13
添加源:

deb http://ubuntu.cn99.com/ubuntu/ feisty main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ feisty-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ feisty-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ feisty-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ feisty-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ feisty main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ feisty-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ feisty-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ feisty-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ feisty-backports main restricted universe multiverse

更新软件源

apt-get update

接着安装编译需要的软件包,比如你要编译 gaim,执行:

apt-get build-dep gaim

最后到下载的gaim源码里面 ./configure && make && make install 即可。
作者: singmj    时间: 2007-05-05 08:16
标题: 搞定,谢谢二楼
最后,我安装了GCC,就能正常编译了,原来有个dpkg -S XXX.h
可以查找什么这个文件在什么地方的,但还没搞定安装,不知怎么回事,不能make install,说找不到
作者: singmj    时间: 2007-05-08 16:45
标题: 终于明白原因了
原来make好以后
要输入:
./XXXX
就可以运行了,而不是XXXX
真的很菜,但为了不让后来者走弯路,还是把自己一点点的心得说出来,当然,大多数人认为这肯定不是心得




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2