Autor Tópico: Instalando o GCC - G95 - GFORTRAN UBUNTU 14.03  (Lida 2180 vezes)

Offline Aline de Souza

  • Usuário Ubuntu
  • *
  • Mensagens: 1
    • Ver perfil
Instalando o GCC - G95 - GFORTRAN UBUNTU 14.03
« Online: 26 de Abril de 2015, 18:32 »
Olá galera,

Estou tentando a dias instalar o Gfortran no meu dual boot Linux ubuntu. Enfim, como todo leigo, peguei um tuto na internet e iniciei os trabalhos. Porém agarrei na seguinte parte do tutorial:

•   Download the g95 source and unpack it in some convenient directory.
•   Change to the min g95 directory and configure with
./configure --prefix=<installation directory> \
            --with-gcc-dir=<path of your GCC directory>

•   Build g95 with 'make' or 'make install' to install in the installation directory.
•   Unpack the libf95.a-0.91.tgz, configure and build it to get libf95.a. Make sure --prefix is the same as with g95.

Já tentei de tudo. Vou mostrar para vocês o que eu fiz até hoje.

---------------------TENTATIVA---------------------------------------

aline@aline-Studio-1458:~/aline/gcc-4.0.3/g95/g95$ ./configure --prefix= aline/gcc.4.0.3/g95/gcc --with-gcc-dir=configure
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: aline/gcc.4.0.3/g95/gcc
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for aline/gcc.4.0.3/g95/gcc-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking build system type... Invalid configuration `aline/gcc.4.0.3/g95/gcc': machine `aline/gcc.4.0.3/g95/gcc' not recognized
configure: error: /bin/bash ./config.sub aline/gcc.4.0.3/g95/gcc failed

------------------------------TENTATIVA------------------------------
aline@aline-Studio-1458:~/aline/gcc-4.0.3/g95/g95$ ./configure --prefix=installation directory\ --with-gcc-dir=<path of your gcc directory
bash: path: Arquivo ou diretório não encontrado
--------------------TENTATIVA--------------------------------

aline@aline-Studio-1458:~/aline/gcc-4.0.3/g95/g95$ ./configure --prefix=<installation directory\ --with-gcc-dir=<path of your gcc directory>
bash: erro de sintaxe próximo do `token' não esperado `newline'

------------------TENTATIVA-------------------------------
aline@aline-Studio-1458:~/aline/gcc-4.0.3/g95/g95$ ./configure --prefix= aline/gcc.4.0.3/g95/gcc --with-gcc-dir=configure
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: aline/gcc.4.0.3/g95/gcc
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for aline/gcc.4.0.3/g95/gcc-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking build system type... Invalid configuration `aline/gcc.4.0.3/g95/gcc': machine `aline/gcc.4.0.3/g95/gcc' not recognized
configure: error: /bin/bash ./config.sub aline/gcc.4.0.3/g95/gcc failed

----------------------------TENTATIVA------------------

aline@aline-Studio-1458:~/aline/gcc-4.0.3/g95/g95$ ./configure --prefix= aline/gcc.4.0.3/g95/g95 --with-gcc-dir=configure
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: aline/gcc.4.0.3/g95/g95
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for aline/gcc.4.0.3/g95/g95-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking build system type... Invalid configuration `aline/gcc.4.0.3/g95/g95': machine `aline/gcc.4.0.3/g95/g95' not recognized
configure: error: /bin/bash ./config.sub aline/gcc.4.0.3/g95/g95 failed

--------------------------------TENTATIVA--------------------
aline@aline-Studio-1458:~/aline/gcc-4.0.3/g95/g95$ ./configure --prefix= aline/gcc.4.0.3/g95/g95 --build with-gcc-dir=configure
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: aline/gcc.4.0.3/g95/g95
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for aline/gcc.4.0.3/g95/g95-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host triplet
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for aline/gcc.4.0.3/g95/g95-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking build system type... Invalid configuration `with-gcc-dir=configure': machine `with-gcc' not recognized
configure: error: /bin/bash ./config.sub with-gcc-dir=configure failed

Alguém pode me dizer o que estou fazendo de errado?? Como devo proceder?
Não to entendendo e preciso instalar o GFORTRAN urgentemente...

AAh, só para constar já tentei tbm fazer o sudo apt-get blablalba... mas meu sistema ubuntu não reconhece meu wifi dai não dá para fazer nenhum download. Mas isso é outro problema, a principio vou fazer no manualmente mesmo.


Desde já agradeço enormemente a ajuda de vocês!

Bjão e um abraço de urso no coração da alma caridosa!



Offline irtigor

  • Equipe Ubuntu
  • Usuário Ubuntu
  • *****
  • Mensagens: 4.344
  • Delete, delete, delete!
    • Ver perfil
Re: Instalando o GCC - G95 - GFORTRAN UBUNTU 14.03
« Resposta #1 Online: 26 de Abril de 2015, 19:06 »
Mesmo sem internet dá pra usar pacotes .deb, você só tem que baixar os .deb do site do ubuntu em outra máquina. Quanto ao erro, não pode haver espaço entre o igual e o diretório, o diretório tem que existir e tem que fazer sentido. Se for seguir com isso, use o exemplo do site oficial (veja que existem dependencias que precisam ser instaladas antes).