Click to See Complete Forum and Search --> : how to install a . c driver file ?


lowvibes
01-10-2001, 01:01 AM
hi
i found the driver file for my usb network adapter.. its a "pegasus-0.4.15.c" file

but i dont know how to install it.
This is my first time using linux. Can someone help me with step by step information on how to install this driver please. or link me to a website where i can learn how to.



------------------
-------------------------
-lowvibes

Strike
01-10-2001, 01:59 AM
Give this a shot. Open up a console, and get to the directory with that file (it's a C source code file). Then type

gcc -D__KERNEL__ pegasus-0.4.15.c -c -o pegasus.o

And, hopefully no error messages (if there are, report them back here) will appear.

Then, become root by typing su and then entering the root password (su = switch user). Then, type insmod pegasus.o, and if there are no error messages there either, then this worked http://www.linuxnewbie.org/ubb/smile.gif

lowvibes
01-10-2001, 04:00 AM
i tired gcc -D__KERNEL__ pegasus-0.4.15.c -c -o pegasus.o
and got the error message
"gcc: no input file"
i did 'dir' to see if i was working in the correct directory and i was.

this is where is got the driver from http://www.dce.bg/~petkan/


i also posted this topic in another forum http://www.linuxnewbie.org/ubb/Forum1/HTML/013859.html



------------------
-------------------------
-lowvibes

Strike
01-10-2001, 04:41 AM
Okay, everyone should direct their replies to that other thread now. Thanks.