Visualizzazione dei risultati da 1 a 3 su 3

Discussione: gcc not found

  1. #1

    gcc not found

    ciao,
    ho una mandriva 2007 spring e sto tentando di installare i driver ati come da procedura.

    ho gcc 4.1.2 (gcc è un link simbolico a /usr/local/bin a usr/bin/gcc-4.1.2):

    # gcc
    gcc gcc-4.1.2 gcc4.1-version
    Purtroppo quando installo i pacchetti per la ATI ho il seguente messaggio d'errore:

    # urpmi ati-8.34.8-2.1plf2007.1.i586.rpm dkms-ati-8.34.8-2.1plf2007.1.i586.rpm

    installazione di dkms-ati-8.34.8-2.1plf2007.1.i586.rpm
    ati-8.34.8-2.1plf2007.1.i586.rpm
    In preparazione... ################################################## #########################
    1/2: ati ################################################## #########################
    2/2: dkms-ati ################################################## #########################

    Creating symlink /var/lib/dkms/ati/8.34.8-2.1plf2007.1/source ->
    /usr/src/ati-8.34.8-2.1plf2007.1

    DKMS: add Completed.

    Preparing kernel 2.6.17-16mdv for module build:
    (This is not compiling a kernel, just preparing kernel symbols)
    Storing current .config to be restored when complete
    Running Mandriva Linux style preparation routine
    make clean....
    using /proc/config.gz
    make oldconfig....(bad exit status: 2)
    running dkms_mkkerneldoth....

    Building module:
    cleaning build area...
    KERNEL_PATH=/lib/modules/2.6.17-16mdv/build uname_r=2.6.17-16mdv sh make.sh....(bad exit status: 1)

    Error! Bad return status for module build on kernel: 2.6.17-16mdv (i586)
    Consult the make.log in the build directory
    /var/lib/dkms/ati/8.34.8-2.1plf2007.1/build/ for more information.

    DO YOU HAVE gcc INSTALLED???

    Error! Could not locate fglrx.ko.gz for module ati in the DKMS tree.
    You must run a dkms build for kernel 2.6.17-16mdv (i586) first.

    il file make.log conferma il problema relativo a gcc:

    codice:
     Assuming default munmap API
    doing Makefile based build for kernel 2.6.x and higher
    /bin/sh: gcc: command not found
    /bin/sh: gcc: command not found
    make -C /lib/modules/2.6.17-16mdv/build SUBDIRS=/var/lib/dkms/ati/8.34.8-2.1plf2007.1/build/2.6.x modules
    /usr/src/linux-2.6.17-16mdv/scripts/gcc-version.sh: line 11: gcc: command not found
    /usr/src/linux-2.6.17-16mdv/scripts/gcc-version.sh: line 12: gcc: command not found
    make[1]: gcc: Command not found
    make[1]: Entering directory `/usr/src/linux-2.6.17-16mdv'
    
      WARNING: Symbol version dump /usr/src/linux-2.6.17-16mdv/Module.symvers
               is missing; modules will have no dependencies and modversions.
    
    /bin/sh: gcc: command not found
    /bin/sh: gcc: command not found
    /bin/sh: gcc: command not found
    /bin/sh: gcc: command not found
    /bin/sh: gcc: command not found
    /bin/sh: gcc: command not found
    /bin/sh: gcc: command not found
    /bin/sh: gcc: command not found
    /bin/sh: gcc: command not found
    /bin/sh: gcc: command not found
      CC [M]  /var/lib/dkms/ati/8.34.8-2.1plf2007.1/build/2.6.x/firegl_public.o
    /bin/sh: gcc: command not found
    make[2]: *** [/var/lib/dkms/ati/8.34.8-2.1plf2007.1/build/2.6.x/firegl_public.o] Error 127
    make[1]: *** [_module_/var/lib/dkms/ati/8.34.8-2.1plf2007.1/build/2.6.x] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.17-16mdv'
    make: *** [kmod_build] Error 2
    build failed with return value 2
    Forse il compilatore gcc 4.1.2 è in beta e devo installare il 3.3 ????
    AMD Phenom II X6 1090T, ASUS M3A78-CM, GTX460 OC 1GB, CentOS 7 & Thinkpad T410 windows & Fairphone FP2

  2. #2
    Utente di HTML.it L'avatar di untamed
    Registrato dal
    Sep 2004
    Messaggi
    830
    Prova a impostare la variabile d'ambiente CC con il percorso del gcc.
    "La fede in una missione divina è una delle tante forme di certezza che hanno afflitto la razza umana." - Bertrand Russell

  3. #3
    ok, ho trovato che un ipotetico gcc-config poteva permettermi di settare la versione ma non funziona con il mio pc...

    per cui ho fatto un link simbolico alla versione di gcc3.3 ... poi serviva il gcc4.1 (ed io ho il gcc 4.1.2) per cui ho fatto un link alla versione 4 di gcc ...

    tutto molto semplice... ora comunque son riuscito ad installarlo.
    codice:
    make oldconfig.....
    running dkms_mkkerneldoth....
    
    Building module:
    cleaning build area...
    KERNEL_PATH=/lib/modules/2.6.17-16mdv/build uname_r=2.6.17-16mdv sh make.sh.....
    cleaning build area...
    
    DKMS: build Completed.
    Running module version sanity check.
    
    fglrx.ko.gz:
     - Original module
       - No original module exists within this kernel
     - Installation
       - Installing to /lib/modules/2.6.17-16mdv/kernel/drivers/video/
    
    depmod....
    
    DKMS: install Completed.
    AMD Phenom II X6 1090T, ASUS M3A78-CM, GTX460 OC 1GB, CentOS 7 & Thinkpad T410 windows & Fairphone FP2

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.