LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-14-2003, 11:36 AM   #1
captainstorm
Member
 
Registered: Jun 2003
Location: Oricola, Italy
Distribution: RH 9, so far
Posts: 261

Rep: Reputation: 30
Question About "make install" and "insmod"


I could not find information on these and would somebody help me here?

1.
I have installed a driver for USB-Serial converter under linux. That is a tar.gz file and I used first "make" and then "make inst"(at root). After rebooting the computer, I am able to use this device.

2.
However, I want to install another driver for my modem. From the instruction, I should first use "make" to build the .o file and then "insmod" to insert the module. Besides, I still need to add some lines to /etc/modules.conf, like "alias char-major-62 ptserial", where ptserial is for "ptserial.o" and after that, I need to invoke the command "modprobe ptserial". This way would allow the computer to load the ptserial.o every time it boots.

I am a little bit confused here. Why I have such a difference between these two installation? The first method is already able to let the kernel load the driver when booting up (I was supposing they are similar)

Besides, is "make inst" identical to "make install"?

Thank you for any post here
 
Old 07-14-2003, 11:44 AM   #2
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
well basically its all about source code and makefiles.

A makefile is kind of like a config file that has instructions on how to compile source code...

when you type 'make' then it follows the instructions in the makefile (default)

when you type 'make install' it follows the instructions under the category 'install' in the makefile (usually its just a bunch of copy statements..but it could be more complext).

so when you type 'make inst' you are essentially telling make to follow the instructions for the category 'inst' inside the makefile made by the source-code's author(s).

So 'make inst' and 'make install' COULD be the same thing...it all depends on what the programmer(s) put in the makefile.

In fact, from program to program 'make install' could be different, even tho its the same command.
 
Old 07-14-2003, 11:52 AM   #3
captainstorm
Member
 
Registered: Jun 2003
Location: Oricola, Italy
Distribution: RH 9, so far
Posts: 261

Original Poster
Rep: Reputation: 30
Ah, thank you very much tcaptain I understand the trick behind the "make install".

While would you please see if my understanding on "make install" and "insmod" is correct?:

1. the "make install" command already does the jobs like adding the lines in /etc/modules.conf
2. the "insmod" is a command to insert the module in the "running kernel". (it will take effect right then).
3. So, if I want the module installed after rebooting, "make install" is enough?

Thanks again.
 
Old 07-14-2003, 11:58 AM   #4
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
1. not necessarily (and usually it doesn't)...as I said, it depends on what the programmers put in there...and usually they don't do stuff like modify modules.conf
2. yes that's correct (I think)
3. no, 'make install' is part of the compiling process, ie: what takes a bunch of source code and turns in into executables that your PC can run...most drivers will come with instructions on what you need to do to have them work when you reboot (like what to add to your modules.conf and such)...at that point, if you have problems...well that's what LQ is for
 
  


Reply


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
So many errors when I typed the "make" and "make install" command Niceman2005 Linux - Software 23 07-22-2009 02:33 PM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 02:32 PM
[Redhat] make "admin" account same privledges as "root" Bi0haZarD Linux - Networking 20 01-12-2005 10:47 AM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 03:31 PM


All times are GMT -5. The time now is 03:16 AM.

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