|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Oct 2001
Città: Milano
Messaggi: 411
|
gcc 3.3.2
Salve a tutti,
sono un neofita di Linux e ho installato Mandrake Linux 9.2 ( la versione su tre CD ) con la quale mi trovo benissimo. Il mio problema è che volendo aggiornare il kernel alla versione 2.6 non riesco a compilarlo, poichè sospetto che mi manchi il compilatore gcc. Ho quindi proceduto ad effettuare il download del gcc 3.3.2 e decomprimerlo nella cartella usr/src. Come devo fare adesso per installarlo ? HELP ME !!!
__________________
Apple Imac 24'' |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Jun 2003
Città: Genova
Messaggi: 5676
|
installalo con urpmi!
ciao |
![]() |
![]() |
![]() |
#3 |
Senior Member
Iscritto dal: Oct 2001
Città: Milano
Messaggi: 411
|
Credo di averlo installato correttamente, mi da questa schermata :
[root@localhost src]# gcc -v Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.1/specs Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/li-mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threadosix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-langua=c,c++,ada,f77,objc,java,pascal --host=i586-mandrake-linux-gnu --with-system-zli Thread model: posix gcc version 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk) [root@localhost src]# E adesso come devo procedere per l' installazione del nuovo kernel ? Perchè con i classici comandi "Make menuconfig" e Make xconfig" non riesco a far partire nulla. Grazie e scusami ma in ambiente linux sono ancora allo stadio di utonto !
__________________
Apple Imac 24'' |
![]() |
![]() |
![]() |
#4 |
Senior Member
Iscritto dal: Nov 2002
Città: Morio Cho
Messaggi: 2595
|
ma questo e` il 3.3.1; tu mica avevi scaricato il 3.3.2?
Puo` pure essere che il 3.3.2 sia installato, ma che gcc, che di solito e` un link, punti ancora al 3.3.1. Prova Codice:
ls -lh /usr/bin/gcc* Guldo
__________________
Sono GULDO, non Guido! Cioè, certo che guido... Bé, insomma, avete capito ![]() Linux 2.6.26|Debian|Debian@Hwupgrade|Debian Clan|Solo Puffin ti darà forza e grinta a volontà! NERD rank 62|Milla Jovovich|大事な物はいつも形の無い物だけ Sito e Forum sul Giappone|La mia libreria su aNobii |
![]() |
![]() |
![]() |
#5 | |
Bannato
Iscritto dal: Feb 2001
Città: Mestre
Messaggi: 886
|
Quote:
sei andato in /usr/src/linux, hai scritto make xconfig e non è successo niente? che errore ti è comparso? |
|
![]() |
![]() |
![]() |
#6 |
Senior Member
Iscritto dal: Oct 2001
Città: Milano
Messaggi: 411
|
Allora, con il comando :
[root@localhost gcc-3.3.2]# ls -lh /usr/bin/gcc* mi appare questa schermata lrwxrwxrwx 1 root root 21 dic 29 15:49 /usr/bin/gcc -> /etc/alternatives/gcc* -rwxr-xr-x 1 root root 83K set 1 14:49 /usr/bin/gcc-3.3.1* -rwxr-xr-x 1 root root 23 set 1 14:48 /usr/bin/gcc3.3-version* [root@localhost gcc-3.3.2]# invece quando cerco di entrare nella cartella linux-2.6.0 in usr/src per lanciare il comando make menuconfig o make xconfig mi appare questo messaggio d' errore : [root@localhost src]# cd linux-2.6.0 [root@localhost linux-2.6.0]# dir arch Documentation init MAINTAINERS README sound COPYING drivers ipc Makefile REPORTING-BUGS usr CREDITS fs kernel mm scripts crypto include lib net security [root@localhost linux-2.6.0]# make menuconfig make[1]: `scripts/fixdep' is up to date. HOSTCC scripts/lxdialog/checklist.o In file included from scripts/lxdialog/checklist.c:24: scripts/lxdialog/dialog.h:29:20: curses.h: No such file or directory In file included from scripts/lxdialog/checklist.c:24: scripts/lxdialog/dialog.h:127: error: syntax error before "use_colors" scripts/lxdialog/dialog.h:127: warning: type defaults to `int' in declaration of `use_colors' scripts/lxdialog/dialog.h:127: warning: data definition has no type or storage class scripts/lxdialog/dialog.h:128: error: syntax error before "use_shadow" scripts/lxdialog/dialog.h:128: warning: type defaults to `int' in declaration of `use_shadow' scripts/lxdialog/dialog.h:128: warning: data definition has no type or storage class scripts/lxdialog/dialog.h:130: error: syntax error before "attributes" scripts/lxdialog/dialog.h:130: warning: type defaults to `int' in declaration of `attributes' scripts/lxdialog/dialog.h:130: warning: data definition has no type or storage class scripts/lxdialog/dialog.h:143: error: syntax error before '*' token scripts/lxdialog/dialog.h:143: warning: function declaration isn't a prototype scripts/lxdialog/dialog.h:146: error: syntax error before '*' token scripts/lxdialog/dialog.h:146: warning: function declaration isn't a prototype scripts/lxdialog/dialog.h:147: error: syntax error before '*' token scripts/lxdialog/dialog.h:147: warning: function declaration isn't a prototype scripts/lxdialog/dialog.h:148: error: syntax error before '*' token scripts/lxdialog/dialog.h:149: warning: function declaration isn't a prototype scripts/lxdialog/dialog.h:150: error: syntax error before '*' token scripts/lxdialog/dialog.h:150: warning: function declaration isn't a prototype scripts/lxdialog/checklist.c:32: error: syntax error before '*' token scripts/lxdialog/checklist.c:34: warning: function declaration isn't a prototype scripts/lxdialog/checklist.c: In function `print_item': scripts/lxdialog/checklist.c:38: warning: implicit declaration of function `wattrset' scripts/lxdialog/checklist.c:38: error: `win' undeclared (first use in this function) scripts/lxdialog/checklist.c:38: error: (Each undeclared identifier is reported only once scripts/lxdialog/checklist.c:38: error: for each function it appears in.) scripts/lxdialog/checklist.c:39: warning: implicit declaration of function `wmove' scripts/lxdialog/checklist.c:39: error: `choice' undeclared (first use in this function) scripts/lxdialog/checklist.c:41: warning: implicit declaration of function `waddch' scripts/lxdialog/checklist.c:44: error: `selected' undeclared (first use in this function) scripts/lxdialog/checklist.c:46: warning: implicit declaration of function `wprintw' scripts/lxdialog/checklist.c:46: error: `status' undeclared (first use in this function) scripts/lxdialog/checklist.c:51: warning: implicit declaration of function `mvwaddch' scripts/lxdialog/checklist.c:51: error: `item' undeclared (first use in this function) scripts/lxdialog/checklist.c:53: warning: implicit declaration of function `waddstr' scripts/lxdialog/checklist.c:56: warning: implicit declaration of function `wrefresh' scripts/lxdialog/checklist.c: At top level: scripts/lxdialog/checklist.c:64: error: syntax error before '*' token scripts/lxdialog/checklist.c:66: warning: function declaration isn't a prototype scripts/lxdialog/checklist.c: In function `print_arrows': scripts/lxdialog/checklist.c:67: error: `win' undeclared (first use in this function) scripts/lxdialog/checklist.c:67: error: `y' undeclared (first use in this function) scripts/lxdialog/checklist.c:67: error: `x' undeclared (first use in this function) scripts/lxdialog/checklist.c:69: error: `scroll' undeclared (first use in this function) scripts/lxdialog/checklist.c:82: error: `height' undeclared (first use in this function) scripts/lxdialog/checklist.c:85: error: `item_no' undeclared (first use in this function) scripts/lxdialog/checklist.c:85: error: `choice' undeclared (first use in this function) scripts/lxdialog/checklist.c: At top level: scripts/lxdialog/checklist.c:103: error: syntax error before '*' token scripts/lxdialog/checklist.c:104: warning: function declaration isn't a prototype scripts/lxdialog/checklist.c: In function `print_buttons': scripts/lxdialog/checklist.c:105: error: `width' undeclared (first use in this function) scripts/lxdialog/checklist.c:106: error: `height' undeclared (first use in this function) scripts/lxdialog/checklist.c:108: error: `dialog' undeclared (first use in this function) scripts/lxdialog/checklist.c:108: error: `selected' undeclared (first use in this function) scripts/lxdialog/checklist.c: In function `dialog_checklist': scripts/lxdialog/checklist.c:126: error: `WINDOW' undeclared (first use in this function) scripts/lxdialog/checklist.c:126: error: `dialog' undeclared (first use in this function) scripts/lxdialog/checklist.c:126: error: `list' undeclared (first use in this function) scripts/lxdialog/checklist.c:126: warning: left-hand operand of comma expression has no effect scripts/lxdialog/checklist.c:132: warning: implicit declaration of function `endwin' scripts/lxdialog/checklist.c:133: warning: implicit declaration of function `fprintf' scripts/lxdialog/checklist.c:133: error: `stderr' undeclared (first use in this function) scripts/lxdialog/checklist.c:148: error: `COLS' undeclared (first use in this function) scripts/lxdialog/checklist.c:149: error: `LINES' undeclared (first use in this function) scripts/lxdialog/checklist.c:151: error: `stdscr' undeclared (first use in this function) scripts/lxdialog/checklist.c:153: warning: implicit declaration of function `newwin' scripts/lxdialog/checklist.c:154: warning: implicit declaration of function `keypad' scripts/lxdialog/checklist.c:154: error: `TRUE' undeclared (first use in this function) scripts/lxdialog/checklist.c:187: warning: implicit declaration of function `subwin' scripts/lxdialog/checklist.c:219: warning: implicit declaration of function `wnoutrefresh' scripts/lxdialog/checklist.c:221: warning: implicit declaration of function `doupdate' scripts/lxdialog/checklist.c:224: warning: implicit declaration of function `wgetch' scripts/lxdialog/checklist.c:231: error: `KEY_UP' undeclared (first use in this function) scripts/lxdialog/checklist.c:231: error: `KEY_DOWN' undeclared (first use in this function) scripts/lxdialog/checklist.c:241: error: `FALSE' undeclared (first use in this function) scripts/lxdialog/checklist.c:242: warning: implicit declaration of function `scrollok' scripts/lxdialog/checklist.c:243: warning: implicit declaration of function `wscrl' scripts/lxdialog/checklist.c:270: error: called object is not a function scripts/lxdialog/checklist.c:305: warning: implicit declaration of function `delwin' scripts/lxdialog/checklist.c:309: error: `KEY_LEFT' undeclared (first use in this function) scripts/lxdialog/checklist.c:310: error: `KEY_RIGHT' undeclared (first use in this function) scripts/lxdialog/checklist.c: At top level: scripts/lxdialog/dialog.h:130: warning: array `attributes' assumed to have one element make[2]: *** [scripts/lxdialog/checklist.o] Error 1 make[1]: *** [menuconfig] Error 2 make: *** [menuconfig] Error 2 [root@localhost linux-2.6.0]# Quando lancio make xconfig ecco che invece appare quest' altra cosa meravigliosa : [root@localhost linux-2.6.0]# make xconfig make[1]: `scripts/fixdep' is up to date. * * Unable to find the QT installation. Please make sure that the * QT development package is correctly installed and the QTDIR * environment variable is set to the correct location. * make[1]: *** [scripts/kconfig/.tmp_qtcheck] Error 1 make: *** [xconfig] Error 2 [root@localhost linux-2.6.0]# [root@localhost linux-2.6.0]# make xconfig bash: [root@localhost: command not found [root@localhost linux-2.6.0]# make[1]: `scripts/fixdep' is up to date. > * > * Unable to find the QT installation. Please make sure that the > * QT development package is correctly installed and the QTDIR > * environment variable is set to the correct location. > * > make[1]: *** [scripts/kconfig/.tmp_qtcheck] Error 1 > make: *** [xconfig] Error 2 > [root@localhost linux-2.6.0]# Non so che pesci pigliare, ma una cosa è certa : non mi arrendo !!! HELP ME
__________________
Apple Imac 24'' |
![]() |
![]() |
![]() |
#7 |
Senior Member
Iscritto dal: Jun 2003
Città: Genova
Messaggi: 5676
|
ti mancano le libncurses
ciao |
![]() |
![]() |
![]() |
#8 |
Bannato
Iscritto dal: Feb 2001
Città: Mestre
Messaggi: 886
|
le libncurses per usare make menuconfig, le qt per usare make xconfig (che ti consiglio)
scarica qt-devel o qualcosa simile |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 00:42.