LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-21-2003, 07:35 PM   #1
Nawaf0
LQ Newbie
 
Registered: Aug 2003
Location: Saudi Arabia
Distribution: Mandrake
Posts: 9

Rep: Reputation: 0
Angry PCTel Modem Insallation..


When i tried to install a driver for my PCTel modem (pctel789 Chipset), i got errors when i typed the following:

[nawaf@localhost pctel-0.8.6]$ ./configure --with-hal=pct789

and i got the following:

[nawaf@localhost pctel-0.8.6]$ ./configure --with-hal=pct789

loading cache ./config.cache

checking for a BSD compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking whether make sets ${MAKE}... yes

checking for working aclocal... missing

checking for working autoconf... missing

checking for working automake... missing

checking for working autoheader... missing

checking for working makeinfo... found

checking build driver for... HAL_PCT789

checking for gcc... no

checking for cc... no

configure: error: no acceptable cc found in $PATH

[nawaf@localhost pctel-0.8.6]$

Please help me on that.....

Last edited by Nawaf0; 10-21-2003 at 07:37 PM.
 
Old 10-21-2003, 08:17 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Apparently, you chose not to install the developmental packages when you did your install. You need to install the stuff that the error messages mention.

redhat-config-packages
Red Hat 9.0 Package Management Tool

If you have trouble using the Red Hat Package Management Tool, I suggest you install the two apt4rpm files for your Red Hat distro (it's a Debian package manager for Redhat),

apt4rpm

Then command:

apt-get update
apt-get dist-upgrade
apt-get install gcc
uname -r
apt-get install kernel-source#<result of uname -r>

Then try installing the module again. Chase down any more failures if any and repeat until you succeed.

# Compiling/installing kernel modules
You will need to have installed:
1. The developmental packages (compiler)
2. The kernel source code that matches your running kernel
3. The module source or install code

Check out your system and look under the hood and see if you installed the stuff you need to do the job. Open an x terminal and type in this sequence of commands to see what kernel we are running and see if you have the kernel source installed:
Code:
[fancy@tinwhistle fancy]$ su -
Password: 
[root@tinwhistle root]# uname -r
2.4.18-3
I am running kernel version 2.4.18-3. Do I have the proper source code?
Code:
[root@tinwhistle root]# cd /usr/src
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          136 Jun 12 14:53 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.18-3
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.18-3
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
I do have the same kernel version source code installed in the directory /usr/src/linux-2.4.18-3 and there is a symbolic link named linux-2.4 pointing to it.

If you don't see something similiar to this (but in color), you will need to install the kernel source.

NOTE: I noticed that Red Hat didn't make the symbolic link /usr/src/linux that all of the INSTALL files that I have read mentioned that I need, so I may as well make one now to save editing the files in the source code to install.So, I'll make it just now:
Code:
[root@tinwhistle src]# ln -s linux-2.4.18-3 linux         
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          160 Jun 12 15:46 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun 12 15:46 linux -> linux-2.4.18-3
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.18-3
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.18-3
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
Ah, there it is, so that's done.

Next, did I install the compiler?
Code:
[root@tinwhistle src]# 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 src]#
Yes, I have a compiler installed.

If you don't have those two things installed, you have to install them first off your install CD.

If they are installed, download the source and happy comiling. Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing.

# Guides to software management
LNAG - How do I install a program I downloaded from the Internet?
Rute Guide's software explanation
You might want to check out CheckInstall to manage source code installations/uninstallation

Last edited by fancypiper; 10-24-2003 at 05:36 PM.
 
Old 10-23-2003, 06:55 AM   #3
Nawaf0
LQ Newbie
 
Registered: Aug 2003
Location: Saudi Arabia
Distribution: Mandrake
Posts: 9

Original Poster
Rep: Reputation: 0
Thank u fancypipper for your help,
i did all what you told me and it works fine with me. but i faced a new error msg:

configure: error: modversions.h is missing - you should configure your kernel first!

and this is the output:

[nawaf@localhost pctel-0.8.6]$ ./configure --with-hal=pct789

loading cache ./config.cache

checking for a BSD compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking whether make sets ${MAKE}... yes

checking for working aclocal... found

checking for working autoconf... found

checking for working automake... found

checking for working autoheader... found

checking for working makeinfo... found

checking build driver for... HAL_PCT789

checking for gcc... gcc

checking whether the C compiler (gcc ) works... yes

checking whether the C compiler (gcc ) is a cross-compiler... no

checking whether we are using GNUa C... yes

checking whether gcc accepts -g... yes

checking how to run the C preprocessor... gcc -E

checking for ANSI C header files... yes

checking whether make sets ${MAKE}... (cached) yes

checking for a BSD compatible install... /usr/bin/install -c

checking whether ln -s works... yes
checking for mawk... no

checking for gawk... gawk

checking for /usr/src/linux/include/linux/modversions.h... no

configure: error: modversions.h is missing - you should configure your kernel first!

[nawaf@localhost pctel-0.8.6]$

Last edited by Nawaf0; 10-23-2003 at 06:57 AM.
 
Old 10-23-2003, 08:36 AM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
It sounds as if you didn't make the symbolic link /usr/src/linux that points to your installed kernel-source.

Did you see the NOTE in my previous post?

Last edited by fancypiper; 10-23-2003 at 08:39 AM.
 
Old 10-24-2003, 11:50 AM   #5
Nawaf0
LQ Newbie
 
Registered: Aug 2003
Location: Saudi Arabia
Distribution: Mandrake
Posts: 9

Original Poster
Rep: Reputation: 0
I did everything and it seemed that it worked fine. But i got the same erreor msg again:

[root@localhost pctel-0.8.6]# ln -s linux-2.4.21-0.13mdk
[root@localhost pctel-0.8.6]# ls -alc
total 228
drwxr-xr-x 8 nawaf nawaf 4096 Oct 24 18:28 ./
drwxrwxr-x 4 nawaf nawaf 4096 Oct 22 01:38 ../
-rw-r--r-- 1 500 users 4360 Oct 24 18:26 acinclude.m4
-rw-r--r-- 1 500 users 8063 Oct 24 18:26 aclocal.m4
-rw-r--r-- 1 500 users 21 Oct 24 18:26 AUTHORS
-rw-r--r-- 1 root root 72 Oct 24 18:27 confdefs.h
-rw-r--r-- 1 nawaf nawaf 0 Oct 22 01:39 config.cache
-rw-r--r-- 1 nawaf nawaf 1862 Oct 24 18:27 config.log
-rwxr-xr-x 1 500 users 75498 Oct 24 18:26 configure*
-rw-r--r-- 1 500 users 5027 Oct 24 18:26 configure.in
-rw-r--r-- 1 500 users 17992 Oct 24 18:26 COPYING
-rwxr-xr-x 1 500 users 488 Oct 24 18:26 cvscompile.sh*
-rw-r--r-- 1 500 users 5832 Oct 24 18:26 FAQ
drwxr-xr-x 2 nawaf nawaf 4096 Oct 24 18:26 include/
-rw-r--r-- 1 500 users 22 Oct 24 18:26 INSTALL
-rwxr-xr-x 1 500 users 5598 Oct 24 18:26 install-sh*
drwxr-xr-x 5 nawaf nawaf 4096 Oct 24 18:26 lib/
lrwxrwxrwx 1 root root 20 Oct 24 18:28 linux-2.4.21-0.13mdk -> linux-2.4.21-0.13mdk
drwxr-xr-x 2 nawaf nawaf 4096 Oct 24 18:26 m4/
-rw-r--r-- 1 500 users 3540 Oct 24 18:26 Makefile.am
-rw-r--r-- 1 500 users 13579 Oct 24 18:26 Makefile.in
drwxr-xr-x 2 nawaf nawaf 4096 Oct 24 18:26 misc/
-rwxr-xr-x 1 500 users 6283 Oct 24 18:26 missing*
-rwxr-xr-x 1 500 users 722 Oct 24 18:26 mkinstalldirs*
drwxr-xr-x 2 nawaf nawaf 4096 Oct 24 18:26 modules/
-rw-r--r-- 1 500 users 2981 Oct 24 18:26 README
drwxr-xr-x 4 nawaf nawaf 4096 Oct 24 18:26 src/
[root@localhost pctel-0.8.6]# gcc -v
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-languages=c,c++,ada,f77,objc,java --host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
[root@localhost pctel-0.8.6]# ./configure --with-hal=pct789
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking build driver for... HAL_PCT789
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking whether make sets ${MAKE}... (cached) yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for mawk... no
checking for gawk... gawk
checking for /usr/src/linux/include/linux/modversions.h... no
configure: error: modversions.h is missing - you should configure your kernel first!
[root@localhost pctel-0.8.6]#













Last edited by Nawaf0; 10-24-2003 at 12:58 PM.
 
Old 10-24-2003, 04:46 PM   #6
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
You didn't make the link right. Here is your link:

lrwxrwxrwx 1 root root 20 Oct 24 18:28 linux-2.4.21-0.13mdk -> linux-2.4.21-0.13mdk

You want:

lrwxrwxrwx 1 root root 20 Oct 24 18:28 linux -> linux-2.4.21-0.13mdk

You will have to remove that link, you will probably have to re-install kernel-source as you have replaced that with a symbolic link pointing to itsself.

After kernel-source is re-installed, command:

ln -s /usr/src/linux-2.4.21-0.13mdk /usr/src/linux

Then, try installing the module again.
 
Old 10-24-2003, 05:24 PM   #7
Nawaf0
LQ Newbie
 
Registered: Aug 2003
Location: Saudi Arabia
Distribution: Mandrake
Posts: 9

Original Poster
Rep: Reputation: 0
Thanx again.

But how can re-install the kernel-source? and if i did that the link will be removed?

Thank u for your continuous support and help
 
Old 10-24-2003, 05:32 PM   #8
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
I think you will have to remove the link manually.

rm /usr/src/linux-2.4.21-0.13mdk
urpmi kernel-source
cd /usr/src
ls -al (to make sure the directory linux-2.4.21-0.13mdk exists)
ln linux-2.4.21-0.13mdk linux
ls -al (to see if you created the link correctly)
Then attempt installing modem module.
 
Old 10-24-2003, 05:35 PM   #9
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
# Mandrake links
Mandrake home page
Mandrake Users website
Easy urpmi config for Mandrake
urpmi mini-HOWTO
Easy software management: Red Carpet
Maximum RPM
rpmfind
You didn't install the developmental packages? As root, command:
urpmi gcc
An Introduction to the Midnight Commander. You can install it by commanding:
urpmi mc
Midnight Commander home page
 
Old 10-25-2003, 11:49 AM   #10
Nawaf0
LQ Newbie
 
Registered: Aug 2003
Location: Saudi Arabia
Distribution: Mandrake
Posts: 9

Original Poster
Rep: Reputation: 0
I created the correct link after re-installing the kernel-source. But when i tried to install the driver it gave me the following error:

[root@localhost pctel-0.8.6]# ./configure --with-hal=pct789
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking build driver for... HAL_PCT789
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking whether make sets ${MAKE}... (cached) yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for mawk... no
checking for gawk... gawk
checking for /usr/src/linux/include/linux/modversions.h... yes
checking for Linux kernel version >= 2.4.0... ./configure: line 1537: test: 2.13mdk: integer expression expected
no
configure: error: You should have linux kernel >= 2.4.0 installed
[root@localhost pctel-0.8.6]#

Thanx again and again..
 
Old 10-25-2003, 12:03 PM   #11
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Any hints on the module page? Or on the Mandrake or Mandrake user sites? Are there any files you need to edit? Apparently the module install doesn't belive you have a running kernel or kernel-source you can use.

Things to check and consider:
What kernel are you actually running? Is it greater than or equal to 2.4.0? Is the running kernel and kernel-source the same version? Are they greater than or equal to 2.4.0? What GCC version are you using? Is that what is called for on the module page?

# Find running kernel version
uname -r

# What compiler version do I have installed
gcc -v
gcc --version

# What is the running kernel and compiler installed
cat /proc/version
Quote:
checking for mawk... no
I notice that the module install is looking for mawk, so perhaps installing that may help. It couldn't hurt to install it.

Last edited by fancypiper; 10-25-2003 at 12:10 PM.
 
Old 10-25-2003, 02:29 PM   #12
Nawaf0
LQ Newbie
 
Registered: Aug 2003
Location: Saudi Arabia
Distribution: Mandrake
Posts: 9

Original Poster
Rep: Reputation: 0
I will do that and try to let u know the results.

But. How can i install the "mawk"???!
 
Old 10-25-2003, 06:02 PM   #13
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
What happens if you command:

urpmi mawk

Easy urpmi config for Mandrake
urpmi mini-HOWTO
 
Old 10-27-2003, 04:08 PM   #14
Nawaf0
LQ Newbie
 
Registered: Aug 2003
Location: Saudi Arabia
Distribution: Mandrake
Posts: 9

Original Poster
Rep: Reputation: 0
mawk was installed fine.
i did what u suggest as following:

Find Kernel Version:
2.4.21-0.13mdk
-------------------------------------------------------------
# What compiler version do I have installed?
[root@localhost pctel-0.8.6]# gcc -v
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-languages=c,c++,ada,f77,objc,java --host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
[root@localhost pctel-0.8.6]#

[root@localhost pctel-0.8.6]# gcc --version
gcc (GCC) 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@localhost pctel-0.8.6]#
-----------------------------------------------------------------

# What is the running kernel and compiler installed?
[root@localhost pctel-0.8.6]# cat /proc/version
Linux version 2.4.21-0.13mdk (flepied@bi.mandrakesoft.com) (gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)) #1 Fri Mar 14 15:08:06 EST 2003
[root@localhost pctel-0.8.6]#
-----------------------------------------------------------------
But when i tried to install the driver i got again the following ERROR msg:

[root@localhost pctel-0.8.6]# ./configure --with-hal=pct789
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking build driver for... HAL_PCT789
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking whether make sets ${MAKE}... (cached) yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for mawk... mawk
checking for /usr/src/linux/include/linux/modversions.h... yes
checking for Linux kernel version >= 2.4.0... ./configure: line 1537: test: 2.13mdk: integer expression expected
no
configure: error: You should have linux kernel >= 2.4.0 installed
[root@localhost pctel-0.8.6]#

fancipipper i really appreciate ypir help. thank you again..

Last edited by Nawaf0; 10-27-2003 at 04:11 PM.
 
  


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
pctel modem Israfel2000 Linux - General 2 04-09-2005 08:18 PM
pctel modem firestomper41 Mandriva 1 02-07-2005 07:27 PM
Pctel Modem problem dragoon linux Linux - Hardware 6 12-01-2003 09:52 AM
PCTel Modem.. Nawaf0 Linux - Hardware 2 10-24-2003 07:36 AM
PCTel Modem on Mandrake 9.1 bassgey Linux - Laptop and Netbook 2 09-03-2003 07:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:44 AM.

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