Instalacja archiwalnej wersji GCC - sk

Tematy związane z oprogramowaniem, instalacją, konfiguracją
razor85
Posty: 4
Rejestracja: 18 kwietnia 2009, 13:32

Instalacja archiwalnej wersji GCC - skąd?

Post autor: razor85 »

Cześć.
Potrzebuję zainstalować kompilator gcc w wersji od 3 do 3.3.3 włącznie.
W wyszukiwarce pakietów Debiana nie znalazłem takiej wersji - jest jedynie 3.3.6. Kompilacja mojego programu wywala się jednak przy tej wersji.
Pytanie do was - będę zmuszony do kompilacji ze źródeł czy jest gdzieś archiwalne repozytorium gdzie są takie pakiety instalacyjne jakich szukam?
maly
Beginner
Posty: 289
Rejestracja: 03 lipca 2007, 14:52

Post autor: maly »

Kod: Zaznacz cały

maly@debian:~$ aptitude show gcc 
Pakiet: gcc
Stan: zainstalowany
Zainstalowany automatycznie: tak
Wersja: 4:4.3.3-2
Priorytet: opcjonalny
Sekcja: devel
Opiekun: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Rozmiar rozpakowanego: 65,5k
Wymaga: cpp (>= 4:4.3.3-2), gcc-4.3 (>= 4.3.3-2)
Poleca: libc6-dev | libc-dev
Sugeruje: gcc-multilib, make, manpages-dev, autoconf, automake1.9, libtool,
          flex, bison, gdb, gcc-doc
W konflikcie z: gcc-doc (< 1:2.95.3)
Udostępnia: c-compiler
Opis: Kompilator GNU C
 Jest to kompilator GNU C, w miarę przenośny optymalizujący kompilator dla C. 
 
 Jest to pakiet zależności dostarczający domyślny kompilator GNU C.
Najlepiej ( gcc-4.3 ):

Kod: Zaznacz cały

aptitude install build-essential
razor85
Posty: 4
Rejestracja: 18 kwietnia 2009, 13:32

Post autor: razor85 »

Spokojnie, czytaj ze zrozumieniem ;-)
Potrzebne jest gcc w wersji 3 do 3.3.3 włącznie. Dla utrudnienia dodam, że nie mam dojścia do internetu dla tej maszynki i potrzebuję pakiecik w wersji offline.
Awatar użytkownika
lis6502
Member
Posty: 1798
Rejestracja: 05 listopada 2008, 20:14
Lokalizacja: Miasto Szybowców

Post autor: lis6502 »

Kod: Zaznacz cały

lis6502@Nexus:~$ apt-cache search gcc- |grep gcc
gcc-3.4 - The GNU C compiler
gcc-3.4-base - The GNU Compiler Collection (base package)
gcc-4.1 - The GNU C compiler
gcc-4.1-base - The GNU Compiler Collection (base package)
gcc-4.1-locales - The GNU C compiler (native language support files)
gcc-4.1-multilib - The GNU C compiler (multilib files)
gcc-4.1-source - Source of the GNU Compiler Collection
gcc-4.2 - The GNU C compiler
gcc-4.2-base - The GNU Compiler Collection (base package)
gcc-4.2-locales - The GNU C compiler (native language support files)
gcc-4.2-multilib - The GNU C compiler (multilib files)
gcc-4.2-source - Source of the GNU Compiler Collection
gcc-avr - The GNU C compiler (cross compiler for avr)
gcc-h8300-hms - The GNU C compiler (cross compiler for h8300-hitachi-coff)
gcc-m68hc1x - GNU C compiler for the Motorola 68HC11/12 processors
gcc-multilib - The GNU C compiler (multilib files)
gccxml - XML output extension to GCC
libsoci-core-gcc-dbg - C++ Database Access Library (debug symbols)
libsoci-core-gcc-dev - C++ Database Access Library (devel)
gcc-doc - documentation for the GNU compilers (gcc, gobjc, g++)
gcc-4.1-doc - documentation for the GNU compilers (gcc, gobjc, g++)
gcc-4.2-doc - documentation for the GNU compilers (gcc, gobjc, g++)
gcc-4.3-doc - documentation for the GNU compilers (gcc, gobjc, g++)
gcc-doc-base - several GNU manual pages
gcc-4.3 - The GNU C compiler
gcc-4.3-base - The GNU Compiler Collection (base package)
gcc-4.3-locales - The GNU C compiler (native language support files)
gcc-4.3-multilib - The GNU C compiler (multilib files)
gcc-4.3-source - Source of the GNU Compiler Collection
gcc-snapshot - A SNAPSHOT of the GNU Compiler Collection
llvm-gcc-4.2 - C/C++ front end for LLVM compiler
To wyplutka ze Squeeze/Sida

Kod: Zaznacz cały

lis@Tensor:~$ apt-cache search gcc- |grep gcc
gcc-3.4 - The GNU C compiler
gcc-3.4-base - The GNU Compiler Collection (base package)
gcc-4.1 - The GNU C compiler
gcc-4.1-base - The GNU Compiler Collection (base package)
gcc-4.1-locales - The GNU C compiler (native language support files)
gcc-4.1-source - Source of the GNU Compiler Collection
to z Etcha. Wcześniejszych nie posiadam :D
No ale to Debian. Gentoo

Kod: Zaznacz cały

[I] sys-devel/gcc
     Available versions:
        (2.95)  2.95.3-r9 ~2.95.3-r10!s
        (3.1)   3.1.1-r2
        (3.2)   **3.2.2!s 3.2.3-r4
        (3.3)   ~3.3.6-r1!s
        (3.4)   3.4.6-r2!s
        (4.0)   ~*4.0.4!s
        (4.1)   4.1.2!s
        (4.2)   ~4.2.4-r1!s
        (4.3)   **4.3.0!s ~4.3.1!s ~4.3.1-r1!s ~4.3.2!s ~4.3.2-r2!s 4.3.2-r3!s ~4.3.3!s ~4.3.3-r2!s                                                                               
ale wiadomo, co Gentoo to Gentoo.
Poza tym ściąganie pakiecików może być bolesne, jeśli prześledzisz zależności gcc. Na Twoim miejscu zainteresowałbym się Crosstoolem. Fragment pliku konfiguracyjnego dla x86
#eval `cat i686.dat gcc-2.95.3-glibc-2.1.3.dat` sh all.sh --notest
#eval `cat i686.dat gcc-2.95.3-glibc-2.2.2.dat` sh all.sh --notest
#eval `cat i686.dat gcc-2.95.3-glibc-2.2.5.dat` sh all.sh --notest
#eval `cat i686.dat gcc-3.2.3-glibc-2.2.5.dat` sh all.sh --notest
#eval `cat i686.dat gcc-3.2.3-glibc-2.3.2.dat` sh all.sh --notest
#eval `cat i686.dat gcc-3.3.6-glibc-2.1.3.dat` sh all.sh --notest
#eval `cat i686.dat gcc-3.3.6-glibc-2.2.2.dat` sh all.sh --notest
#eval `cat i686.dat gcc-3.3.6-glibc-2.2.5.dat` sh all.sh --notest
#eval `cat i686.dat gcc-3.3.6-glibc-2.3.2.dat` sh all.sh --notest
#eval `cat i686.dat gcc-3.3.6-glibc-2.3.5.dat` sh all.sh --notest
#eval `cat i686.dat gcc-3.3.6-glibc-2.3.5-tls.dat` sh all.sh --notest
#eval `cat i686.dat gcc-3.3.6-glibc-2.3.6.dat` sh all.sh --notest
#eval `cat i686.dat gcc-3.3.6-glibc-2.3.6-tls.dat` sh all.sh --notest
#eval `cat i686.dat gcc-3.4.5-glibc-2.2.2.dat` sh all.sh --notest
#eval `cat i686.dat gcc-3.4.5-glibc-2.2.5.dat` sh all.sh --notest
#eval `cat i686.dat gcc-3.4.5-glibc-2.3.2.dat` sh all.sh --notest
#eval `cat i686.dat gcc-3.4.5-glibc-2.3.5.dat` sh all.sh --notest
#eval `cat i686.dat gcc-3.4.5-glibc-2.3.5-tls.dat` sh all.sh --notest
#eval `cat i686.dat gcc-3.4.5-glibc-2.3.6.dat` sh all.sh --notest
#eval `cat i686.dat gcc-3.4.5-glibc-2.3.6-tls.dat` sh all.sh --notest
także dla każdego coś dobrego. Możesz odpalić na z opcją --nobuild, pobierze paczki, które później przeniesiesz na maszynę docelową i dokonasz właściwej kompilacji potrzebnych narzędzi.
ODPOWIEDZ