Comments (8)
git pull 一下 代码, 你是用的最新的么? 要么重新克隆一遍源代码, 参见: #1
from chinadns-ng.
alpine:~/chinadns-ng# git pull
Already up to date.
alpine:~/chinadns-ng# make
gcc -std=c99 -Wall -Wextra -O3 -c chinadns.c -o chinadns.o
In file included from chinadns.h:6,
from chinadns.c:2:
netutils.h:5:10: fatal error: time.h: No such file or directory
#include <time.h>
^~~~~~~~
compilation terminated.
make: *** [Makefile:23: chinadns.o] Error 1
肯定是最新的啊。。。怎么会特地去pull旧的代码
from chinadns-ng.
https://pkgs.alpinelinux.org/contents?repo=main&page=3&arch=x86&branch=edge&name=musl-dev
安装 musl-dev, 这个package包含time.h文件
from chinadns-ng.
alpine:~/chinadns-ng# make
gcc -std=c99 -Wall -Wextra -O3 -c chinadns.c -o chinadns.o
chinadns.c:23:10: fatal error: linux/limits.h: No such file or directory
#include <linux/limits.h>
^~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:23: chinadns.o] Error 1
还是缺头文件,应该是alpine太精简了
还是换Debian吧
from chinadns-ng.
啥头文件都没有,这系统我也是醉了。
from chinadns-ng.
安装 linux-headers
你可以在上面那个链接里面搜索所需要的文件, 看看在哪个包里面
alpine:~/chinadns-ng# make gcc -std=c99 -Wall -Wextra -O3 -c chinadns.c -o chinadns.o chinadns.c:23:10: fatal error: linux/limits.h: No such file or directory #include <linux/limits.h> ^~~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:23: chinadns.o] Error 1
还是缺头文件,应该是alpine太精简了
还是换Debian吧
from chinadns-ng.
啥头文件都没有,这系统我也是醉了。
不是啥都没有, 而是他没有正确的使用 alpine linux, 编译所需的包都安装不完整.
from chinadns-ng.
建议你一步到位
apk add --update alpine-sdk
from chinadns-ng.
Related Issues (20)
- [增强] tcp pipeline 长连接支持 HOT 6
- [Feature Request]: 希望能手动指定监听协议 HOT 2
- 建议可在上游地址前加上 udp:// 来强制使用 UDP DNS HOT 8
- 请教该下哪个版本合适? HOT 3
- 添加 ip 到 ipset/nftset 时,支持指定元素级别的 timeout 参数
- 关于新版本的使用方法 HOT 20
- `--no-ipv6` 修改: 不过滤、过滤所有、按域名tag过滤、按ip测试结果过滤 HOT 5
- 新版本(2024.03.27)的 udp 似乎有问题 HOT 5
- [ipset.c:606 test_res_ipset] error when querying ip: (2) No such file or directory HOT 2
- [增强] 支持 `udp://` 上游 HOT 37
- tag 的说明和功能的例子是混淆了? HOT 2
- --add-tagchn-ip 选项可否设置黑名单 HOT 17
- 对于不支持tcp查询的上游,请带上`udp://`限定 HOT 12
- 是否个例:域名层级问题 HOT 3
- 使用 chinadns-ng 替代 dnsmasq 时,需要注意的事项 HOT 81
- 环境有问题,DNS解析存在“污染” HOT 60
- 24.4.13版本用不了 ,是改变什么吗 HOT 3
- 增加-Dwolfssl编译不过去 HOT 7
- wolfssl 在某些平台上无法正确校验 SSL 证书 HOT 10
- tag有可能支持geosite吗 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chinadns-ng.