From: Leopold P. A. <le...@wo...> - 2003-11-07 11:11:28
|
Hi, finally I have compiled libmesh on a debian woody system. Ok, thank's a lot for the help. Finally was had a directory WITHOUT spaces and some enviroment variables. So these are the steps: To compile libmesh with MPI and PETSC you need these packages. mpich petsc2.1.3-dev Also: graphviz (non free section, for graphics in documentation) $export PETSC_DIR="/usr/lib/petsc" $export PETSC_ARCH="linux" $./configure This will create the library. About the examples I have found some problems. First of all you need some extra package, zlib1g-dev. Because you cannot compile the example 1. The error is: /usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status Sadly, the rest of the examples cannot be compiled, because some error (see below). I have found in the net about the mktemp and mkstemp question, but I understand that it's just a warning. About the undefined references in XXXX I have found that is a compiler error, but in the arm architecture not i386 (gcc 2.95) http://lists.debian.org/debian-arm/2002/debian-arm-200201/msg00032.html Please, could someone confirm this? lepalom@e01:~/test_finite/libmesh-0.4.1-rc2$ make run_examples make[1]: Entering directory `/rhome/lepalom/test_finite/libmesh-0.4.1-rc2/examples' make[2]: Entering directory `/rhome/lepalom/test_finite/libmesh-0.4.1-rc2/examples/ex1' Compiling C++ (in optimized mode) ex1.C... Linking ex1... /rhome/lepalom/test_finite/libmesh-0.4.1-rc2/contrib/tecplot/lib/i686-pc-linux-gnu/tecio.a(tecxxx.o): In function `tecini': tecxxx.o(.text+0x1a7): the use of `mktemp' is dangerous, better use `mkstemp' /usr/lib/petsc/lib/libO/linux/libpetsc.so: undefined reference to `MPE_Initialized_logging' /usr/lib/petsc/lib/libO/linux/libpetscsles.so: undefined reference to `MPE_Log_event' /rhome/lepalom/test_finite/libmesh-0.4.1-rc2/lib/i686-pc-linux-gnu_opt/libmesh.so: undefined reference to `gzstreambase::gzstreambase(int, char const *, int)' /usr/lib/petsc/lib/libO/linux/libpetsc.so: undefined reference to `MPE_Log_get_event_number' /rhome/lepalom/test_finite/libmesh-0.4.1-rc2/lib/i686-pc-linux-gnu_opt/libmesh.so: undefined reference to `gzstreambase::~gzstreambase(void)' /usr/lib/petsc/lib/libO/linux/libpetsc.so: undefined reference to `MPE_Init_log' /usr/lib/petsc/lib/libO/linux/libpetsc.so: undefined reference to `MPE_Describe_state' /rhome/lepalom/test_finite/libmesh-0.4.1-rc2/lib/i686-pc-linux-gnu_opt/libmesh.so: undefined reference to `gzstreambase type_info node' /rhome/lepalom/test_finite/libmesh-0.4.1-rc2/lib/i686-pc-linux-gnu_opt/libmesh.so: undefined reference to `gzstreambase type_info function' /usr/lib/petsc/lib/libO/linux/libpetsc.so: undefined reference to `MPE_Finish_log' collect2: ld returned 1 exit status make[2]: *** [ex1] Error 1 make[2]: Leaving directory `/rhome/lepalom/test_finite/libmesh-0.4.1-rc2/examples/ex1' make[1]: *** [run] Error 2 make[1]: Leaving directory `/rhome/lepalom/test_finite/libmesh-0.4.1-rc2/examples' make: *** [run_examples] Error 2 lepalom@e01:~/test_finite/libmesh-0.4.1-rc2$ Best reagrds, Leo |