LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   how to compile a custom driver in ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/how-to-compile-a-custom-driver-in-ubuntu-509358/)

madhusudana 12-11-2006 07:23 AM

how to compile a custom driver in ubuntu
 
Hi,
I installed ubuntu 6.0.6LTS on my pc.I noticed following problems.
1.#make
no make command found.
Is there any command to compile a driver otherthan make ?

2.how to enter as root adminstrator.
please helpme.

trevelluk 12-11-2006 07:45 AM

Regarding root access, Ubuntu I believe uses "sudo" to provide this. Basically you run "sudo command", enter your password if prompted, and "command" will then be run as root.

For the first problem, installing make is easy: "sudo apt-get install make".

madhusudana 12-11-2006 10:22 PM

Hi trevelluk,
I got the following error message to while installing make.

madhu@madhu-desktop:~$ sudo apt-get install make
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package make
So, how can i insall make package in ubuntu 6.0.6LTS

Redeye2 12-11-2006 11:02 PM

Install the build-essential package. It includes make, gcc, etc

madhusudana 12-12-2006 03:04 AM

Hi,
I observed the same problem with mandirva also.

1.#make
no make command found.
give the instructions to install make package in ubuntu and mandriva.

trevelluk 12-12-2006 06:36 AM

For Ubuntu, I don't know why the make package isn't available. Can you post the contents of /etc/apt/sources.list?

I would also recommend Redeye2's suggestion of installing build-essential, as this will contain a number of other useful tools for compiling. I don't use Mandriva myself, but there should be an option to install new software somewhere in the control centre. It might also be worth looking round the Mandriva forum for more advice.

Hope this helps!

Hendronicus 12-12-2006 03:00 PM

You can install make and all it's buddies with your original ubuntu install cd. Just insert it, and the interface will ask you if you want to run synaptic. Then, look for the package "build-essential". Install that and you will have "make". Be sure to use "sudo ./configure" and "sudo make install" when building; but "make" doesn't usually need to be root.

Redeye2 12-12-2006 04:13 PM

Quote:

Originally Posted by Hendronicus
You can install make and all it's buddies with your original ubuntu install cd. Just insert it, and the interface will ask you if you want to run synaptic. Then, look for the package "build-essential". Install that and you will have "make". Be sure to use "sudo ./configure" and "sudo make install" when building; but "make" doesn't usually need to be root.

Actually, only make install requires root permissions if you're using the default location (/usr or /usr/local)

binary_y2k2 12-13-2006 12:28 AM

Quote:

Originally Posted by madhusudana
Hi trevelluk,
I got the following error message to while installing make.

madhu@madhu-desktop:~$ sudo apt-get install make
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package make
So, how can i insall make package in ubuntu 6.0.6LTS

When you install Ubuntu and you don't have an internet connection available, you're /etc/apt/sources.list is commented out
so check that the lines don't all start with a "#"

madhusudana 12-15-2006 06:17 AM

hi,
i have ubuntu 6.10. where the "network-scripts' file located in ubuntu

binary_y2k2 12-15-2006 06:44 AM

they are in /etc/network/
in if-down.d if-post-down.d if-pre-up.d and if-up.d

rosco99 07-03-2007 08:26 PM

Quote:

Originally Posted by binary_y2k2
When you install Ubuntu and you don't have an internet connection available, you're /etc/apt/sources.list is commented out
so check that the lines don't all start with a "#"

Well that is just great!!. I am trying to install a wireless modem driver so don't have internet connection . I try to make a file and there is no drivers-essentials. I try to install that and the /etc/apt/sources list is commented out.
Which file do I have to edit to uncomment?
Kubuntu 6.10

binary_y2k2 07-04-2007 11:52 AM

like I said, /etc/apt/sources
what wireless device are you trying to compile a driver for?


All times are GMT -5. The time now is 11:52 PM.