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..... |
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 - Code:
[root@tinwhistle root]# cd /usr/src 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 Next, did I install the compiler? Code:
[root@tinwhistle src]# gcc -v 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. :tisk: Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing. :study: # 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 |
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]$ |
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? |
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]# |
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. |
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 |
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. |
# 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 |
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.. |
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:
|
I will do that and try to let u know the results.
But. How can i install the "mawk"???! |
|
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.. |
All times are GMT -5. The time now is 02:11 PM. |