Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
I have trouble in running "make dep" when I try to compile linux kernel 2.4.18:
/bin/sh: scripts/mkdep: args list too long
make: *** [dep-files] error 126
I know this dued to long argument list "/home/gentlecm/downloads/XSBase255_Linux_CDROM/Kernel/2.4.18-rmk7-pxa1-XSBase/", which specifies a directory where kernel files reside.
I will have no problem if I put the kernel files to a directory of a short path, for instance, "/home/kernel/"
.
I better tell you my linux system is Ubuntu5.10, though I know the problem has nothing about what kind of linux my system is.
And, I have googled for this and get something like the kernel parameter "larg_ncargs_enabled", and linux command "xargs". But I don't know how to reset this kernel parameter and use this command for I could get little search results on them.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
"large_ncargs_enabled" is actually an HP-UX tunable, not a Linux one.
Trying to change this limit is anyway the wrong approach, if you reach the limit then there is something wrong in your script. Better to fix it with xargs, which is indeed the right answer.
Of course avoiding the limit by using shorter directories is an acceptable workaround.
You can have both the long and short names exist by using a symbolic link:
ln -s /home/gentlecm/downloads/XSBase255_Linux_CDROM/Kernel/2.4.18-rmk7-pxa1-XSBase /home/kernel
Thank you so much for your advice. But I yet don't know how to use "xargs" together with "make dep" to do my job correctly. I tried to type "xargs make dep", but it just didn't work, actually, it seemed to be suspended. Could you please offer me other advice on this?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.