[Problem] Compiling/Installing ALFA Network driver

General support questions including new installations
CardScape
Posts: 6
Joined: 2011/06/22 23:13:32
Contact:

[Problem] Compiling/Installing ALFA Network driver

Postby CardScape » 2011/06/22 23:22:09

Hi,

I've just installed CentOS in my PC - removed win 7.
and i have a problem in driver installing
these are the commands :

Code: Select all

make
make install


log :

Code: Select all

[CardScape@cardscape ~]$ dir
Desktop
rtl8187L_linux_26.1039.0104.2010.release
rtl8187L_linux_26.1039.0104.2010.release.tar.gz

[CardScape@cardscape ~]$ cd rtl8187L_linux_26.1039.0104.2010.release

[CardScape@cardscape rtl8187L_linux_26.1039.0104.2010.release]$ sudo make
/usr/src/kernels/2.6.18-238.el5-PAE-i686/scripts/gcc-version.sh: line 11: gcc: command not found

/usr/src/kernels/2.6.18-238.el5-PAE-i686/scripts/gcc-version.sh: line 12: gcc: command not found

make[1]: gcc: Command not found

make[1]: Entering directory `/usr/src/kernels/2.6.18-238.el5-PAE-i686'

  CC [M]  /home/CardScape/rtl8187L_linux_26.1039.0104.2010.release/rtl8187/r8187_core.o

/bin/sh: gcc: command not found

make[2]: *** [/home/CardScape/rtl8187L_linux_26.1039.0104.2010.release/rtl8187/r8187_core.o] Error 127

make[1]: *** [_module_/home/CardScape/rtl8187L_linux_26.1039.0104.2010.release/rtl8187] Error 2

make[1]: Leaving directory `/usr/src/kernels/2.6.18-238.el5-PAE-i686'

make: *** [all] Error 2

[CardScape@cardscape rtl8187L_linux_26.1039.0104.2010.release]$ sudo make install

/lib/modules/2.6.18-238.el5PAE/kernel/drivers/net/wireless/rtl818x/rtl8187.ko: \
    /lib/modules/2.6.18-238.el5PAE/kernel/net/mac80211/mac80211.ko \
    /lib/modules/2.6.18-238.el5PAE/kernel/net/wireless/cfg80211.ko \
    /lib/modules/2.6.18-238.el5PAE/kernel/net/rfkill/rfkill.ko \
    /lib/modules/2.6.18-238.el5PAE/kernel/net/wireless/wireless_compat.ko \
    /lib/modules/2.6.18-238.el5PAE/kernel/drivers/misc/eeprom_93cx6.ko

/lib/modules/2.6.18-238.el5PAE/kernel/drivers/net/wireless/rtl818x/rtl8187.ko: \
    /lib/modules/2.6.18-238.el5PAE/kernel/net/mac80211/mac80211.ko \
    /lib/modules/2.6.18-238.el5PAE/kernel/net/wireless/cfg80211.ko \
    /lib/modules/2.6.18-238.el5PAE/kernel/net/rfkill/rfkill.ko \
    /lib/modules/2.6.18-238.el5PAE/kernel/net/wireless/wireless_compat.ko \
    /lib/modules/2.6.18-238.el5PAE/kernel/drivers/misc/eeprom_93cx6.ko

make[1]: Entering directory `/home/CardScape/rtl8187L_linux_26.1039.0104.2010.release/rtl8187'

make -C /lib/modules/2.6.18-238.el5PAE/build M=/home/CardScape/rtl8187L_linux_26.1039.0104.2010.release/rtl8187 CC=gcc modules

/usr/src/kernels/2.6.18-238.el5-PAE-i686/scripts/gcc-version.sh: line 11: gcc: command not found

/usr/src/kernels/2.6.18-238.el5-PAE-i686/scripts/gcc-version.sh: line 12: gcc: command not found

make[2]: gcc: Command not found

make[2]: Entering directory `/usr/src/kernels/2.6.18-238.el5-PAE-i686'

  CC [M]  /home/CardScape/rtl8187L_linux_26.1039.0104.2010.release/rtl8187/r8187_core.o

/bin/sh: gcc: command not found

make[3]: *** [/home/CardScape/rtl8187L_linux_26.1039.0104.2010.release/rtl8187/r8187_core.o] Error 127

make[2]: *** [_module_/home/CardScape/rtl8187L_linux_26.1039.0104.2010.release/rtl8187] Error 2

make[2]: Leaving directory `/usr/src/kernels/2.6.18-238.el5-PAE-i686'

make[1]: *** [modules] Error 2

make[1]: Leaving directory `/home/CardScape/rtl8187L_linux_26.1039.0104.2010.release/rtl8187'

make: *** [install] Error 2

[CardScape@cardscape rtl8187L_linux_26.1039.0104.2010.release]$

lystor
Posts: 187
Joined: 2008/09/10 15:46:12
Location: Ukraine, Donetsk

Re: [Problem] Compiling/Installing ALFA Network driver

Postby lystor » 2011/06/23 05:14:12

make[1]: gcc: Command not found


Hi
Install gcc and kernel-devel packages:

Code: Select all

# yum install gcc kernel-devel

CardScape
Posts: 6
Joined: 2011/06/22 23:13:32
Contact:

Re: [Problem] Compiling/Installing ALFA Network driver

Postby CardScape » 2011/06/23 12:43:53

I can't use internet in my centos PC.....

lystor
Posts: 187
Joined: 2008/09/10 15:46:12
Location: Ukraine, Donetsk

Re: [Problem] Compiling/Installing ALFA Network driver

Postby lystor » 2011/06/23 12:52:53

CardScape wrote:
I can't use internet in my centos PC.....

Download rpm packages from CentOS repositories, copy them to your server and install using rpm:

Code: Select all

#rpm -Uvh *.rpm


CentOS 5 updates repository: http://mirror.centos.org/centos/5/updates/i386/RPMS/

CardScape
Posts: 6
Joined: 2011/06/22 23:13:32
Contact:

Re: [Problem] Compiling/Installing ALFA Network driver

Postby CardScape » 2011/06/23 15:18:25

ok connected by ethernet cable
installed gcc and kernel-devel
but i still get the error :

Code: Select all

[CardScape@cardscape rtl8187L_linux_26.1039.0104.2010.release]$ sudo make
[sudo] password for CardScape:
/usr/src/kernels/2.6.18-238.el5-PAE-i686/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/kernels/2.6.18-238.el5-PAE-i686/scripts/gcc-version.sh: line 12: gcc: command not found
make[1]: execvp: gcc: Permission denied
make[1]: Entering directory `/usr/src/kernels/2.6.18-238.el5-PAE-i686'
  CC [M]  /home/CardScape/rtl8187L_linux_26.1039.0104.2010.release/rtl8187/r8187_core.o
/bin/sh: gcc: command not found
make[2]: *** [/home/CardScape/rtl8187L_linux_26.1039.0104.2010.release/rtl8187/r8187_core.o] Error 127
make[1]: *** [_module_/home/CardScape/rtl8187L_linux_26.1039.0104.2010.release/rtl8187] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-238.el5-PAE-i686'
make: *** [all] Error 2
[CardScape@cardscape rtl8187L_linux_26.1039.0104.2010.release]$

lystor
Posts: 187
Joined: 2008/09/10 15:46:12
Location: Ukraine, Donetsk

Re: [Problem] Compiling/Installing ALFA Network driver

Postby lystor » 2011/06/23 15:22:24

CardScape wrote:
installed gcc and kernel-devel
but i still get the error :

Please show:

Code: Select all

$ rpm -q gcc
$ which gcc

CardScape
Posts: 6
Joined: 2011/06/22 23:13:32
Contact:

Re: [Problem] Compiling/Installing ALFA Network driver

Postby CardScape » 2011/06/23 15:45:44

lystor wrote:
Please show:

Code: Select all

$ rpm -q gcc
$ which gcc


Code: Select all

[CardScape@cardscape ~]$ rpm -q gcc
gcc-4.1.2-50.el5
[CardScape@cardscape ~]$ which gcc
/usr/bin/which: no gcc in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/CardScape/bin)
[CardScape@cardscape ~]$

lystor
Posts: 187
Joined: 2008/09/10 15:46:12
Location: Ukraine, Donetsk

Re: [Problem] Compiling/Installing ALFA Network driver

Postby lystor » 2011/06/23 16:07:33

/usr/bin/which: no gcc in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/CardScape/bin)


Code: Select all

$ rpm -V gcc
$ ls -l /usr/bin/gcc
$ /usr/bin/gcc --version

CardScape
Posts: 6
Joined: 2011/06/22 23:13:32
Contact:

Re: [Problem] Compiling/Installing ALFA Network driver

Postby CardScape » 2011/06/23 16:11:56

lystor wrote:
/usr/bin/which: no gcc in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/CardScape/bin)


Code: Select all

$ rpm -V gcc
$ ls -l /usr/bin/gcc
$ /usr/bin/gcc --version


Code: Select all

[CardScape@cardscape ~]$ rpm -V gcc
.M......    /usr/bin/gcc
[CardScape@cardscape ~]$ ls -l /usr/bin/gcc
total 4
drwxr-xr-x 3 root root 4096 Jun 22 14:32 i386-redhat-linux
[CardScape@cardscape ~]$ /usr/bin/gcc --version
bash: /usr/bin/gcc: is a directory
[CardScape@cardscape ~]$

lystor
Posts: 187
Joined: 2008/09/10 15:46:12
Location: Ukraine, Donetsk

Re: [Problem] Compiling/Installing ALFA Network driver

Postby lystor » 2011/06/23 16:19:51

CardScape wrote:
bash: /usr/bin/gcc: is a directory

Remove invalid /usr/bin/gcc directory and reinstall gcc rpm package:

Code: Select all

# rm -rf /usr/bin/gcc
# rpm -e --nodeps gcc
# rpm -Uvh gcc*rpm


Return to “CentOS 5 - General Support”

Who is online

Users browsing this forum: No registered users and 1 guest