Jump to content

error executing the command dkms to build module


Recommended Posts

This is what I obtain when I execute the command :

 

[root@192 adolfo]# dkms build -m madwifi

 

Error! Invalid number of parameters passed.

Usage: build -m <module> -v <module-version>

 

 

Then I added the version of the wifi module and I obtain this :

 

[root@192 adolfo]# dkms build -m madwifi -v 0.20040913-1mdk

 

Error! DKMS tree does not contain: madwifi-0.20040913-1mdk

Build cannot continue without the proper tree.

 

What Could I do ?

 

Thanks in advance.

Link to comment
Share on other sites

I've never used dkms, but the manpage says:

build

    Builds the specified module/version combo for the specified kernel. If no kernel is specified it builds for the currently running kernel. All builds occur in the directory /var/dkms/<module>/<module-version>/build/.

 

So I would assume you need to put everything from your tarball into a new directory:

/var/dkms/madwifi/0.20040913-1mdk/build/

but I could be way off.

Edited by Steve Scrimpshire
Link to comment
Share on other sites

Thanks for your answer.

I execute the command : ls /var

and I did not see a folder dkms inside. Should I create it ?

What should I put in ?

What else should I do ?

 

I am new in linux.

Would you mind to tell me precisely (detailed) what I have to do ?

 

Thanks in advance.

Link to comment
Share on other sites

Wow. Why do module developers have to do things the hard way now? lol

Try this. Open a console (the little tv-looking thing in your taskbar) and do all this (all the stuff I put inside <<>> is just an action or a comment...you don't actually type it literally):

 

su <<hit enter>>

<<type your root password and hit enter...you won;t see anything being typed>>

<<use the cd command to be inside your madwifi directory>>

mkdir /var/dkms

mkdir /var/dkms/madwifi/

mkdir /var/dkms/madwifi/0.20040913-1mdk/

mkdir /var/dkms/madwifi/0.20040913-1mdk/build/

cp -R * /var/dkms/madwifi/0.20040913-1mdk/build/

cd /var/dkms/madwifi/0.20040913-1mdk/build/

dkms build -m madwifi -v 0.20040913-1mdk

Link to comment
Share on other sites

please don't do that.

 

Steve, we're helping the poster elsewhere (on the Club forums). His problem was basically due to not having the correct packages installed. You don't _always_ have to do this kind of stuff with dkms, we're only having to do it because things aren't working right. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...