Debian关于stdio.h: no such file or directory的处理

今天下午在Debian尝试编译一个helloworld的C程序,之前在centos和FreeBsd都编译通过的,但无奈在Debian还是发生了stdio.h: no such file or directory错误.

我的helloword程序:

#include <stdio.h>
#include <stdlib.h>

int main(void)
{

printf(“helloword\n”);
return 0;
}

经google查询后, 原来没有安装 libc6-dev 这个package, 这里面才包含了开发文件在,顺便检查了看看有没有mysql.h, 果然还是没有,继续google, 还是要安装libmysqlclient15-dev才会有mysql.h.
操作过程:
apt-get install libc6-dev
apt-get install libmysqlclient15-dev

另外原来可以查找文件在那个包里的,不过先安装apt-file.
apt-get install apt-file
apt-file update
apt-file search filename

发觉debian的工具真多.

台湾的debian论坛: 摩托學園討論區

给这个地方http://www.linuxdiyf.com/bbs/thread-100986-1-1.html剽窃了文章啊,无语啊…

关于无聊人

一个无聊人而已
此条目发表在Linux分类目录。将固定链接加入收藏夹。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注