1 (edited by thuongnm 01-11-2010 23:51:22)

Topic: can not compile tools and run the command oofem!

Hi!
I am new user of OOFEM. Today I try to setup oofem1.9 in Ubuntu10.04. I followed every steps in these guides
http://www.oofem.org/wiki/doku.php?id=installation
http://mech.fsv.cvut.cz/websvn/filedeta … mp;rev=203

even I can finish step 6 sucessfully
6) Optionally to test the oofem package (requires the utilities):
   a) run: make tests
   b) examine file test_results (less ./test_results)
However at step 5, when I run the command "make all" I got the this message:
-----------------------------------------------------
thuongnm@thuongnm-laptop:~/program/oofem-1.9$ cd tools; make all
make: *** No rule to make target `all'.  Stop.
thuongnm@thuongnm-laptop:~/program/oofem-1.9/tools$
----------------------------------------------------------------------
then I tried with the command "make *" and got :
------------------------------------------------------------------
thuongnm@thuongnm-laptop:~/program/oofem-1.9/tools$ make *
make: Nothing to be done for `extractconvergence.pl'.
make: Nothing to be done for `extractor.old'.
make: Nothing to be done for `extractor.py'.
make: Nothing to be done for `findlaststeptime.pl'.
make: Nothing to be done for `summer.pl'.
thuongnm@thuongnm-laptop:~/program/oofem-1.9/tools$
----------------------------------------------------------------------
when I type the command oofem to check if it can work or not, I always got the answer:
thuongnm@thuongnm-laptop:~/program/oofem-1.9$ oofem
oofem: command not found

or
thuongnm@thuongnm-laptop:~/program/oofem-1.9/targets/oofem-release$ oofem
oofem: command not found

or
thuongnm@thuongnm-laptop:~/program/oofem-1.9/targets/oofem-release/bin$ oofem
oofem: command not found

I don't know how to fix these things just because I tried to install 3 times and tried to follow every steps in those websites! please, help me! thanks in advance

2

Re: can not compile tools and run the command oofem!

Hi,

it is quite hard to say, what is going wrong from the information you have provided. Could you attach the configure output (or config.log file produced by configure) , as well as the output of the build process (run "make > make.log 2>&1" and attach make.log file). This can help me a lot.

Borek

Re: can not compile tools and run the command oofem!

Here is my config.log:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  $ ./configure OOFEM_TARGET=oofem-release --enable-dss --enable-iml --with-IMLDIR=iml CXXFLAGS=-O2

## --------- ##
## Platform. ##
## --------- ##

hostname = thuongnm-laptop
uname -m = i686
uname -r = 2.6.32-25-generic
uname -s = Linux
uname -v = #45-Ubuntu SMP Sat Oct 16 19:48:22 UTC 2010

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1830: checking build system type
configure:1848: result: i686-pc-linux-gnu
configure:1870: checking host system type
configure:1885: result: i686-pc-linux-gnu
configure:1912: checking OOFEM_DIR
configure:1919: result: /home/thuongnm/program/oofem-1.9
configure:2018: checking for g++
configure:2034: found /usr/bin/g++
configure:2045: result: g++
configure:2076: checking for C++ compiler version
configure:2083: g++ --version >&5
g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2086: $? = 0
configure:2093: g++ -v >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --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 --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
configure:2096: $? = 0
configure:2103: g++ -V >&5
g++: '-V' option must have argument
configure:2106: $? = 1
configure:2129: checking for C++ compiler default output file name
configure:2156: g++ -O2   conftest.cpp  >&5
configure:2159: $? = 0
configure:2197: result: a.out
configure:2214: checking whether the C++ compiler works
configure:2224: ./a.out
configure:2227: $? = 0
configure:2244: result: yes
configure:2251: checking whether we are cross compiling
configure:2253: result: no
configure:2256: checking for suffix of executables
configure:2263: g++ -o conftest -O2   conftest.cpp  >&5
configure:2266: $? = 0
configure:2290: result:
configure:2296: checking for suffix of object files
configure:2322: g++ -c -O2  conftest.cpp >&5
configure:2325: $? = 0
configure:2348: result: o
configure:2352: checking whether we are using the GNU C++ compiler
configure:2381: g++ -c -O2  conftest.cpp >&5
configure:2387: $? = 0
configure:2404: result: yes
configure:2409: checking whether g++ accepts -g
configure:2439: g++ -c -g  conftest.cpp >&5
configure:2445: $? = 0
configure:2544: result: yes
configure:2572: checking how to run the C++ preprocessor
configure:2608: g++ -E  conftest.cpp
configure:2614: $? = 0
configure:2645: g++ -E  conftest.cpp
conftest.cpp:8:28: error: ac_nonexistent.h: No such file or directory
configure:2651: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:2684: result: g++ -E
configure:2713: g++ -E  conftest.cpp
configure:2719: $? = 0
configure:2750: g++ -E  conftest.cpp
conftest.cpp:8:28: error: ac_nonexistent.h: No such file or directory
configure:2756: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:2812: checking for a BSD-compatible install
configure:2868: result: /usr/bin/install -c
configure:2922: checking for ranlib
configure:2938: found /usr/bin/ranlib
configure:2949: result: ranlib
configure:2975: checking whether make sets $(MAKE)
configure:2996: result: yes
configure:3009: checking for grep that handles long lines and -e
configure:3083: result: /bin/grep
configure:3088: checking for egrep
configure:3166: result: /bin/grep -E
configure:3171: checking for ANSI C header files
configure:3201: g++ -c -O2  conftest.cpp >&5
configure:3207: $? = 0
configure:3306: g++ -o conftest -O2   conftest.cpp  >&5
configure:3309: $? = 0
configure:3315: ./conftest
configure:3318: $? = 0
configure:3335: result: yes
configure:3359: checking for sys/types.h
configure:3380: g++ -c -O2  conftest.cpp >&5
configure:3386: $? = 0
configure:3402: result: yes
configure:3359: checking for sys/stat.h
configure:3380: g++ -c -O2  conftest.cpp >&5
configure:3386: $? = 0
configure:3402: result: yes
configure:3359: checking for stdlib.h
configure:3380: g++ -c -O2  conftest.cpp >&5
configure:3386: $? = 0
configure:3402: result: yes
configure:3359: checking for string.h
configure:3380: g++ -c -O2  conftest.cpp >&5
configure:3386: $? = 0
configure:3402: result: yes
configure:3359: checking for memory.h
configure:3380: g++ -c -O2  conftest.cpp >&5
configure:3386: $? = 0
configure:3402: result: yes
configure:3359: checking for strings.h
configure:3380: g++ -c -O2  conftest.cpp >&5
configure:3386: $? = 0
configure:3402: result: yes
configure:3359: checking for inttypes.h
configure:3380: g++ -c -O2  conftest.cpp >&5
configure:3386: $? = 0
configure:3402: result: yes
configure:3359: checking for stdint.h
configure:3380: g++ -c -O2  conftest.cpp >&5
configure:3386: $? = 0
configure:3402: result: yes
configure:3359: checking for unistd.h
configure:3380: g++ -c -O2  conftest.cpp >&5
configure:3386: $? = 0
configure:3402: result: yes
configure:3434: checking limits.h usability
configure:3451: g++ -c -O2  conftest.cpp >&5
configure:3457: $? = 0
configure:3471: result: yes
configure:3475: checking limits.h presence
configure:3490: g++ -E  conftest.cpp
configure:3496: $? = 0
configure:3510: result: yes
configure:3538: checking for limits.h
configure:3546: result: yes
configure:3434: checking malloc.h usability
configure:3451: g++ -c -O2  conftest.cpp >&5
configure:3457: $? = 0
configure:3471: result: yes
configure:3475: checking malloc.h presence
configure:3490: g++ -E  conftest.cpp
configure:3496: $? = 0
configure:3510: result: yes
configure:3538: checking for malloc.h
configure:3546: result: yes
configure:3424: checking for strings.h
configure:3430: result: yes
configure:3424: checking for unistd.h
configure:3430: result: yes
configure:3434: checking sys/time.h usability
configure:3451: g++ -c -O2  conftest.cpp >&5
configure:3457: $? = 0
configure:3471: result: yes
configure:3475: checking sys/time.h presence
configure:3490: g++ -E  conftest.cpp
configure:3496: $? = 0
configure:3510: result: yes
configure:3538: checking for sys/time.h
configure:3546: result: yes
configure:3434: checking sys/resource.h usability
configure:3451: g++ -c -O2  conftest.cpp >&5
configure:3457: $? = 0
configure:3471: result: yes
configure:3475: checking sys/resource.h presence
configure:3490: g++ -E  conftest.cpp
configure:3496: $? = 0
configure:3510: result: yes
configure:3538: checking for sys/resource.h
configure:3546: result: yes
configure:3560: checking whether time.h and sys/time.h may both be included
configure:3590: g++ -c -O2  conftest.cpp >&5
configure:3596: $? = 0
configure:3611: result: yes
configure:3630: checking for strstr
configure:3686: g++ -o conftest -O2   conftest.cpp  >&5
configure:3692: $? = 0
configure:3710: result: yes
configure:3630: checking for strtod
configure:3686: g++ -o conftest -O2   conftest.cpp  >&5
configure:3692: $? = 0
configure:3710: result: yes
configure:3630: checking for strtol
configure:3686: g++ -o conftest -O2   conftest.cpp  >&5
configure:3692: $? = 0
configure:3710: result: yes
configure:3630: checking for strncasecmp
configure:3686: g++ -o conftest -O2   conftest.cpp  >&5
configure:3692: $? = 0
configure:3710: result: yes
configure:3630: checking for access
configure:3686: g++ -o conftest -O2   conftest.cpp  >&5
configure:3692: $? = 0
configure:3710: result: yes
configure:3725: checking for nearest
configure:3781: g++ -o conftest -O2   conftest.cpp  >&5
/tmp/ccdq1v6Y.o: In function `main':
conftest.cpp:(.text+0x7): undefined reference to `nearest'
collect2: ld returned 1 exit status
configure:3787: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_STRSTR 1
| #define HAVE_STRTOD 1
| #define HAVE_STRTOL 1
| #define HAVE_STRNCASECMP 1
| #define HAVE_ACCESS 1
| /* end confdefs.h.  */
| /* Define nearest to an innocuous variant, in case <limits.h> declares nearest.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define nearest innocuous_nearest
|
| /* System header to define __stub macros and hopefully few prototypes,
|     which can conflict with char nearest (); below.
|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|     <limits.h> exists even on freestanding compilers.  */
|
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|
| #undef nearest
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char nearest ();
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */
| #if defined __stub_nearest || defined __stub___nearest
| choke me
| #endif
|
| int
| main ()
| {
| return nearest ();
|   ;
|   return 0;
| }
configure:3805: result: no
configure:3816: checking FALSE, TRUE enum/constants
configure:3839: g++ -c -O2  conftest.cpp >&5
conftest.cpp: In function 'int main()':
conftest.cpp:34: error: 'FALSE' was not declared in this scope
conftest.cpp:34: error: 'TRUE' was not declared in this scope
configure:3845: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_STRSTR 1
| #define HAVE_STRTOD 1
| #define HAVE_STRTOL 1
| #define HAVE_STRNCASECMP 1
| #define HAVE_ACCESS 1
| /* end confdefs.h.  */
| #include<stdio.h>
| int
| main ()
| {
| if (1) return FALSE; else return TRUE;
|   ;
|   return 0;
| }
configure:3864: result: no
configure:3871: checking typedef bool
configure:3894: g++ -c -O2  conftest.cpp >&5
configure:3900: $? = 0
configure:3906: result: yes
configure:3925: checking M_PI constant
configure:3948: g++ -c -O2  conftest.cpp >&5
configure:3954: $? = 0
configure:3960: result: yes
configure:3980: checking M_LN2 constant
configure:4003: g++ -c -O2  conftest.cpp >&5
configure:4009: $? = 0
configure:4015: result: yes
configure:4036: checking STL support
configure:4059: g++ -c -O2  conftest.cpp >&5
configure:4065: $? = 0
configure:4071: result: yes
configure:4088: checking Macro __VA_ARGS__ support
configure:4116: g++ -c -O2  conftest.cpp >&5
configure:4122: $? = 0
configure:4128: result: yes
configure:4148: checking Function Templates support
configure:4185: g++ -c -O2  conftest.cpp >&5
configure:4191: $? = 0
configure:4197: result: yes
configure:4419: checking for sqrt in -lm
configure:4454: g++ -o conftest -O2   conftest.cpp -lm   >&5
configure:4460: $? = 0
configure:4478: result: yes
configure:4511: checking IML module location
configure:4515: result: iml
configure:4530: checking dss module location
configure:4534: result: src/dss
configure:6988: checking Determining hostname
configure:6991: result: thuongnm-laptop
configure:6994: checking OOFEM version
configure:6997: result: 1.9
configure:7168: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  CONFIG_FILES    =
  CONFIG_HEADERS  =
  CONFIG_LINKS    =
  CONFIG_COMMANDS =
  $ ./config.status

on thuongnm-laptop

config.status:667: creating makefile
config.status:667: creating targets/oofem-release/include/oofemdef.h
config.status:667: creating targets/oofem-release/makefile
config.status:667: creating targets/oofem-release/lib/oofemlib/makefile
config.status:667: creating targets/oofem-release/lib/sm/makefile
config.status:667: creating targets/oofem-release/lib/tm/makefile
config.status:667: creating targets/oofem-release/lib/fm/makefile
config.status:667: creating targets/oofem-release/lib/dss/makefile
config.status:667: creating targets/oofem-release/lib/main/makefile
config.status:667: creating targets/oofem-release/include/oofemcfg.h
config.status:902: targets/oofem-release/include/oofemcfg.h is unchanged

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value=-O2
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_OOFEM_DIR_set=
ac_cv_env_OOFEM_DIR_value=
ac_cv_env_OOFEM_TARGET_set=set
ac_cv_env_OOFEM_TARGET_value=oofem-release
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_func_access=yes
ac_cv_func_nearest=no
ac_cv_func_strncasecmp=yes
ac_cv_func_strstr=yes
ac_cv_func_strtod=yes
ac_cv_func_strtol=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_limits_h=yes
ac_cv_header_malloc_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_resource_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_time_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_time=yes
ac_cv_header_unistd_h=yes
ac_cv_host=i686-pc-linux-gnu
ac_cv_lib_m_sqrt=yes
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_GREP=/bin/grep
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_CXXCPP='g++ -E'
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_cxx_g=yes
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

CFLAGS=''
CKIT_INCLUDES=''
CKIT_LIB=''
CPPFLAGS=''
CXX='g++'
CXXCPP='g++ -E'
CXXFLAGS='-O2'
DEFS='-DHAVE_CONFIG_H'
DSS_DIR='/home/thuongnm/program/oofem-1.9/src/dss'
DSS_INCLUDES='-I/home/thuongnm/program/oofem-1.9/src/dss'
DSS_MODULE_SYMBOL='-D__DSS_MODULE'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
ELIXIR_INCLUDES=''
ELIXIR_LIBS=''
EXEEXT=''
GREP='/bin/grep'
HOST_NAME='thuongnm-laptop'
IML_INCLUDES='-Iiml'
INCLUDES=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LDFLAGS=''
LIBOBJS=''
LIBS='-lm '
LOCAL_LIBS=''
LTLIBOBJS=''
MODULE_INCLUDES='-I/home/thuongnm/program/oofem-1.9/src/oofemlib -I/home/thuongnm/program/oofem-1.9/src/oofemlib/xfem -I/home/thuongnm/program/oofem-1.9/src/sm -I/home/thuongnm/program/oofem-1.9/src/tm -I/home/thuongnm/program/oofem-1.9/src/fm -Iiml -I/home/thuongnm/program/oofem-1.9/src/dss'
MODULE_LIST='oofemlib sm tm fm iml dss'
MODULE_SYMBOLS='-D__OOFEM -D__OOFEMLIB_MODULE -D__SM_MODULE -D__TM_MODULE -D__FM_MODULE -D__IML_MODULE -D__DSS_MODULE'
MODULE_TOBUILD='oofemlib sm tm fm dss'
MPI_INCLUDES=''
OBJEXT='o'
OOFEG_DIRECTIVES=''
OOFEMLIB_INCLUDES='-I/home/thuongnm/program/oofem-1.9/src/oofemlib -I/home/thuongnm/program/oofem-1.9/src/oofemlib/xfem'
OOFEMLIB_SUBMODULE_INCLUDES='-I/home/thuongnm/program/oofem-1.9/src/oofemlib/xfem'
OOFEM_DIR='/home/thuongnm/program/oofem-1.9'
OOFEM_LIBS='/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/fm/fmlib.a /home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/tm/tmlib.a /home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/sm/smlib.a /home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/oofemlib/oofemlib.a /home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/dss/dsslib.a'
OOFEM_TARGET='oofem-release'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PARMETIS_INCLUDES=''
PARMETIS_LIB=''
PATH_SEPARATOR=':'
PETSC_ARCH=''
PETSC_BOPT=''
PETSC_DIR=''
PETSC_INCLUDES=''
PETSC_MAKE_INCLUDE=''
PROG_NAME='oofem'
RANLIB='ranlib'
SET_MAKE=''
SHELL='/bin/bash'
SLEPC_DIR=''
SLEPC_INCLUDES=''
SLEPC_MAKE_INCLUDE=''
SM_INCLUDES='-I/home/thuongnm/program/oofem-1.9/src/sm'
SPOOLES_DIR=''
SPOOLES_INCLUDES=''
SPOOLES_MODULE_SYMBOL=''
TARGET_CONFIG_INCLUDES='-I/home/thuongnm/program/oofem-1.9/targets/oofem-release/include'
TEST_TARGETS='sm tm fm'
TM_INCLUDES='-I/home/thuongnm/program/oofem-1.9/src/tm'
VERSION='1.9'
XMKMF=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_CXX='g++'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
srcdir='.'
sysconfdir='${prefix}/etc'
target_alias=''
top_srcdir=''
x_includes='NONE'
x_libraries='NONE'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_LIMITS_H 1
#define HAVE_MALLOC_H 1
#define HAVE_STRINGS_H 1
#define HAVE_UNISTD_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_SYS_RESOURCE_H 1
#define TIME_WITH_SYS_TIME 1
#define HAVE_STRSTR 1
#define HAVE_STRTOD 1
#define HAVE_STRTOL 1
#define HAVE_STRNCASECMP 1
#define HAVE_ACCESS 1
#define HAVE_BOOLTYPE
#define HAVE_M_PI
#define HAVE_M_LN2
#define HAVE_MACRO_VA_ARGS
#define HAVE_LIBM 1

configure: exit 0

Re: can not compile tools and run the command oofem!

I run your command
thuongnm@thuongnm-laptop:~/program/oofem-1.9/targets/oofem-release$ make > make.log 2>&1
Here is my make.log:

make -C lib/oofemlib all
make[1]: Entering directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/oofemlib'
echo all target done
all target done
make[1]: Leaving directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/oofemlib'
make -C lib/sm all
make[1]: Entering directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/sm'
echo all target done
all target done
make[1]: Leaving directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/sm'
make -C lib/tm all
make[1]: Entering directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/tm'
echo all target done
all target done
make[1]: Leaving directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/tm'
make -C lib/fm all
make[1]: Entering directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/fm'
echo all target done
all target done
make[1]: Leaving directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/fm'
make -C lib/dss all
make[1]: Entering directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/dss'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/dss'
cd lib/main; make all
make[1]: Entering directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/main'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/main'

5

Re: can not compile tools and run the command oofem!

Hi,

you have to clean your oofem-release target before running make (as the target is already done) by running "make clean" in oofem-release directory.
However, all seems to be ok.
Could you check following:
1) list the files in  /home/thuongnm/program/oofem-1.9/targets/oofem-release/bin directory. Look if "oofem" is there.
2) if step 1 is ok, still when in /home/thuongnm/program/oofem-1.9/targets/oofem-release/bin directory, run "./oofem"
3) if you can see the output from step 2, try to run some example:
     when still in /home/thuongnm/program/oofem-1.9/targets/oofem-release/bin directory, run
     "./oofem -f  /home/thuongnm/program/oofem-1.9/tests/sm/patch010.in"
4) if step 3 is ok, try to run all tests. Still in /home/thuongnm/program/oofem-1.9/targets/oofem-release/bin directory, run "make tests". This requires python to be installed on your system.

Please let me know, in what step you have failed. And also send me full make log, produced after make clean.
Borek

Re: can not compile tools and run the command oofem!

Hi BP!

it's really helpful! I can pass step 1,2, and 3 successfully. However at step 4, if I use the command "make tests" in the bin directory, the result is :

thuongnm@thuongnm-laptop:~/program/oofem-1.9/targets/oofem-release/bin$ make tests
make: *** No rule to make target `tests'.  Stop.

Surely I already installed python(v2.6)
but if I use "make test" outside the bin, at "oofem-release" directory, it succeed!

here is my make.log:

make -C lib/oofemlib all
make[1]: Entering directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/oofemlib'
echo all target done
all target done
make[1]: Leaving directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/oofemlib'
make -C lib/sm all
make[1]: Entering directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/sm'
echo all target done
all target done
make[1]: Leaving directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/sm'
make -C lib/tm all
make[1]: Entering directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/tm'
echo all target done
all target done
make[1]: Leaving directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/tm'
make -C lib/fm all
make[1]: Entering directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/fm'
echo all target done
all target done
make[1]: Leaving directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/fm'
make -C lib/dss all
make[1]: Entering directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/dss'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/dss'
cd lib/main; make all
make[1]: Entering directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/main'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/thuongnm/program/oofem-1.9/targets/oofem-release/lib/main'
--------------------------------------------------------------
if everything is ok now, how can I use the command "oofem" everywhere instead of going to bin directory.
thank you very much!

Re: can not compile tools and run the command oofem!

Hi BP!

I already check oofem command with some examples and they all succeed. Finally I configured my .bashrc file in order to call the command oofem everywhere. It's great because I have no experience with ubuntu before then everything seems to be more difficult. But now it's ok! it's really helpful for new OOFEM users with your support! thank you very much!