LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   kernel configured. (https://www.linuxquestions.org/questions/linux-newbie-8/kernel-configured-61766/)

dsantamassino 05-25-2003 04:49 PM

kernel configured.
 
I have been getting this error. This is what i typed in.

./configure --with-hal=pct789

This is the error i got. configure: error: modversions.h is missing-you should configure your kernel first!. Can someone please give me step by step instructions on how to configure my kernel?? I don't have a clue where to start. I'm trying to do this with a PCTEL Platinum V. 90 modem on a Compaq Presario Desktop. I'm trying to run the commands under Redhat Linux 9. If anyone has any questions about what i'm trying to do please reply back. Please reply back as soon as possible with some steps on this. Thanks guys.

fancypiper 05-25-2003 05:22 PM

Is this still about your winmodem?
 
Information is needed. What is your kernel version and have you installed kernel source code and developemntal packages?

Open an x terminal and type this:
Code:

[phil@tinwhistle phil]$ su -
Password:
[root@tinwhistle root]# uname -r
2.4.18-3
[root@tinwhistle root]# cd /usr/src/linux-2.4.18-3
[root@tinwhistle linux-2.4.18-3]# ls
.    configs            drivers  ipc          Makefile  REPORTING-BUGS
..    COPYING            fs      kernel          mm            Rules.make
abi  CREDITS            include  lib          net            scripts
arch  Documentation  init    MAINTAINERS  README

Change the number to your kernel version.If you see something similar to what I have, the kernel source code is there.
Code:

[root@tinwhistle linux-2.4.18-3]#  gcc -v     
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
[root@tinwhistle linux-2.4.18-3]#

Yes, I have gcc installed

Redhat does not make a symbolic link to /usr/src/linux as the compiler will expect. Do that manually
Code:

[root@tinwhistle linux-2.4.18-3]# ln -s /usr/src/linux-2.4.18-3 /usr/src/linux
[root@tinwhistle root]#

Use your source version, not mine.

If you have everything right, your modem driver should now compile.

dsantamassino 05-25-2003 05:35 PM

Yo hold up... I'm lost. What do you what me to type in?? That's why i put it in the Linux Newbie. I'm not no advance user. How do i tell what kernel version i have??

fancypiper 05-25-2003 05:57 PM

Bookmark and refer to these. They are real handy See the Newbie part? They are so good I put them in my sig.

Linux Newbie Administrator Guide
Rute User's Tutorial and Exposition

From your user's account, look on the menu or a panel for something with "terminal" in it's name. Use that.

If you can't find it that way, try right clicking on the desktop and looking for something like "new terminal".

Command to find running kernel version
uname -r
Command to find compiler version
gcc -version
Command to find out what pci cards are installed and their irq port info
cat /proc/pci

dsantamassino 05-25-2003 06:13 PM

I just tryed what you first posted and i got the same error message. They want me to configure my kernel. I just tryed what you told me.

fancypiper 05-25-2003 06:19 PM

Did you create the symbolic link /usr/src/linux that points to your source code directory?

Redhat 9.0 Upgrading the kernel
Building a custom kernel

dsantamassino 05-25-2003 06:26 PM

yes. This is what i did.

su -
uname -r
cd /usr/src/linux-2.4.20-8
ls
ln -s /usr/src/linux-2.4.20-8/usr/src/linux

and then i went like this.
mkdir /work
cp /mnt/cdrom/pctel-0.9.6.tar.gz /work
cd /work
tar zxvf pctel-0.9.6.tar.gz
cd pctel-0.9.6
./configure --with-hal=pct789. and the same error.


All times are GMT -5. The time now is 09:22 PM.