thanks for the effort, tried out the new compile script, too.
As well
Code: Select all
apt-get install tcl8.6-dev
dpkg -L tcl8.6-dev |grep tcl.h
Log below and in attachment. What can one do?
tia
Code: Select all
954 sh compile2.sh >anyname.log 2>&1
955 tail anyname.log
956 less anyname.log
957 history
kubuntu@kubuntu:~/elmerfem$ cat compile2.sh
#!/bin/sh -f
#the compiler (here the gcc 4.X suite)
export CC=gcc
export CXX=g++
export FC=gfortran
export F77=gfortran
#the compiler flags
export CFLAGS=""
export FCFLAGS=""
export F77FLAGS=""
export FFLAGS=""
#linking
export LDFLAGS=""
#paths
#export ELMER_HOME="/path/to/Elmerdir"
export ELMER_HOME="$HOME/elmerinst"
# modules
modules="matc umfpack mathlibs elmergrid meshgen2d eio hutiter post"
# configure and build
for m in $modules; do
cd $m ; ./configure --prefix=$ELMER_HOME && make clean && make && make install && cd ..
done
# configure and build the module fem using mpi related aspect
cd fem; ./configure --prefix=$ELMER_HOME --with-mpi-inc-dir=/usr/include/mpich2
make clean
make
make install
cd ..
done
kubuntu@kubuntu:~/elmerfem$ tail -n20 anyname.log
Making install in glaux
make[2]: Entering directory `/home/kubuntu/elmerfem/post/src/glaux'
make[3]: Entering directory `/home/kubuntu/elmerfem/post/src/glaux'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/kubuntu/elmerfem/post/src/glaux'
make[2]: Leaving directory `/home/kubuntu/elmerfem/post/src/glaux'
Making install in camera
make[2]: Entering directory `/home/kubuntu/elmerfem/post/src/camera'
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src/include -O -m64 -fPIC -I/home/kubuntu/elmerinst/include -pthread -pthread -I/usr/include/freetype2 -MT camera.o -MD -MP -MF .deps/camera.Tpo -c -o camera.o camera.c
camera.c:346:17: fatal error: tcl.h: No such file or directory
#include <tcl.h>
^
compilation terminated.
make[2]: *** [camera.o] Error 1
make[2]: Leaving directory `/home/kubuntu/elmerfem/post/src/camera'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/kubuntu/elmerfem/post/src'
make: *** [install-recursive] Error 1
compile2.sh: 29: compile2.sh: Syntax error: "done" unexpected