Hi Hao,

the error message says that you don't have a Fortran compiler installed. 
You can install one by using the package manager of your system or from 
the command line. This also depends on your Linux system. For example, 
in openSuse, you would need to write
sudo zypper install gcc-fortran
into a terminal window. You can find a list of required packages 
depending on your operating system at
http://users.dune-project.org/projects/main-wiki/wiki/Installation_prerequisite_software

I am cc'ing this to the Dumux mailinglist. This is the best place to 
direct your Dumux questions:
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Kind regards
Bernd

On 06/17/2014 12:04 AM, 吴昊 wrote:
>  Dear Bernd Flemisch,
> my name is Wu Hao, a student in Uni Stuttgart, I tried to install 
> Dumux, but got some errors that I can't figure out myself, and also I 
> don't know if you can send me your SVN account so that I can download 
> the dumux-devel and dumux-external(if they are really necessary ).
> I followed the INSTALL file in dumux-2.3.0 and got the following errors:
>
>
> ./dune-common-2.3.1-rc1/bin/dunecontrol 
> --opts=/usr/local/dune/dumux-2.3.0/optim.opts --module=dumux all
> ----- using default flags $CONFIGURE_FLAGS from 
> /usr/local/dune/dumux-2.3.0/optim.opts -----
> --- going to build dune-common dune-geometry dune-grid 
> dune-localfunctions dune-istl dune-pdelab dumux  ---
> --- calling all for dune-common ---
> --- calling vcsetup for dune-common ---
> --- calling autogen for dune-common ---
> Skipping dune-autogen
> --- calling configure for dune-common ---
> ----- using default flags $CONFIGURE_FLAGS from 
> /usr/local/dune/dumux-2.3.0/optim.opts -----
> ./configure CXXFLAGS=" -Wall -Wunused -Wmissing-include-dirs 
> -Wcast-align -Wno-sign-compare -Wno-unused-parameter 
> -fno-strict-aliasing -fstrict-overflow -ffast-math 
> -fno-finite-math-only -O3 -march=native -DNDEBUG=1" 
> --enable-fieldvector-size-is-method --disable-documentation 
> --disable-parallel --disable-mpiruntest ACLOCAL_AMFLAGS="-I . -I m4"
> configure: WARNING: unrecognized options: 
> --enable-fieldvector-size-is-method
> configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether make supports nested variables... yes
> checking how to create a pax tar archive... gnutar
> checking whether make supports nested variables... (cached) yes
> checking for inkscape... no
> checking for doxygen... no
> checking for latex... latex
> checking for bibtex... bibtex
> checking for dvipdf... dvipdf
> checking for dvips... dvips
> checking for wml... no
> checking for dot... dot
> checking for perl... perl
> checking for convert... convert
> checking for pkg-config... /usr/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking for style of include used by make... GNU
> 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 dependency style of gcc... gcc3
> checking how to run the C preprocessor... gcc -E
> checking for g++... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking dependency style of g++... gcc3
> checking how to run the C++ preprocessor... g++ -E
> checking for g77... no
> checking for xlf... no
> checking for f77... no
> checking for frt... no
> checking for pgf77... no
> checking for cf77... no
> checking for fort77... no
> checking for fl32... no
> checking for af77... no
> checking for xlf90... no
> checking for f90... no
> checking for pgf90... no
> checking for pghpf... no
> checking for epcf90... no
> checking for gfortran... no
> checking for g95... no
> checking for xlf95... no
> checking for f95... no
> checking for fort... no
> checking for ifort... no
> checking for ifc... no
> checking for efc... no
> checking for pgfortran... no
> checking for pgf95... no
> checking for lf95... no
> checking for ftn... no
> checking for nagfor... no
> checking whether we are using the GNU Fortran 77 compiler... no
> checking whether  accepts -g... no
> checking for gfortran... no
> checking for g95... no
> checking for xlf95... no
> checking for f95... no
> checking for fort... no
> checking for ifort... no
> checking for ifc... no
> checking for efc... no
> checking for pgfortran... no
> checking for pgf95... no
> checking for lf95... no
> checking for ftn... no
> checking for nagfor... no
> checking for xlf90... no
> checking for f90... no
> checking for pgf90... no
> checking for pghpf... no
> checking for epcf90... no
> checking for g77... no
> checking for xlf... no
> checking for f77... no
> checking for frt... no
> checking for pgf77... no
> checking for cf77... no
> checking for fort77... no
> checking for fl32... no
> checking for af77... no
> checking whether we are using the GNU Fortran compiler... no
> checking whether  accepts -g... no
> checking build system type... x86_64-suse-linux-gnu
> checking host system type... x86_64-suse-linux-gnu
> checking how to print strings... printf
> checking for a sed that does not truncate output... /usr/bin/sed
> checking for grep that handles long lines and -e... /usr/bin/grep
> checking for egrep... /usr/bin/grep -E
> checking for fgrep... /usr/bin/grep -F
> checking for ld used by gcc... /usr/x86_64-suse-linux/bin/ld
> checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes
> checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
> checking the name lister (/usr/bin/nm -B) interface... BSD nm
> checking whether ln -s works... yes
> checking the maximum length of command line arguments... 1572864
> checking whether the shell understands some XSI constructs... yes
> checking whether the shell understands "+="... yes
> checking how to convert x86_64-suse-linux-gnu file names to 
> x86_64-suse-linux-gnu format... func_convert_file_noop
> checking how to convert x86_64-suse-linux-gnu file names to toolchain 
> format... func_convert_file_noop
> checking for /usr/x86_64-suse-linux/bin/ld option to reload object 
> files... -r
> checking for objdump... objdump
> checking how to recognize dependent libraries... pass_all
> checking for dlltool... no
> checking how to associate runtime and link libraries... printf %s\n
> checking for ar... ar
> checking for archiver @FILE support... @
> checking for strip... strip
> checking for ranlib... ranlib
> checking command to parse /usr/bin/nm -B output from gcc object... ok
> checking for sysroot... no
> checking for mt... mt
> checking if mt is a manifest tool... no
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking for dlfcn.h... yes
> checking for objdir... .libs
> checking if gcc supports -fno-rtti -fno-exceptions... no
> checking for gcc option to produce PIC... -fPIC -DPIC
> checking if gcc PIC flag -fPIC -DPIC works... yes
> checking if gcc static flag -static works... no
> checking if gcc supports -c -o file.o... yes
> checking if gcc supports -c -o file.o... (cached) yes
> checking whether the gcc linker (/usr/x86_64-suse-linux/bin/ld -m 
> elf_x86_64) supports shared libraries... yes
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... no
> checking whether to build static libraries... yes
> checking how to run the C++ preprocessor... g++ -E
> checking for ld used by g++... /usr/x86_64-suse-linux/bin/ld -m elf_x86_64
> checking if the linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) 
> is GNU ld... yes
> checking whether the g++ linker (/usr/x86_64-suse-linux/bin/ld -m 
> elf_x86_64) supports shared libraries... yes
> checking for g++ option to produce PIC... -fPIC -DPIC
> checking if g++ PIC flag -fPIC -DPIC works... yes
> checking if g++ static flag -static works... no
> checking if g++ supports -c -o file.o... yes
> checking if g++ supports -c -o file.o... (cached) yes
> checking whether the g++ linker (/usr/x86_64-suse-linux/bin/ld -m 
> elf_x86_64) supports shared libraries... yes
> checking dynamic linker characteristics... (cached) GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> checking for ranlib... (cached) ranlib
> checking how to get verbose linking output from ... configure: 
> WARNING: compilation failed
>
> checking for Fortran 77 libraries of ...
> checking for dummy main to link with Fortran 77 libraries... none
> checking for Fortran 77 name-mangling scheme... configure: error: in 
> `/usr/local/dune/dune-common-2.3.1-rc1':
> configure: error: cannot compile a simple Fortran program
> See `config.log' for more details
> --- Failed to build dune-common ---
> Terminating dunecontrol due to previous errors!
>
>
> As I am still new to Linux, please explain me more detaily.
> Thanks in advance
> Hao
>
> Best
>


-- 
_______________________________________________________________

     !!!! CMWR 2014: 10th - 13th June 2014 in Stuttgart !!!!
                   Please visit www.cmwr14.de
_______________________________________________________________

Bernd Flemisch                         phone: +49 711 685 69162
IWS, Universität Stuttgart             fax:   +49 711 685 60430
Pfaffenwaldring 61            email: [email protected]
D-70569 Stuttgart            url: www.hydrosys.uni-stuttgart.de
_______________________________________________________________

_______________________________________________
Dumux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to