Giter Club home page Giter Club logo

Comments (8)

cattyhouse avatar cattyhouse commented on June 3, 2024

git pull 一下 代码, 你是用的最新的么? 要么重新克隆一遍源代码, 参见: #1

from chinadns-ng.

orannnnnnge avatar orannnnnnge commented on June 3, 2024
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.

cattyhouse avatar cattyhouse commented on June 3, 2024

https://pkgs.alpinelinux.org/contents?repo=main&page=3&arch=x86&branch=edge&name=musl-dev

安装 musl-dev, 这个package包含time.h文件

from chinadns-ng.

orannnnnnge avatar orannnnnnge commented on June 3, 2024
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.

zfl9 avatar zfl9 commented on June 3, 2024

啥头文件都没有,这系统我也是醉了。

from chinadns-ng.

cattyhouse avatar cattyhouse commented on June 3, 2024

安装 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.

cattyhouse avatar cattyhouse commented on June 3, 2024

啥头文件都没有,这系统我也是醉了。

不是啥都没有, 而是他没有正确的使用 alpine linux, 编译所需的包都安装不完整.

from chinadns-ng.

cattyhouse avatar cattyhouse commented on June 3, 2024

建议你一步到位
apk add --update alpine-sdk

参考

from chinadns-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.