免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2756 | 回复: 3
打印 上一主题 下一主题

ubuntu如何make? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-05-03 09:09 |只看该作者 |倒序浏览
我装了ubuntu7.0桌面版,如何安装网上下来的原始码
我用make
居然出现不能找到stdio.h

我晕,狂晕

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

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

查了debian手册,没找到,

请教。。。

论坛徽章:
0
2 [报告]
发表于 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 即可。

论坛徽章:
0
3 [报告]
发表于 2007-05-05 08:16 |只看该作者

搞定,谢谢二楼

最后,我安装了GCC,就能正常编译了,原来有个dpkg -S XXX.h
可以查找什么这个文件在什么地方的,但还没搞定安装,不知怎么回事,不能make install,说找不到

论坛徽章:
0
4 [报告]
发表于 2007-05-08 16:45 |只看该作者

终于明白原因了

原来make好以后
要输入:
./XXXX
就可以运行了,而不是XXXX
真的很菜,但为了不让后来者走弯路,还是把自己一点点的心得说出来,当然,大多数人认为这肯定不是心得
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP