Jump to content

Can't patch: command not found [Solved]


Recommended Posts

I've installed 2.6.8.1-12 as well as the source, and I'm now playing with madwifi. After I extracted the latest tarball, I needed to run install.sh from /madwifi/patches/2.6, but it fails thrice:

 

1. because the script uses 2.6 for the version, instead of 2.6.8.1-12mdk-i586-up-1GB . Changing that solved the "missing /lib/modules/2.6/build/drivers/net/wireless directory' failure

 

2. now I get "cp: cannot stat `../../hal/linux/*.inc' No such file or directory"

+ " /*.opt_ah.h "

+ " /*.hal.o.uu "

3.

PATCH()

{

patch -N $1 < $2

}

errors out: "install.sh: line 24: patch command not found."

 

I think I can puzzle out 2. (so as to not have to type out install.sh :angry: ), but 3 appears to be telling me I don't have the "patch" command.

 

Is this correct? Where do I get it?

 

 

Tx,

 

BD :thanks:

Edited by Bdickson2000
Link to comment
Share on other sites

carroll.cac.psu.edu/pub/linux/distributions/mandrakelinux/official/10.1/i586/media/main/patch-2.5.9-2mdk.i586.rpm

 

http://rpm.pbone.net/

 

Patching is something from the past (but ofcourse still used). In the years before fast internet people didn't send the whole source code but only the parts that where changed since the last version. With patch the changed bits where added to the source code. (http://www.oreillynet.com/linux/cmd/cmd.csp?path=p/patch)

Link to comment
Share on other sites

:D Thank you for the clarification. BTW, i didn't have the proper permissions to access carroll.cac.psu.edu/, so I googled "patch-2.5.9-2mdk.i586.rpm" and found it on RPMFind.net.

 

And I was able to figure out what 2. (Below) was trying to do and did it myself. Why don't the scripts reflect what's there after a standard install?

 

Also, Is there a link you can suggest that mentions category-names and package-names for programs I am likely to need but were not installed? I'm surprised that patch wasn't installed based on the program criteria I entered for install (basically everything except for some server options.)

 

For madwifi, I dowloaded "madwifi-cvs-current.tar.bz2" and did "make clean "and "make". Is there any reason why it would need to be patched?

(I have "madwifi-2.6.8-mm_and_later-040927.patch", but I don't know if I need it.)

 

Thanks again,

 

BD

:P

 

carroll.cac.psu.edu/pub/linux/distributions/mandrakelinux/official/10.1/i586/media/main/patch-2.5.9-2mdk.i586.rpm

 

http://rpm.pbone.net/

 

Patching is something from the past (but ofcourse still used). In the years before fast internet people didn't send the whole source code but only the parts that where changed since the last version. With patch the changed bits where added to the source code. (http://www.oreillynet.com/linux/cmd/cmd.csp?path=p/patch)

Edited by Bdickson2000
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...