[SOLVED] Installing a numerical code on ubuntu 12.04
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I do not know how to check how old are my files, from the proprieties, it says that they have been modified last sunday.
I do not know how to see how old are they?
From the output, you can see that I need two files, the paths are below, what you checked was a web that has titan2d software on line, I am not sure if the code written on line is the same that run on personal machine, for example, the datstr folder winch has element2.c file is missing in the vhub?!
/home/user/bob/titan-2.0.1/src/datstr/element2.C:2463: undefined reference to `correct_
/home/user/bob/titan-2.0.1/src/geoflow/Correct.C:107: undefined reference to `correct_'
you might be better off installing the older titan2.01 on say a os like CentOS 5.9
it is a bit older and works great for older legacy software
Univ. code can be fickle
sometimes a very old program will build on the new compilers ( i have some 15 year old "fortran" and "c" that builds with no issues )
and some 6 month old code that is a pain.
Thanks for you help but i did something different, I got it right, here is what I did:
Code:
user@osgeolive:~/bob/titan-2.0.1$ cd src
user@osgeolive:~/bob/titan-2.0.1/src$ cd geoflow
user@osgeolive:~/bob/titan-2.0.1/src/geoflow$ gfortran -c correct.f
user@osgeolive:~/bob/titan-2.0.1/src/geoflow$ ar r libgeoflow.a correct.o
user@osgeolive:~/bob/titan-2.0.1/src/geoflow$ cd ..
user@osgeolive:~/bob/titan-2.0.1/src$ cd ..
user@osgeolive:~/bob/titan-2.0.1$ make
make all-recursive
make[1]: Entering directory `/home/user/bob/titan-2.0.1'
Making all in src
make[2]: Entering directory `/home/user/bob/titan-2.0.1/src'
Making all in header
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/header'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/user/bob/titan-2.0.1/src/header'
Making all in gisapi
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/gisapi'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/user/bob/titan-2.0.1/src/gisapi'
Making all in useful
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/useful'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/user/bob/titan-2.0.1/src/useful'
Making all in preproc
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/preproc'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/user/bob/titan-2.0.1/src/preproc'
Making all in datstr
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/datstr'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/user/bob/titan-2.0.1/src/datstr'
Making all in repartition
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/repartition'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/user/bob/titan-2.0.1/src/repartition'
Making all in adapt
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/adapt'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/user/bob/titan-2.0.1/src/adapt'
Making all in geoflow
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/geoflow'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/user/bob/titan-2.0.1/src/geoflow'
Making all in tecplot
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/tecplot'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/user/bob/titan-2.0.1/src/tecplot'
Making all in stochastic
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/stochastic'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/user/bob/titan-2.0.1/src/stochastic'
Making all in vectordatapreproc
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/vectordatapreproc'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/user/bob/titan-2.0.1/src/vectordatapreproc'
Making all in main
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/main'
/usr/local/bin/mpicxx -I../gisapi/ -g -O2 -w -g -O2 -DMPICH_IGNORE_CXX_SEEK -I/usr/include -D__HAVE_HDF5__ -L/usr/lib -o titan titan-compare_key.o titan-delete_tab.o titan-hpfem.o titan-datread.o titan-hilbert.o titan-init_piles.o titan-update_topo.o titan-restart.o ../gisapi/libgisapi.a ../adapt/libadapt.a -L/usr/lib/gcc/i686-linux-gnu/4.6 -L/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu -L/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib -L/lib/i386-linux-gnu -L/lib/../lib -L/usr/lib/i386-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/i686-linux-gnu/4.6/../../.. -lgfortran -lm -lquadmath ../datstr/libdatstr.a ../geoflow/libgeoflow.a ../useful/libuseful.a ../repartition/librepartition.a ../tecplot/libtecplot.a -lnsl -lz -lm -lhdf5 -lmpich -lpthread
make[3]: Leaving directory `/home/user/bob/titan-2.0.1/src/main'
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/user/bob/titan-2.0.1/src'
make[2]: Leaving directory `/home/user/bob/titan-2.0.1/src'
Making all in scripts
make[2]: Entering directory `/home/user/bob/titan-2.0.1/scripts'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/user/bob/titan-2.0.1/scripts'
Making all in doc
make[2]: Entering directory `/home/user/bob/titan-2.0.1/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/user/bob/titan-2.0.1/doc'
make[2]: Entering directory `/home/user/bob/titan-2.0.1'
make[2]: Leaving directory `/home/user/bob/titan-2.0.1'
make[1]: Leaving directory `/home/user/bob/titan-2.0.1'
user@osgeolive:~/bob/titan-2.0.1$ sudo make install
[sudo] password for user:
Making install in src
make[1]: Entering directory `/home/user/bob/titan-2.0.1/src'
Making install in header
make[2]: Entering directory `/home/user/bob/titan-2.0.1/src/header'
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/header'
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/user/bob/titan-2.0.1/src/header'
make[2]: Leaving directory `/home/user/bob/titan-2.0.1/src/header'
Making install in gisapi
make[2]: Entering directory `/home/user/bob/titan-2.0.1/src/gisapi'
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/gisapi'
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/user/bob/titan-2.0.1/src/gisapi'
make[2]: Leaving directory `/home/user/bob/titan-2.0.1/src/gisapi'
Making install in useful
make[2]: Entering directory `/home/user/bob/titan-2.0.1/src/useful'
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/useful'
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/user/bob/titan-2.0.1/src/useful'
make[2]: Leaving directory `/home/user/bob/titan-2.0.1/src/useful'
Making install in preproc
make[2]: Entering directory `/home/user/bob/titan-2.0.1/src/preproc'
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/preproc'
test -z "/home/user/bob/titan-2.0.1/bin" || /bin/mkdir -p "/home/user/bob/titan-2.0.1/bin"
/usr/bin/install -c titan_materialnames titan_preprocess '/home/user/bob/titan-2.0.1/bin'
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/user/bob/titan-2.0.1/src/preproc'
make[2]: Leaving directory `/home/user/bob/titan-2.0.1/src/preproc'
Making install in datstr
make[2]: Entering directory `/home/user/bob/titan-2.0.1/src/datstr'
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/datstr'
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/user/bob/titan-2.0.1/src/datstr'
make[2]: Leaving directory `/home/user/bob/titan-2.0.1/src/datstr'
Making install in repartition
make[2]: Entering directory `/home/user/bob/titan-2.0.1/src/repartition'
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/repartition'
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/user/bob/titan-2.0.1/src/repartition'
make[2]: Leaving directory `/home/user/bob/titan-2.0.1/src/repartition'
Making install in adapt
make[2]: Entering directory `/home/user/bob/titan-2.0.1/src/adapt'
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/adapt'
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/user/bob/titan-2.0.1/src/adapt'
make[2]: Leaving directory `/home/user/bob/titan-2.0.1/src/adapt'
Making install in geoflow
make[2]: Entering directory `/home/user/bob/titan-2.0.1/src/geoflow'
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/geoflow'
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/user/bob/titan-2.0.1/src/geoflow'
make[2]: Leaving directory `/home/user/bob/titan-2.0.1/src/geoflow'
Making install in tecplot
make[2]: Entering directory `/home/user/bob/titan-2.0.1/src/tecplot'
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/tecplot'
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/user/bob/titan-2.0.1/src/tecplot'
make[2]: Leaving directory `/home/user/bob/titan-2.0.1/src/tecplot'
Making install in stochastic
make[2]: Entering directory `/home/user/bob/titan-2.0.1/src/stochastic'
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/stochastic'
test -z "/home/user/bob/titan-2.0.1/bin" || /bin/mkdir -p "/home/user/bob/titan-2.0.1/bin"
/usr/bin/install -c lhsbed lhsvol lhstitanstats gentitanteststats '/home/user/bob/titan-2.0.1/bin'
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/user/bob/titan-2.0.1/src/stochastic'
make[2]: Leaving directory `/home/user/bob/titan-2.0.1/src/stochastic'
Making install in vectordatapreproc
make[2]: Entering directory `/home/user/bob/titan-2.0.1/src/vectordatapreproc'
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/vectordatapreproc'
test -z "/home/user/bob/titan-2.0.1/bin" || /bin/mkdir -p "/home/user/bob/titan-2.0.1/bin"
/usr/bin/install -c VecDataPreproc '/home/user/bob/titan-2.0.1/bin'
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/user/bob/titan-2.0.1/src/vectordatapreproc'
make[2]: Leaving directory `/home/user/bob/titan-2.0.1/src/vectordatapreproc'
Making install in main
make[2]: Entering directory `/home/user/bob/titan-2.0.1/src/main'
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src/main'
test -z "/home/user/bob/titan-2.0.1/bin" || /bin/mkdir -p "/home/user/bob/titan-2.0.1/bin"
/usr/bin/install -c titan '/home/user/bob/titan-2.0.1/bin'
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/user/bob/titan-2.0.1/src/main'
make[2]: Leaving directory `/home/user/bob/titan-2.0.1/src/main'
make[2]: Entering directory `/home/user/bob/titan-2.0.1/src'
make[3]: Entering directory `/home/user/bob/titan-2.0.1/src'
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/user/bob/titan-2.0.1/src'
make[2]: Leaving directory `/home/user/bob/titan-2.0.1/src'
make[1]: Leaving directory `/home/user/bob/titan-2.0.1/src'
Making install in scripts
make[1]: Entering directory `/home/user/bob/titan-2.0.1/scripts'
make[2]: Entering directory `/home/user/bob/titan-2.0.1/scripts'
test -z "/home/user/bob/titan-2.0.1/bin" || /bin/mkdir -p "/home/user/bob/titan-2.0.1/bin"
/usr/bin/install -c titan_pilehelper titan_regionhelper r.gmfg.titan s.in.titan titan_gui.py '/home/user/bob/titan-2.0.1/bin'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/user/bob/titan-2.0.1/scripts'
make[1]: Leaving directory `/home/user/bob/titan-2.0.1/scripts'
Making install in doc
make[1]: Entering directory `/home/user/bob/titan-2.0.1/doc'
make[2]: Entering directory `/home/user/bob/titan-2.0.1/doc'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/user/bob/titan-2.0.1/doc'
make[1]: Leaving directory `/home/user/bob/titan-2.0.1/doc'
make[1]: Entering directory `/home/user/bob/titan-2.0.1'
make[2]: Entering directory `/home/user/bob/titan-2.0.1'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/user/bob/titan-2.0.1'
make[1]: Leaving directory `/home/user/bob/titan-2.0.1'
user@osgeolive:~/bob/titan-2.0.1$ cd bin]
bash: cd: bin]: No such file or directory
user@osgeolive:~/bob/titan-2.0.1$ cd bin
user@osgeolive:~/bob/titan-2.0.1/bin$ ls
frict.data lhsvol TEST2 titan_gui.py titan_regionhelper
gentitanteststats r.gmfg.titan TEST3 titan_materialnames VecDataPreproc
lhsbed s.in.titan TEST4 titan_pilehelper
lhstitanstats TEST1 titan titan_preprocess
user@osgeolive:~/bob/titan-2.0.1/bin$ python titan_gui.py
Error installing the last version of Titan-3.0.0 code
I wonder if someone can suggest me which is the error that I make in installing this numerical code in Ubuntu 12.04, here is what I did:
Code:
user@osgeolive:~/Bob/titan-3.0.0$ sh install-titan.sh
install-titan.sh: 9: [: x/usr/local/bin/mpicxx: unexpected operator
/usr
install-titan.sh: 39: install-titan.sh: [[: not found
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/local/bin/mpicxx accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of /usr/local/bin/mpicxx... gcc3
checking for gcc... /usr/local/bin/mpicc
checking whether we are using the GNU C compiler... yes
checking whether /usr/local/bin/mpicc accepts -g... yes
checking for /usr/local/bin/mpicc option to accept ANSI C... none needed
checking dependency style of /usr/local/bin/mpicc... gcc3
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... f95
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f95 accepts -g... yes
checking how to run the C preprocessor... /usr/local/bin/mpicc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... no, using cp -p
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking how to get verbose linking output from f95... -v
checking for Fortran libraries of f95... -L/usr/lib/gcc/i686-linux-gnu/4.6 -L/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu -L/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib -L/lib/i386-linux-gnu -L/lib/../lib -L/usr/lib/i386-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/i686-linux-gnu/4.6/../../.. -lgfortran -lm -lgcc_s -lquadmath
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for pthread_create in -lpthread... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for MPICH2... yes
checking for MPI_Init in -lmpich... yes
checking for gzread in -lz... yes
checking for H5open in -lhdf5... yes
checking for G_gisinit in -lgis... no
checking for gdal-config... gdal-config
checking for GDALOpen in -lgdal... yes
checking how to run the C++ preprocessor... /usr/local/bin/mpicxx -E
checking for egrep... grep -E
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 gdal_priv.h, usability... no
checking gdal_priv.h, presence... no
checking for gdal_priv.h,... no
checking ogr_spatialref.h usability... yes
checking ogr_spatialref.h presence... yes
checking for ogr_spatialref.h... yes
checking for GDAL availability... yes
checking for matherr in -lm... yes
checking for inet_ntoa in -lnsl... yes
checking for ANSI C header files... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking mpi.h usability... yes
checking mpi.h presence... yes
checking for mpi.h... yes
checking hdf5.h usability... yes
checking hdf5.h presence... yes
checking for hdf5.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether sys/types.h defines makedev... yes
checking for floor... yes
checking for pow... yes
checking for sqrt... yes
checking for strchr... yes
checking for strdup... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating scripts/Makefile
config.status: creating src/Makefile
config.status: creating src/adapt/Makefile
config.status: creating src/datstr/Makefile
config.status: creating src/geoflow/Makefile
config.status: creating src/gisapi/Makefile
config.status: creating src/header/Makefile
config.status: creating src/main/Makefile
config.status: creating src/preproc/Makefile
config.status: creating src/repartition/Makefile
config.status: creating src/stochastic/Makefile
config.status: creating src/tecplot/Makefile
config.status: creating src/useful/Makefile
config.status: creating src/vectordatapreproc/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
make all-recursive
make[1]: Entering directory `/home/user/Bob/titan-3.0.0'
Making all in src
make[2]: Entering directory `/home/user/Bob/titan-3.0.0/src'
Making all in header
make[3]: Entering directory `/home/user/Bob/titan-3.0.0/src/header'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/user/Bob/titan-3.0.0/src/header'
Making all in gisapi
make[3]: Entering directory `/home/user/Bob/titan-3.0.0/src/gisapi'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/user/Bob/titan-3.0.0/src/gisapi'
Making all in useful
make[3]: Entering directory `/home/user/Bob/titan-3.0.0/src/useful'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/user/Bob/titan-3.0.0/src/useful'
Making all in preproc
make[3]: Entering directory `/home/user/Bob/titan-3.0.0/src/preproc'
/usr/local/bin/mpicxx -DOMPI_IGNORE_CXX_SEEK -w -g -O2 -DMPICH_IGNORE_CXX_SEEK -L/usr/local/lib/pkgconfig/lib -lmpich -lmpichcxx -lopa -lpthread -lrt -L/usr/lib -L/usr/lib -lgdal -o titan_materialnames titan_materialnames-materialnames.o ../gisapi/libgisapi.a ../useful/libuseful.a -lnsl -lm -lhdf5 -lz -lmpich -lpthread
../gisapi/libgisapi.a(GdalApi.o): In function `Initialize_GDAL_data(char const*)':
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:21: undefined reference to `GDALAllRegister'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:24: undefined reference to `GDALOpen'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:32: undefined reference to `OGRSpatialReference::OGRSpatialReference(char const*)'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:34: undefined reference to `OGRSpatialReference::importFromWkt(char**)'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:55: undefined reference to `GDALDataset::GetRasterXSize()'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:56: undefined reference to `GDALDataset::GetRasterYSize()'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:37: undefined reference to `OGRSpatialReference::GetUTMZone(int*) const'
../gisapi/libgisapi.a(GdalApi.o): In function `load_GDAL_data()':
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:94: undefined reference to `GDALAllRegister'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:100: undefined reference to `GDALOpen'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:110: undefined reference to `GDALDataset::GetRasterBand(int)'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:120: undefined reference to `GDALRasterBand::GetXSize()'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:121: undefined reference to `GDALRasterBand::GetYSize()'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:132: undefined reference to `GDALRasterBand::RasterIO(GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, int, int)'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:114: undefined reference to `GDALColorTable::GetColorEntryCount() const'
collect2: ld returned 1 exit status
make[3]: *** [titan_materialnames] Error 1
make[3]: Leaving directory `/home/user/Bob/titan-3.0.0/src/preproc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/user/Bob/titan-3.0.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/Bob/titan-3.0.0'
make: *** [all] Error 2
Making install in src
make[1]: Entering directory `/home/user/Bob/titan-3.0.0/src'
Making install in header
make[2]: Entering directory `/home/user/Bob/titan-3.0.0/src/header'
make[3]: Entering directory `/home/user/Bob/titan-3.0.0/src/header'
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/user/Bob/titan-3.0.0/src/header'
make[2]: Leaving directory `/home/user/Bob/titan-3.0.0/src/header'
Making install in gisapi
make[2]: Entering directory `/home/user/Bob/titan-3.0.0/src/gisapi'
make[3]: Entering directory `/home/user/Bob/titan-3.0.0/src/gisapi'
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/user/Bob/titan-3.0.0/src/gisapi'
make[2]: Leaving directory `/home/user/Bob/titan-3.0.0/src/gisapi'
Making install in useful
make[2]: Entering directory `/home/user/Bob/titan-3.0.0/src/useful'
make[3]: Entering directory `/home/user/Bob/titan-3.0.0/src/useful'
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/user/Bob/titan-3.0.0/src/useful'
make[2]: Leaving directory `/home/user/Bob/titan-3.0.0/src/useful'
Making install in preproc
make[2]: Entering directory `/home/user/Bob/titan-3.0.0/src/preproc'
/usr/local/bin/mpicxx -DOMPI_IGNORE_CXX_SEEK -w -g -O2 -DMPICH_IGNORE_CXX_SEEK -L/usr/local/lib/pkgconfig/lib -lmpich -lmpichcxx -lopa -lpthread -lrt -L/usr/lib -L/usr/lib -lgdal -o titan_materialnames titan_materialnames-materialnames.o ../gisapi/libgisapi.a ../useful/libuseful.a -lnsl -lm -lhdf5 -lz -lmpich -lpthread
../gisapi/libgisapi.a(GdalApi.o): In function `Initialize_GDAL_data(char const*)':
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:21: undefined reference to `GDALAllRegister'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:24: undefined reference to `GDALOpen'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:32: undefined reference to `OGRSpatialReference::OGRSpatialReference(char const*)'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:34: undefined reference to `OGRSpatialReference::importFromWkt(char**)'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:55: undefined reference to `GDALDataset::GetRasterXSize()'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:56: undefined reference to `GDALDataset::GetRasterYSize()'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:37: undefined reference to `OGRSpatialReference::GetUTMZone(int*) const'
../gisapi/libgisapi.a(GdalApi.o): In function `load_GDAL_data()':
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:94: undefined reference to `GDALAllRegister'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:100: undefined reference to `GDALOpen'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:110: undefined reference to `GDALDataset::GetRasterBand(int)'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:120: undefined reference to `GDALRasterBand::GetXSize()'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:121: undefined reference to `GDALRasterBand::GetYSize()'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:132: undefined reference to `GDALRasterBand::RasterIO(GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, int, int)'
/home/user/Bob/titan-3.0.0/src/gisapi/GdalApi.cc:114: undefined reference to `GDALColorTable::GetColorEntryCount() const'
collect2: ld returned 1 exit status
make[2]: *** [titan_materialnames] Error 1
make[2]: Leaving directory `/home/user/Bob/titan-3.0.0/src/preproc'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/user/Bob/titan-3.0.0/src'
make: *** [install-recursive] Error 1
user@osgeolive:~/Bob/titan-3.0.0$
I hope someone can suggest me some hint foe the above error.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
# 24 .
Probably wrong : "sh install-titan.sh"
The Ubuntu default 'sh' is dash.
Please read the text file 'install-titan.sh', to know which shell is used.
If bash, the command should be : bash install-titan.sh
Or : ./install-titan.sh
How old is Titan-3.0.0 ?
This will tell : cd src && ls -Rl
If the files aren't from yesterday : Use gcc/g++ version 4.4 .
If some older : gcc/g++ version 4.1 .
Also : You could supply a download link for Titan-3.0.0 .
Then it's easier to see what's about.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
# 26 .
OK, got the package titan-3.0.0.tar.gz .
Which version of gdal are you using ?
And mpich2 ?
The script sh install-titan.sh do checks like ./configure, etc.
The disadvantage is that you cannot choose a compiler.
Some files in titan-3.0.0/ are still from 2007, so may be this will work :
$ export CC=gcc41 CXX=g++41 && ./configure && make
... If you have the right version of gdal.
I am using As mpich2 the following version 'mpich2-1.3.2
As gdal packages, I have the following:
1) gdal-bin 1.9.2-2~precise4
2)libgdal-dev 1.9.2-2~precise4
3) libgdal1 1.9.2-2~precise4
4)libgdal1-1.7.0 1.7.3-6ubuntu3
5)libgdal1-1.9.0-grass 1.9.1-2~precise1
6)libgdal1-dev 1.9.2-2~precise4
7) python-3gdal 1.9.2-2~precise4
I am using Xubuntu 12.04 in osgeo-live 6.5 with a vitual box in windows 7.
ok I will try your suggestion and I get back to you. I tried bash and it is the same as sh.
$ export CC=gcc41 CXX=g++-41 && ./configure && make
... If you have the right version of gdal.
I tried this but I have the following error:
Code:
user@osgeolive:~/Bob/titan-3.0.0$ export CC=gcc41 CXX=g++-41 && ./configure && make
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details
I show the config.log as well:
Code:
See `config.log' for more details.
user@osgeolive:~/Bob/titan-3.0.0$ cat 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 titan configure 3.0.0, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = osgeolive
uname -m = i686
uname -r = 3.2.0-41-generic
uname -s = Linux
uname -v = #66-Ubuntu SMP Thu Apr 25 03:28:09 UTC 2013
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /home/user/bin
PATH: /usr/lib/lightdm/lightdm
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/lib/gmt/bin
PATH: /usr/local/ossim/bin
PATH: /usr/local/rasdaman/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1409: checking for a BSD-compatible install
configure:1464: result: /usr/bin/install -c
configure:1475: checking whether build environment is sane
configure:1518: result: yes
configure:1583: checking for gawk
configure:1599: found /usr/bin/gawk
configure:1609: result: gawk
configure:1619: checking whether make sets $(MAKE)
configure:1639: result: yes
configure:1914: checking for C++ compiler version
configure:1917: g++-41 --version </dev/null >&5
./configure: line 1918: g++-41: command not found
configure:1920: $? = 127
configure:1922: g++-41 -v </dev/null >&5
./configure: line 1923: g++-41: command not found
configure:1925: $? = 127
configure:1927: g++-41 -V </dev/null >&5
./configure: line 1928: g++-41: command not found
configure:1930: $? = 127
configure:1953: checking for C++ compiler default output file name
configure:1956: g++-41 conftest.cc >&5
./configure: line 1957: g++-41: command not found
configure:1959: $? = 127
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "titan"
| #define PACKAGE_TARNAME "titan"
| #define PACKAGE_VERSION "3.0.0"
| #define PACKAGE_STRING "titan 3.0.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "titan"
| #define VERSION "3.0.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:1998: error: C++ compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc41
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=g++-41
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_MPICH2_CFLAGS_set=
ac_cv_env_MPICH2_CFLAGS_value=
ac_cv_env_MPICH2_LIBS_set=
ac_cv_env_MPICH2_LIBS_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_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_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_make_make_set=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /home/user/Bob/titan-3.0.0/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/user/Bob/titan-3.0.0/missing --run tar'
AUTOCONF='${SHELL} /home/user/Bob/titan-3.0.0/missing --run autoconf'
AUTOHEADER='${SHELL} /home/user/Bob/titan-3.0.0/missing --run autoheader'
AUTOMAKE='${SHELL} /home/user/Bob/titan-3.0.0/missing --run automake-1.9'
AWK='gawk'
BUILD_HDF5_FALSE=''
BUILD_HDF5_TRUE=''
CC='gcc41'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX='g++-41'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
FLIBS=''
GDAL_CONFIG=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/user/Bob/titan-3.0.0/missing --run makeinfo'
MPICH2_CFLAGS=''
MPICH2_LIBS=''
OBJEXT=''
PACKAGE='titan'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='titan'
PACKAGE_STRING='titan 3.0.0'
PACKAGE_TARNAME='titan'
PACKAGE_VERSION='3.0.0'
PATH_SEPARATOR=':'
PKG_CONFIG=''
RANLIB=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
VERSION='3.0.0'
WITH_GDAL_FALSE=''
WITH_GDAL_TRUE=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_F77=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
ac_pt_PKG_CONFIG=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${prefix}/share'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/user/Bob/titan-3.0.0/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE "titan"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "titan"
#define PACKAGE_STRING "titan 3.0.0"
#define PACKAGE_TARNAME "titan"
#define PACKAGE_VERSION "3.0.0"
#define VERSION "3.0.0"
configure: exit 77
user@osgeolive:~/Bob/titan-3.0.0$
I hope it helps
Last edited by Robert84; 05-04-2013 at 09:42 PM.
Reason: save space
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
# 29 .
My typo : It is of course g++41, like post #9 :
Must be an executable that you actually have installed : $ which g++41
? But the most important is probably about the gdal version :
Ref. your errors in post #24.
We know that titan-3.0.0 will compile with gdal-1.6.3 :
That's the version used for "titan_3.0.0_amd64.deb".
Ref. http://www.gmfg.buffalo.edu/software.php
... And you are trying to use "libgdal1-dev 1.9.2".
I guess that mpich2-1.3.2 will do fine.
( titan_3.0.0_amd64.deb : mpich2-1.2 was used.)
(( Packages "(lib)mpich2-1.2 1.2.1-4" and "libgdal1-1.6.0 1.6.3-3",
"libgdal1-dev 1.6.3" are Ubuntu 10.04 versions.))
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.