LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices


Reply
  Search this Thread
Old 12-26-2004, 09:03 PM   #1
niteshg
LQ Newbie
 
Registered: Nov 2004
Location: NJ
Posts: 29

Rep: Reputation: 15
make modules_install


Hi,
I was trying to compile fedora 2.6.5-1.358 kernel.
I get the following error when i run
make modules_install command

ln: when making multiple links, last argument must be a directory
make: *** [_modinst_] Error 1

What could be the problem?
Thanks,
Nitesh
 
Old 12-26-2004, 09:54 PM   #2
Moy Easwaran
Member
 
Registered: Dec 2004
Distribution: Slackware, OpenBSD
Posts: 44

Rep: Reputation: 19
Did you run make modules_install as root?
 
Old 12-26-2004, 11:59 PM   #3
niteshg
LQ Newbie
 
Registered: Nov 2004
Location: NJ
Posts: 29

Original Poster
Rep: Reputation: 15
yes I am running it as root.
Makefile
EXTRAVERSION option is changed.I do everything ars per the instructions given by everyone on the net but the problem persists.I was googling to get an answer but some people have reported this error but no solution.
 
Old 12-27-2004, 03:53 AM   #4
Moy Easwaran
Member
 
Registered: Dec 2004
Distribution: Slackware, OpenBSD
Posts: 44

Rep: Reputation: 19
What are your version parameters set to? You don't want spaces, semicolons, etc. in this line:
KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)$(LOCALVERSION)

If you insert the following line as the first target in _modinst_ in your Makefile, you'll know if make thinks your KERNELRELEASE is a filename (note the tab at the beginning of the line):
Code:
    @mkdir foo; cd foo; touch $(KERNELRELEASE); cd -; ls -la foo
Moy
 
Old 12-27-2004, 02:27 PM   #5
niteshg
LQ Newbie
 
Registered: Nov 2004
Location: NJ
Posts: 29

Original Poster
Rep: Reputation: 15
evrything is okay.
I did whatever u said $(KERNELRELEASE) is 2.6.5-1.358
in my /lib/modules/ i have a directory 2.6.5-1.358
in /usr/src there is a directory linux-2.6.5-1.358

the following is the script
$(TOPDIR) is /usr/src/linux-2.6.5-1.358
$(MODLIB) is /lib/modules/2.6.5-1.358

@ln -s $(TOPDIR) $(MODLIB)/build

this line in the Makefile generates the error i feel.But why it does it i dont know.
 
Old 12-28-2004, 01:33 PM   #6
Moy Easwaran
Member
 
Registered: Dec 2004
Distribution: Slackware, OpenBSD
Posts: 44

Rep: Reputation: 19
A bandaid solution would be to hack the Makefile a little, remove the ln lines and make those links yourself, and then run the rest. It really just calls scripts/Makefile.modinst, so you might get away with that.

Of course, that doesn't address the issue of why you're getting the error in the first place, but if you don't want to debug the Makefile that might work.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make modules_install bhomass Debian 2 11-20-2005 11:11 PM
make modules_install error djib Linux - Software 8 12-12-2004 10:15 AM
make modules_install props666999 Slackware 5 11-16-2004 12:11 AM
make modules_install error props666999 Slackware 8 11-13-2004 09:41 PM
make modules_install ? shanenin Linux - Software 3 12-31-2003 10:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation

All times are GMT -5. The time now is 06:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration