GCC upgrade
Panagiotis Vossos
jacbre at internet.gr
Tue Jul 16 23:22:01 EEST 2002
Tom Diamond <thdiaman at inf.uth.gr> writes:
> Ρε παιδιά, επειδή είμαι νέος και ψιλοχάθηκα : κανένα καλό howto για να
> αναβαθμίσω το gcc υπάρχει; Προς το παρόν έχω gcc 2.95.3, glibc
> 2.2.5-38 σε SuSE 8.0 (kernel 2.4.18). Βασικά σκέφτομαι ότι ο
> προηγούμενος gcc είναι εγκατεστημένος με rpm οπότε δεν ξέρω ποια
> πακέτα να βγάλω ...
Eixa kanei akrivos to idio otan eixa akoma suse 6.4. Gia na deis se
poia paketa einai xorismenos o compiler sou kane:
rpm -qa | grep 2.95.3
Afta mporeis na ta vgaleis me 'rpm -e' otan kaneis install ti dikia
sou version (ektos fisika apo tis shared libs tis c++, kane rpm -ql
gcc gia perissotera). Kalou kakou krata ta original rpms kapou
proxeira se periptosi pou kati paei strava.
Ego ton gcc-2.95.3 mou ton exo kanei compile me tis parakato entoles:
# build gcc outside the source tree
cd ../
rm -rf build-i686-pc-linux-gnu
mkdir -p build-i686-pc-linux-gnu
cd build-i686-pc-linux-gnu
../gcc-2.95.3/configure \
--with-gnu-ld \
--enable-languages=c,c++,f77 \
--with-system-zlib \
--prefix=/usr \
--with-gxx-include-dir=/usr/include/g++ \
--enable-threads=posix \
--enable-shared \
--with-gnu-as \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--disable-debug
make bootstrap
Prosoxi! Me ta parapano, dinontas 'make install' tha steileis ton diko
sou gcc kato apo to /usr, to opoio einai ligo risko. Mia pio asfalis
idea einai na min doseis --prefix kai na paei kato apo /usr/local;
prosopika den eixa pote provlima, alla leme tora. Dio pragmata akoma:
1) Me gcc 3.0x exo doulepsei poli ligo kai oxi sto diko mou mixanima,
opote mporei na eimai lathos, alla prospathise na valeis gcc 3.1
2) Min fovasai mipos xalaseis kati. An exeis proxeira ta original
rpms tis dianomis sou kai mia bootdisk me ena static /bin/rpm
mporeis na diorthoseis ta panta poli efkola.
filika,
panagiotis
--
Kennedy nuclear counter-intelligence Legion of Doom DES kibo Marxist
SEAL Team 6 Ft. Meade Semtex munitions Serbian Khaddafi $400 million
in gold bullion KGB
More information about the Linux-greek-users
mailing list