Welcome, Guest
Username: Password: Remember me

TOPIC: running problem!!

Re:running problem!! 13 years 4 months ago #1769

  • rcsilva
  • rcsilva's Avatar
Hi,

The `cd` doesn't seem to work for setting the current directory. Nevertheless, forcing it to the intallation directory:

$curDir="C:\\TELEMAC\\V6P0\\install\\win";

solves the problem, but the error in runtel.pl line 273 persists, when executing telemac2d:
error_1.JPG


à demain
The administrator has disabled public write access.

Re:running problem!! 13 years 4 months ago #1770

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi

As I understand, you could change the directory with cd .. (for example) but the command cd alone doesn't gives you the directory where you are.

Did you tried with "chdir" ?

Even you manually assign curDir value, there are some other place where such method was used that's why you found the same problem in runtel.pl
I think you should solve the install_systel.pl problem and then everything should run well

what is the result of command : help cd?

Regards
Christophe
The administrator has disabled public write access.

Re:running problem!! 13 years 4 months ago #1771

  • rcsilva
  • rcsilva's Avatar
Hi,

The command: cd works perfectly in the command window. However the instruction:

$curDir=`cd`;

in line 115 of the install_systel.pl doesn't assign any value to curDir variable.

As I see it `cd` is not recognized by perl...

The command: help is not recognized in the command window.
chdir returns 0 in the second chek point.

I found another way of solving the problem:
1. include a perl module: use Cwd;
2. in line 115 give the instruction: $curDir=cwd;

But, I still have the initial error in runtel.pl when running telemac2d...

Regards
The administrator has disabled public write access.

Re:running problem!! 13 years 4 months ago #1778

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
Really strange that the cd command works and don't work in a perl script.
Could you enter perl -help in a command windows and also perl -v.
Regards
Christophe
The administrator has disabled public write access.

Re:running problem!! 13 years 4 months ago #1780

  • rcsilva
  • rcsilva's Avatar
Hi

Attached you may see the result of perl -help and perl -v.

perl.JPG


Regards
The administrator has disabled public write access.

Re:running problem!! 13 years 4 months ago #1781

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi

I noticed one problem with strawberry perl on W7-64bits. Maybe it's a generalized problem of the latest version of strawberry

Please uninstall strawberry perl and try to install the previous version 5.10.1 instead 5.12.3.

I hope this will solve your problem

Regards
Christophe
The administrator has disabled public write access.

Re:running problem!! 13 years 4 months ago #1784

  • rcsilva
  • rcsilva's Avatar
Hi

It does not. The problem the error when executing telemac2d is exactly the same with v5.10.1 of strawberry perl.

Regards
The administrator has disabled public write access.

Re:running problem!! 13 years 4 months ago #1789

  • rcsilva
  • rcsilva's Avatar
Hi

Do you think that this could be some kind of conflict because I already had minGW installed?

Regards
The administrator has disabled public write access.

Re:running problem!! 13 years 4 months ago #1791

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi

I'm not sure your problem comes from minGW. I cannot see any links between telemac and minGW. but if you think this could be, make a trial.

regards
Christophe
The administrator has disabled public write access.

Re:running problem!! 13 years 4 months ago #1792

  • rcsilva
  • rcsilva's Avatar
Hi

What about openssh?

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

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