Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
09-11-2009, 05:29 PM
|
#1
|
LQ Newbie
Registered: Aug 2009
Posts: 4
Rep:
|
Cannot find linux/config.h
Hello,
I am fairly new to the forum. I am trying the build the scull module from LinuxDeviceDriver examples and ran into the following issue:
"
adminuser@VirtualBoxImages-desktop:~/Desktop/examples/scull$ make
make -C /lib/modules/2.6.27-7-generic/build M=/home/adminuser/Desktop/examples/scull LDDINC=/home/adminuser/Desktop/examples/scull/../include modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-7-generic'
CC [M] /home/adminuser/Desktop/examples/scull/main.o
/home/adminuser/Desktop/examples/scull/main.c:17:26: error: linux/config.h: No such file or directory
/home/adminuser/Desktop/examples/scull/main.c:674: fatal error: opening dependency file /home/adminuser/Desktop/examples/scull/.main.o.d: Permission denied
compilation terminated.
make[2]: *** [/home/adminuser/Desktop/examples/scull/main.o] Error 1
make[1]: *** [_module_/home/adminuser/Desktop/examples/scull] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-7-generic'
make: *** [modules] Error 2
"
How can I get the config.h for the 2.6.27.7 kernel? Is there a patch file that I could use?
Thanks,
Fatima
|
|
|
09-12-2009, 02:52 AM
|
#2
|
Senior Member
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
|
The config.h is now called autoconf.h. You could make a symbolic link to solve this:
Code:
cd /usr/src/linux-headers-2.6.27-7-generic/include/linux
ln -s autoconf.h config.h
|
|
|
01-19-2013, 07:46 AM
|
#3
|
LQ Newbie
Registered: Jan 2013
Posts: 6
Rep: 
|
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
Could you plz help me out
Thank You
|
|
|
01-29-2013, 09:29 AM
|
#5
|
LQ Newbie
Registered: Jan 2013
Posts: 6
Rep: 
|
Hello sir ,
Thank you for your post.
when I run first command on my terminal it says
shantai@Shantai:~$ git clone http://git.kernel.org/pub/scm/linux/...ezk/wrapfs.git
Cloning into 'wrapfs'...
fatal: http://git.kernel.org/pub/scm/linux/....git/info/refs not found: did you run git update-server-info on the server?
when i run 2nd command on terminal it says
shantai@Shantai:~$ git clone git://git.fsl.cs.sunysb.edu/wrapfs-latest.git
Cloning into 'wrapfs-latest'...
remote: Counting objects: 2334656, done.
remote: Compressing objects: 100% (450553/450553), done.
receiving objects: 3%
cud plz tell me what what is this process all about
thank you
|
|
|
01-29-2013, 10:39 AM
|
#6
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
$ git clone git://git.fsl.cs.sunysb.edu/wrapfs-latest.git
... Works OK here :
Cloning into 'wrapfs-latest'...
remote: Counting objects: 2334656, done.
remote: Compressing objects: 100% (450553/450553), done.
remote: Total 2334656 (delta 1949123), reused 2247079 (delta 1861596)
Receiving objects: 100% (2334656/2334656), 562.92 MiB | 751 KiB/s, done.
Resolving deltas: 100% (1949123/1949123), done.
Checking out files: 100% (38178/38178), done.
You will need some space (and speed ?) :
Total size of wrapfs-latest/ = 1 GB !
-
|
|
|
01-29-2013, 11:33 AM
|
#7
|
LQ Newbie
Registered: Jan 2013
Posts: 6
Rep: 
|
Hello Sir,
thank you for the reply...
in the end I got this msg
shantai@Shantai:~$ git clone git://git.fsl.cs.sunysb.edu/wrapfs-latest.git
Cloning into 'wrapfs-latest'...
remote: Counting objects: 2334656, done.
remote: Compressing objects: 100% (450553/450553), done.
remote: Total 2334656 (delta 1949123), reused 2247079 (delta 1861596)
Receiving objects: 100% (2334656/2334656), 562.92 MiB | 86 KiB/s, done.
Resolving deltas: 100% (1949123/1949123), done.
Sir what shud be the step for installing WrapFs on my 3.7.1 Kernel
Shall I follow the steps on the following link
http://faculty.cs.nku.edu/~waldenj/c...labs/lab9.html
Please help
Looking forward for your reply
Thank You
|
|
|
01-29-2013, 12:44 PM
|
#8
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 7
I have no idea. But I'd guess, it's like any kernel build.
Guessing again : Add the "wrapfs entry" ( WRAP_FS = YES ?)
to your config file, and 'make oldconfig', etc.
-
Last edited by knudfl; 01-29-2013 at 12:47 PM.
|
|
|
02-06-2013, 10:03 AM
|
#9
|
LQ Newbie
Registered: Jan 2013
Posts: 6
Rep: 
|
Hello Sir,
I used following commands for Wrapfs
shantai@Shantai:~$ git clone git://git.fsl.cs.sunysb.edu/wrapfs-latest.git
Cloning into 'wrapfs-latest'...
remote: Counting objects: 2334656, done.
remote: Compressing objects: 100% (450553/450553), done.
remote: Total 2334656 (delta 1949123), reused 2247079 (delta 1861596)
Receiving objects: 100% (2334656/2334656), 562.92 MiB | 86 KiB/s, done.
Resolving deltas: 100% (1949123/1949123), done.
Now for INstalling Wrapfs
I followed
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
Could u plz help me forward
Thank You
|
|
|
02-06-2013, 11:53 AM
|
#10
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 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)
-
|
|
|
All times are GMT -5. The time now is 11:59 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|