Error while installing SYRTHES on ubuntu 11.04 before instal
Posted: Fri Sep 23, 2011 2:15 pm
Hello,
i'm having some problems on installing syrthes 3.4.3 following the readme file at the first step In my Ubuntu 11.04 64 bit i cant source this file,
polial@polial-desktop:~/Scrivania/syrthes3.4.3/bin$ source syrthes.profile
: comando non trovato
: comando non trovato
: comando non trovato
bash: syrthes.profile: riga 46: errore di sintassi vicino il simbolo non atteso "elif"
bash: syrthes.profile: riga 46: ` elif [ "`domainname 2>/dev/null`" = "cluste'-chatou" ] ; then
polial@polial-desktop:~/Scrivania/syrthes3.4.3/bin$
either deleting all the lines and leaving :
NOM_ARCH=Linux_x86_64
PATHSYR=/home/syrthes
SYRTHES_HOME=${PATHSYR}/syrthes3.4.3
PATH=${SYRTHES_HOME}/bin:${SYRTHES_HOME}/bin/${NOM_ARCH}:$PATH
export PATH
export NOM_ARCH NOM_USER SYRTHES_HOME
the result is
polial3@polial3-HP-Compaq-6000-Pro-MT-PC:~/Scrivania/syrthes3.4.3/bin$ source syrthes.profile
: comando non trovato
: comando non trovato
: comando non trovato
: comando non trovato
": non un identificatore valido
: comando non trovato
: comando non trovato
": non un identificatore valido
: comando non trovato
: comando non trovato
polial3@polial3-HP-Compaq-6000-Pro-MT-PC:~/Scrivania/syrthes3.4.3/bin$
but if write these command line by line in a terminal following these tutorial i just wrote :
"Download SYRTHES from the EDF site,
Unzip in a directory.
If you follow the README file in Ubuntu probably the source file doesn't work, so you have to manually write these commands in a terminal :
NOM_ARCH=Linux_x86_64
PATHSYR=/home/syrthes
SYRTHES_HOME=${PATHSYR}/syrthes3.4.3
PATH=${SYRTHES_HOME}/bin:${SYRTHES_HOME}/bin/${NOM_ARCH}:$PATH
export PATH
export NOM_ARCH NOM_USER SYRTHES_HOME
Now manually create the directory mentioned in PATHSYR, inside PATHSYR copy the directory syrthes3.4.3 you just unzipped.
Now, returning to the README FILE,configure Makefile.in adding to the part for Linux_x86_64 the line for fortran compiler that is gfortran (if you don't have install from repositories), your code should be like this:
ifeq ($(NOM_ARCH), Linux_x86_64)
#-------------------------------
# Preprocesseur
PREPROC =
PREPROCFLAGS =
# C compiler
CC = /usr/bin/gcc
CFLAGS = -O2 -D_FILE_OFFSET_BITS=64 -DHAVE_C_IO
# FORTRAN compiler
FC = /usr/bin/gfortran
FCFLAGS = -O2 -DHAVE_C_IO -D_FILE_OFFSET_BITS=64
# loader
LD = /usr/bin/gfortran
LDFLAGS = -O2
#
endif
Now before doing make install, edit the file Makefile at line 36, the code should be without any PATH :
include Makefile.in
Now you can type make install . "
But at the end when i type syrthes_create_case i obtain :
polial3@polial3-HP-Compaq-6000-Pro-MT-PC:~$ syrthes_create_case miocaso
Il programma "syrthes_create_case" non è attualmente installato. È possibile installarlo digitando:
sudo apt-get install syrthes
polial3@polial3-HP-Compaq-6000-Pro-MT-PC:~$
(the program is not actually installed, it's possible to install typing ...)
How can i solve this? if i install both
syrthes and saturne from apt i get older versions and more important the error of .MED .UNV files unrecognized (bad compiling)
Thanks in advance
i'm having some problems on installing syrthes 3.4.3 following the readme file at the first step In my Ubuntu 11.04 64 bit i cant source this file,
polial@polial-desktop:~/Scrivania/syrthes3.4.3/bin$ source syrthes.profile
: comando non trovato
: comando non trovato
: comando non trovato
bash: syrthes.profile: riga 46: errore di sintassi vicino il simbolo non atteso "elif"
bash: syrthes.profile: riga 46: ` elif [ "`domainname 2>/dev/null`" = "cluste'-chatou" ] ; then
polial@polial-desktop:~/Scrivania/syrthes3.4.3/bin$
either deleting all the lines and leaving :
NOM_ARCH=Linux_x86_64
PATHSYR=/home/syrthes
SYRTHES_HOME=${PATHSYR}/syrthes3.4.3
PATH=${SYRTHES_HOME}/bin:${SYRTHES_HOME}/bin/${NOM_ARCH}:$PATH
export PATH
export NOM_ARCH NOM_USER SYRTHES_HOME
the result is
polial3@polial3-HP-Compaq-6000-Pro-MT-PC:~/Scrivania/syrthes3.4.3/bin$ source syrthes.profile
: comando non trovato
: comando non trovato
: comando non trovato
: comando non trovato
": non un identificatore valido
: comando non trovato
: comando non trovato
": non un identificatore valido
: comando non trovato
: comando non trovato
polial3@polial3-HP-Compaq-6000-Pro-MT-PC:~/Scrivania/syrthes3.4.3/bin$
but if write these command line by line in a terminal following these tutorial i just wrote :
"Download SYRTHES from the EDF site,
Unzip in a directory.
If you follow the README file in Ubuntu probably the source file doesn't work, so you have to manually write these commands in a terminal :
NOM_ARCH=Linux_x86_64
PATHSYR=/home/syrthes
SYRTHES_HOME=${PATHSYR}/syrthes3.4.3
PATH=${SYRTHES_HOME}/bin:${SYRTHES_HOME}/bin/${NOM_ARCH}:$PATH
export PATH
export NOM_ARCH NOM_USER SYRTHES_HOME
Now manually create the directory mentioned in PATHSYR, inside PATHSYR copy the directory syrthes3.4.3 you just unzipped.
Now, returning to the README FILE,configure Makefile.in adding to the part for Linux_x86_64 the line for fortran compiler that is gfortran (if you don't have install from repositories), your code should be like this:
ifeq ($(NOM_ARCH), Linux_x86_64)
#-------------------------------
# Preprocesseur
PREPROC =
PREPROCFLAGS =
# C compiler
CC = /usr/bin/gcc
CFLAGS = -O2 -D_FILE_OFFSET_BITS=64 -DHAVE_C_IO
# FORTRAN compiler
FC = /usr/bin/gfortran
FCFLAGS = -O2 -DHAVE_C_IO -D_FILE_OFFSET_BITS=64
# loader
LD = /usr/bin/gfortran
LDFLAGS = -O2
#
endif
Now before doing make install, edit the file Makefile at line 36, the code should be without any PATH :
include Makefile.in
Now you can type make install . "
But at the end when i type syrthes_create_case i obtain :
polial3@polial3-HP-Compaq-6000-Pro-MT-PC:~$ syrthes_create_case miocaso
Il programma "syrthes_create_case" non è attualmente installato. È possibile installarlo digitando:
sudo apt-get install syrthes
polial3@polial3-HP-Compaq-6000-Pro-MT-PC:~$
(the program is not actually installed, it's possible to install typing ...)
How can i solve this? if i install both
syrthes and saturne from apt i get older versions and more important the error of .MED .UNV files unrecognized (bad compiling)
Thanks in advance