PDA

View Full Version : gcc 3.3.2


jollynet78
29-12-2003, 13:51
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 !!!

NA01
29-12-2003, 14:00
installalo con urpmi!
ciao

jollynet78
29-12-2003, 15:05
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 !

guldo76
29-12-2003, 16:57
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
ls -lh /usr/bin/gcc*
Se e` cosi`, basta che aggiusti il link.

Guldo

GhePeU
29-12-2003, 18:36
Originariamente inviato da jollynet78
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 !


sei andato in /usr/src/linux, hai scritto make xconfig e non è successo niente? che errore ti è comparso?

jollynet78
29-12-2003, 18:58
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

NA01
29-12-2003, 19:27
ti mancano le libncurses

ciao

GhePeU
29-12-2003, 19:41
le libncurses per usare make menuconfig, le qt per usare make xconfig (che ti consiglio)

scarica qt-devel o qualcosa simile