Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal Error - /usr/include/features.h:461:12: fatal error: sys/cdefs.h: No such file or directory #145

Open
nodecentral opened this issue Dec 17, 2020 · 2 comments

Comments

@nodecentral
Copy link

I’ve tried to install lfs via luarocks but received the following error.

admin@ubuntu2004:~/Documents$ sudo luarocks install luafilesystem
Installing https://luarocks.org/luafilesystem-1.8.0-1.src.rock
gcc -O2 -fPIC -I/usr/include/lua5.3 -c src/lfs.c -o src/lfs.o
In file included from /usr/include/errno.h:25,
                 from src/lfs.c:41:
/usr/include/features.h:461:12: fatal error: sys/cdefs.h: No such file or directory
  461 | #  include <sys/cdefs.h>
      |            ^~~~~~~~~~~~~
compilation terminated.

Error: Build error: Failed compiling object src/lfs.o

Other information that might help.

admin@ubuntu2004:~/Documents$ lua -v
Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio
admin@ubuntu2004:~/Documents$ luarocks
LuaRocks 2.4.2, a module deployment system for Lua
@nodecentral
Copy link
Author

Ok, on Ubuntu the fix was to use the following instead..

sudo apt-get install -y lua-filesystem

@robertlzj
Copy link

Hi, nice to see you solve your problem.
Then maybe it's good to close issue, it will feel disheartened to see lots of bugs opens.
And it's still searchable after close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants