Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
linux/config.h no such file or directory compilation terminated
Hi Seniors,
I want to implement WrapFS on my Ubuntu Kernel 3.7.1
I downloded wrapfs.tar.gz. from http://faculty.cs.nku.edu/~waldenj/c...labs/lab9.html
I ran following commands
1.tar zxf wrapfs.tar.gz
2.cd wrapfs
3.make
when I run make command the following error occurs
root@Shantai:~# cd wrapfs/
root@Shantai:~/wrapfs# make
make -C /lib/modules/3.7.1/build SUBDIRS=/home/shantai/wrapfs modules
make[1]: Entering directory `/home/shantai/linux-3.7.1'
CC [M] /home/shantai/wrapfs/fist_wrapfs.o
In file included from /home/shantai/wrapfs/fist_wrapfs.c:14:0:
/home/shantai/wrapfs/fist.h:22:26: fatal error: linux/config.h: No such file or directory
compilation terminated.
make[2]: *** [/home/shantai/wrapfs/fist_wrapfs.o] Error 1
make[1]: *** [_module_/home/shantai/wrapfs] Error 2
make[1]: Leaving directory `/home/shantai/linux-3.7.1'
make: *** [all] Error 2
1. cd wrpafs-latest
2.make oldconfig ---- created .config file
3.make-- compiled it successfully
4. ctags *.[ch] for this get error n skipped this step
5.cat /proc/filesystems
6.insmod wrapfs.ko
insmod: can't read 'wrapfs.ko': No such file or directory
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,484
Rep:
# 9
'make oldconfig' :
That's when you use the config file from your currently installed kernel.
..There are a couple of methods to get "the old .config file".
Please see the kernel documentation.
( There is usually a 'config' for your kernel in the /boot/ directory.
And one in /proc/ : /proc/config.gz ).
My guess was that you could add like CONFIG_WRAP_FS=y to the old '.config'.
(see #8)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.