Welcome, Guest
Username: Password: Remember me

TOPIC: On installing telemac6.0

On installing telemac6.0 14 years 4 months ago #317

  • lmthk
  • lmthk's Avatar
Hi, Can anyone help me?

I got trouble when installing telemac on linux (mine is SuSe 9). The installation procedure are given below:

1. untarred the system, put into the directory
/home/chunwang/TELEMAC
Then in this directory, i can see many folders, such as bin, config, bief...

2. Go into directory bin:
cd /home/chunwang/bin
and run the command
chmod 755 *
to make all the scripts in this directory executable. This step is not written in the Installing mannual, but it seems necessary on my computer!!!

3. Edit .bashrc, added the path
export PATH=/home/chunwang/TELEMAC/bin:$PATH

4.Define environment variable
export SYSTELCFG=/home/chunwang/TELEMAC/config

5.Modify the file systel.ini as follows
...
PROJECT=/home/chunwang/TELEMAC
...
HOSTTYPE=linux
...
PERLPATH=/usr/bin/
PERL5LIB=/usr/lib/
...
[linux]
DIRLIB=linux
FC_NAM=...
...

6.Then I run the command
cfgmak
only to find it gives me
/home/chunwang/TELEMAC/bin/cfgmak: line 14: Error: command not found

:(

In my computer, there already exists perl in function. So, I took it and gave the PERLPATH and PERL5LIB as above. In addition, I also tried other HOSTTYPE, but got the same problem!

I think that this problem may be due to the file cfgmak. Then I checked this file. In this file, there is a line
PERLPATH='getperlpath'
In fact, on my computer if I add a line
echo $PERLPATH
after it. It only gives me
bloc in /home/chunwang/TELEMAC/config/systel.ini
which is of course not the PERLPATH we want. Thus problem caused. It seems that the subprogram fillHashFromBloc() in some perl scripts, such as getperlpath.pl, cfgmak.pl, is in problem: It doesn't read, in the file systel.ini, the section named by HOSTTYPE (e.g. [linux] here)!!!

:laugh:

Heeelp!
The administrator has disabled public write access.

Re:On installing telemac6.0 14 years 4 months ago #329

  • jeremie
  • jeremie's Avatar
  • OFFLINE
  • Junior Boarder
  • Hydro-Quebec
  • Posts: 39
  • Thank you received: 7
Hi,

I had the same problem on Gentoo. The error message you see at the screen comes from line 103 of getperlpath.pl. It seems that the script encounters endOfFile prematurely. The error then propagates to cfgmak since your perlpath is wrong because of the "bloc in" string.

Now, believe me or not, I fixed that issue no later than Monday and I can't remember what I did. I'm pretty sure I modified systel.ini. Either doing a little dos2unix to make sure carriage returns were ok or adding an extra blank line at the end of the file.

Does that help?

In the meantime, I'll try to reproduce the problem...

jeremie
The administrator has disabled public write access.

Re:On installing telemac6.0 14 years 4 months ago #356

  • lmthk
  • lmthk's Avatar
Hi, Jeremie,

Thanks for your guidance! It helps me a lot! Now this problem is solved!

Thanks again!

Chun
The administrator has disabled public write access.

Re:On installing telemac6.0 14 years 4 months ago #330

  • jeremie
  • jeremie's Avatar
  • OFFLINE
  • Junior Boarder
  • Hydro-Quebec
  • Posts: 39
  • Thank you received: 7
Hi again,

I was able to reproduce your problem. It turns out that a simple dos2unix on systel.ini fixes the issue for me!

j
The administrator has disabled public write access.

Re:On installing telemac6.0 14 years 4 months ago #337

  • victor
  • victor's Avatar
For Ububtu 10.04.

sudo apt-get install tofrodos

fromdos systel.ini

voila!
The administrator has disabled public write access.

Re:On installing telemac6.0 14 years 4 months ago #338

  • jmhervouet
  • jmhervouet's Avatar
Hola Victor,

No entiendo nada de lo que nos dices. Que significa: sudo apt-get install tofrodos fromdos systel.ini ?????? tienes un problema de teclado ?

Que te vaya bien,

JM
The administrator has disabled public write access.

Re:On installing telemac6.0 14 years 4 months ago #341

  • jeremie
  • jeremie's Avatar
  • OFFLINE
  • Junior Boarder
  • Hydro-Quebec
  • Posts: 39
  • Thank you received: 7
Hola JM,

sudo apt-get install tofrodos debes ejecutar el instalador del paquete debian para instalar las aplicaciones de conversion de los archivos de dos hacia unix y vice versa (el equivalente de dos2unix que yo use). Parece que el archivo systel.ini en el folder de instalacion esta en el formato dos.

Hasta luego

jeremie
The administrator has disabled public write access.

Re:On installing telemac6.0 14 years 4 months ago #339

  • victor
  • victor's Avatar
Hola Jean Michel

I got the same error when compiling telemac on ubuntu. It is necessary to run dos2unix but in ubuntu the way to do that is installing the tool "tofrodos" by typing

sudo apt-get install tofrodos

then the superruser password

once installes its necessary to convert systel.ini with the command

fromdos systel.ini

then cfgmak and makeall90 will do the rest.

Now I will try to do it for parallel option.

Eso es todo un gran abrazo

Victor
The administrator has disabled public write access.

Re:On installing telemac6.0 14 years 4 months ago #358

  • lmthk
  • lmthk's Avatar
Hi,Victor,

I solved this problem by following Jeremie's guidance. I didn't try fromdos, but I think it also works too. Anyway, thank you too!

Chun
The administrator has disabled public write access.
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.