Script de compilação automática do GCC-5.3.0 para Debian/Ubuntu de 32 bits
Publicado por Mário RPG (última atualização em 25/04/2016)
[ Hits: 2.782 ]
Homepage: www.fsfla.org
Download 6398.scriptgcc-5.3.0_32BITS.sh
Script de compilação automática do GCC para Ubuntu, Debian, Mint, Trisquel 12.04+ de 32 bits. Ele baixa e instala todas as dependências e compiladores automaticamente.
Como executar:
$ time sudo bash scriptgcc-5.3.0_32BITS.sh
Pagina do projeto:
https://sourceforge.net/projects/scriptkernel/files/?source=navbar
#!/bin/bash # # Script de compilação automatica do GCC para DEBIAN/UBUNTU 32 BITS, # baixa e instala todas as dependencias e compiladores automaticamente # # GPLv3 # # # como executar: # # $ time sudo bash scriptgcc-4.X.X_32BITS.sh # # # ################################################################################## ########################################### ### escolha aqui a versão do GCC a ser compilada ################## vs=5.3.0 ################### # versão das dependencias principais ################################ gmpvs=6.1.0 mpfrvs=3.1.3 mpcvs=1.0.3 ################### #CL=$(grep -c processor /proc/cpuinfo) # baixando dependencias do GCC via apt-get ######## sudo apt-get install gcc g++ build-essential make libgmp3-dev libgmp3c2 libmpfr-dev libmpc-dev flex bison -y sudo apt-get build-dep gcc-4.6 g++-4.6 gcj-4.6 -y sudo apt-get install gmpc mpc fixincludes m4 -y sudo mkdir /home/gcc-$vs cd /home/gcc-$vs # baixando e compilando as dependencias principais ################# wget -c http://mirrors.kernel.org/gnu/gmp/gmp-$gmpvs.tar.bz2 tar -jxpvf gmp-$gmpvs.tar.bz2 cd /home/gcc-$vs/gmp-$gmpvs sudo ./configure sudo make -j2 sudo make -j2 check sudo make -j2 install # cd /home/gcc-$vs # wget -c http://mirrors.kernel.org/gnu/mpfr/mpfr-$mpfrvs.tar.bz2 tar -jxpvf mpfr-$mpfrvs.tar.bz2 cd /home/gcc-$vs/mpfr-$mpfrvs sudo ./configure sudo make -j2 sudo make -j2 check sudo make -j2 install # cd /home/gcc-$vs wget -c http://mirrors.kernel.org/gnu/mpc/mpc-$mpcvs.tar.gz tar -zxpvf mpc-$mpcvs.tar.gz cd /home/gcc-$vs/mpc-$mpcvs sudo ./configure sudo make -j2 sudo make -j2 check sudo make -j2 install # ######################################################################################################### cd /home/gcc-$vs # # baixando e decompactando o source do GCC wget -c http://mirrors.concertpass.com/gcc/releases/gcc-$vs/gcc-$vs.tar.bz2 #wget -c http://gcc.petsads.us/releases/gcc-$vs/gcc-$vs.tar.bz2 tar -jxpvf gcc-$vs.tar.bz2 # cd /home/gcc-$vs/gcc-$vs # # arquitetura utilizada na compilação ################### #export C_INCLUDE_PATH=/usr/include/x86_64-linux-gnu #export CPLUS_INCLUDE_PATH=/usr/include/x86_64-linux-gnu #LIBRARY_PATH=/usr/lib/x86_64-linux-gnu # executando a configuração das dependencias e os compiladores que serão suportados nessa versão ########### #./configure --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --enable-clocale=gnu --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-gmp --with-mpfr --with-gmp-include=/home/gcc-$vs/gmp-$gmpvs/gmp --with-gmp-lib=/home/gcc-$vs/gmp-$gmpvs/.libs --with-mpfr-include=/home/gcc-$vs/mpfr-$mpfrvs/mpfr --with-mpfr-lib=/home/gcc-$vs/mpfr-$mpfrvs/.libs #./configure -v --enable-languages=c,c++,fortran,objc --prefix=/usr --with-gmp --with-mpfr --with-gmp-include=/home/gcc-$vs/gmp-$gmpvs/gmp --with-gmp-lib=/home/gcc-$vs/gmp-$gmpvs/.libs --with-mpfr-include=/home/gcc-$vs/mpfr-$mpfrvs/mpfr --with-mpfr-lib=/home/gcc-$vs/mpfr-$mpfrvs/.libs --with-gmp-lib=/usr/local/lib --with-mpfr-lib=/usr/local/lib --with-mpc-lib=/usr/local/lib --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-gnu-unique-object --enable-plugin --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=x86_64-unknown-linux-gnu #export PROJECT_DIR=$(cd /home/gcc-4.7 && pwd && cd - &>/dev/null) ./configure -v --enable-languages=c,c++,fortran,objc,obj-c++,java --prefix=/usr --with-gmp-include=$(pwd)/../gcc-5.3.0/gmp/src --with-gmp-lib=$(pwd)/gmp/src/.libs --with-mpfr-include=$(pwd)/../gcc-5.3.0/mpfr/src --with-mpfr-lib=$(pwd)/mpfr/src/.libs --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --enable-java-gc=boehm --enable-java-awt=xlib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-gnu-unique-object --enable-plugin --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i386-linux-gnu --host=i386-linux-gnu --target=i386-linux-gnu # inicia a compilação e logo depois a instalação ###################### make -j2 make -j2 install echo 'processo terminado com exito'
Script p/ instalar o modem pctel onboard
Procurando um padrão num arquivo
Função que indica o estado do funcionamento do script
Nenhum comentário foi encontrado.
Enviar mensagem ao usuário trabalhando com as opções do php.ini
Meu Fork do Plugin de Integração do CVS para o KDevelop
Compartilhando a tela do Computador no Celular via Deskreen
Como Configurar um Túnel SSH Reverso para Acessar Sua Máquina Local a Partir de uma Máquina Remota
Configuração para desligamento automatizado de Computadores em um Ambiente Comercial
Compartilhamento de Rede com samba em modo Público/Anônimo de forma simples, rápido e fácil
Cups: Mapear/listar todas as impressoras de outro Servidor CUPS de forma rápida e fácil
Criando uma VPC na AWS via CLI