LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 12-11-2006, 07:23 AM   #1
madhusudana
LQ Newbie
 
Registered: Dec 2006
Posts: 9
Blog Entries: 1

Rep: Reputation: 0
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.
 
Old 12-11-2006, 07:45 AM   #2
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
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".
 
Old 12-11-2006, 10:22 PM   #3
madhusudana
LQ Newbie
 
Registered: Dec 2006
Posts: 9
Blog Entries: 1

Original Poster
Rep: Reputation: 0
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
 
Old 12-11-2006, 11:02 PM   #4
Redeye2
Member
 
Registered: Feb 2004
Posts: 489

Rep: Reputation: Disabled
Install the build-essential package. It includes make, gcc, etc
 
Old 12-12-2006, 03:04 AM   #5
madhusudana
LQ Newbie
 
Registered: Dec 2006
Posts: 9
Blog Entries: 1

Original Poster
Rep: Reputation: 0
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.
 
Old 12-12-2006, 06:36 AM   #6
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
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!
 
Old 12-12-2006, 03:00 PM   #7
Hendronicus
Member
 
Registered: Feb 2006
Location: Oldsmar, Fl. USA
Distribution: Slackware, Ubuntu
Posts: 173

Rep: Reputation: 38
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.
 
Old 12-12-2006, 04:13 PM   #8
Redeye2
Member
 
Registered: Feb 2004
Posts: 489

Rep: Reputation: Disabled
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)
 
Old 12-13-2006, 12:28 AM   #9
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
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 "#"
 
Old 12-15-2006, 06:17 AM   #10
madhusudana
LQ Newbie
 
Registered: Dec 2006
Posts: 9
Blog Entries: 1

Original Poster
Rep: Reputation: 0
hi,
i have ubuntu 6.10. where the "network-scripts' file located in ubuntu
 
Old 12-15-2006, 06:44 AM   #11
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
they are in /etc/network/
in if-down.d if-post-down.d if-pre-up.d and if-up.d
 
Old 07-03-2007, 08:26 PM   #12
rosco99
LQ Newbie
 
Registered: Sep 2006
Posts: 16

Rep: Reputation: 0
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
 
Old 07-04-2007, 11:52 AM   #13
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

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


Reply

Tags
make


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Custom PCI driver problems (acess from user-space) - Ubuntu 6.06 / Linux 2.6 kalen Linux - Kernel 0 11-09-2006 06:11 AM
How to compile the Kernel with Custom Name madcat87 Linux - Newbie 4 12-21-2005 07:59 PM
questions about custom compile byte.chaser Debian 36 07-14-2005 06:51 PM
Does anyone custom compile xorg? dhave Slackware 11 03-07-2005 03:06 AM
Problems trying to compile custom ATI binary driver guerilla fighta Linux - Software 0 02-13-2003 04:53 PM


All times are GMT -5. The time now is 10:01 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration