Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: cfgmak

cfgmak 13 years 5 months ago #1599

  • jdelgado
  • jdelgado's Avatar
Hi,

cfgmak was not successful with me:

./cfgmak: 8: getperl5lib: not found
./cfgmak: 11: getperlpath: not found
./cfgmak: 14: /perl: not found

my perl paths are as they should, i.e. /usr/bin and /usr/lib

I am in ubuntu and I also used fromdos.

any suggestions?
The administrator has disabled public write access.

Re:cfgmak 13 years 5 months ago #1610

  • ails
  • ails's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 17
Hello,

"getperl5lib" should be found in the "bin" directory.

It seems that you tried to run "./cfgmak" before exporting "bin" in your "PATH".

=> export PATH=/path/to/bin:$PATH

If next issue is "getperl5lib ... permission denied", then please add executable permissions to our "bin" directory.

Regards,

Fabien
The administrator has disabled public write access.

Re:cfgmak 13 years 5 months ago #1637

  • jdelgado
  • jdelgado's Avatar
Thank you for your help. It was in fact the path to the perl binaries that was not added.

Now the next step, I get several errors while compiling with makeall90. The most common are of this type:

Repertoire 'telemac2d/tel2d_v6p0/sources_gFortran' inexistant

While trying to compile step by step I got the following:

jdelgado@jdelgado-laptop:~/TELEMAC/bin$ maktel install
make: *** No rule to make target `install'. Stop.


If these issues ring a bell, please let me know. Otherwise I will try to fix it myself later on.

Many thanks!

ze
The administrator has disabled public write access.

Re:cfgmak 13 years 5 months ago #1638

  • jmhervouet
  • jmhervouet's Avatar
Hello,

The following message :

Repertoire 'telemac2d/tel2d_v6p0/sources_gFortran' inexistant

is not a problem. The perl scripts just look if there are specific sources for the compiler gFortran, and if not they proceed with folder "sources"

Now:

make: *** No rule to make target `install'. Stop.

This "maktel install all" must be done in every folder source in the order given in the documentation. But anyway makeall90 in directory bin should work.

With best regards,

Jean-Michel Hervouet
The administrator has disabled public write access.

Re:cfgmak 13 years 1 month ago #2583

  • clebouteiller
  • clebouteiller's Avatar
Hi,
I am trying to install Telemac on a linux system (debian-gfortran), and I am getting the same sort of error messages that you are describing:

First, when trying to run cfgmak, I got messages "can't execute getperl5lib: permission denied", same thing with "getperlpath".
Then after updating manually cfgmak.mak I tried makeall90 which similarly gave "can't execute gethosttype: permission denied". So I entered manually the variable HOST in makeall90, and next error message is "can't execute maktel: permission denied"

I checked the executable permissions of bin directory but they appear to be ok.

Now, if I go into mumpsvoid sources and try "maktel install" I get "no rule to make target install".

I am really lost, if anyone has some advice to give me I will really appreciate your help!
Thank you,

Caroline
The administrator has disabled public write access.

Re:cfgmak 13 years 1 month ago #2584

  • clebouteiller
  • clebouteiller's Avatar
Hi again,

About the first part of my last message, I actually rechecked the executable permission on /bin and I was wrong, now I do not get anymore the error about "permission denied"

However, I still can not do the compilation in each sources directory (for instance, in mumpsvoid/mumpsvoid_v6p1/sources), I get "no rule to make target 'install"

Other issues that I have more or less solved at the moment include:

In makefile: "Include $SYSTELCFG/cfgmak.mak" gives error "No such file or directory". At the moment I have simply entered manually the variables from cfgmak.mak.

In makeall90.pl: I need to modify "maktel install" into "bash maktel install" since I am using bash shell. Otherwise, I get "can't exec. maktel: no such file or directory".

When running cfgmak, message error is now "bloc /path/config/systel.ini". I am then using a manually edited version of cfgmak.mak for the moment.

Thanks for any possible ideas/hints about that!

Caroline
The administrator has disabled public write access.

Re:cfgmak 13 years 1 month ago #2600

  • ails
  • ails's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 17
Hi,

Well, we - at Edf - are using daily TELEMAC on debian & bash shell, so it shouldn't be a problem.

First issue - before running makeall90 - is to solve your cfgmak problem.
Please check that :
- systel.ini is not in DOS format : use fromdos or dos2unix to be sure ;
- check that perlpath and perl5lib are correctly filled in systel.ini ;
- check the project path variable and hosttype in systel.ini ;
- run cfgmak ;
- post your systel.ini if it didn't work

Regards,

Fabien Decung
The administrator has disabled public write access.

Re:cfgmak 13 years 1 month ago #2602

  • clebouteiller
  • clebouteiller's Avatar
Hi Fabien,

Thank you very much for your help.
You were right, I have run fromdos and have managed to update the cfgmak.mak file.

However, while doing this I still went through a few issues summarized here:

> cfgmak
bash /home/model/telemac/v6p1/bin/cfgmak.mak : /bin/sh^M : bad interpreter : no such file or directory

> bash cfgmak
': not a valid identifierPERL5LIB
': not a valid identifier'PERLPATH

Then I just gave up with the cfgmak file and directly called perl

>perl -x -S cfgmak.pl
And this eventually worked. Therefore I have the feeling of something wrong being sh and bash...?

Then I tried the compilation but it is not working. Here is what I got:

>makeall90
bash : /home/model/telemac/v6p1/bin/makeall90 : permission denied
>bash makeall90
': not a valid identifier: 'PERL5LIB
:command not found
:command not found


Ready for making system Telemac90
Invalid switch

usage: makeall90 [-y]
-y : user confirm mode

And that's all.

Perl was already installed on this computer with path usr/bin and usr/lib which probably explains that I can skip the getperl5lib and getperlpath steps. However, I still need the gethosttype, getproject and other similar functions in makeall90, that it seems that I can not call.

If you have some time to check this with me, that will help me very much! Thank you,

Caroline
The administrator has disabled public write access.

Re:cfgmak 13 years 1 month ago #2603

  • clebouteiller
  • clebouteiller's Avatar
Hi again,

Eventually, running fromdos over all text files in the /bin directory (cfgmak, makeall90, maktel, get... ) seems to solve some problems, the compilation can now start.
Now, it appears that some of the directories are not compiled properly.
- For instance, nothing is created in /mumpsvoid.
- In /sisyphe there is a new folder /linux_gfortran but it only contains .mod files and no library or exe. Same for telemac2d or telemac3d or tomawac.
- /spartacus on the contrary has its library and exe created into the new /linux_gfortran folder.

Is there anything I should do to get the compilation work properly?
Thank you again,

Caroline
The administrator has disabled public write access.

Re:cfgmak 13 years 1 month ago #2604

  • ails
  • ails's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 17
Well, you must have something in mumpsvoid/mumpsvoid_$version/gfortran_linux before trying to compile remaining libraries.

And it's hard to say something helpful without the error outputs.
Please run makeall90 > compil.log and post the log file.

Faster : You can also try to compile directly mumpsvoid from sources : maktel install in mumpsvoid/mumpsvoid_$version/sources

I only may suggest a fromdos on every text files (*.f, *.f90, makefile)

Where did you get the sources? V6P1 from the TELEMAC website?

Regards,

Fabien Decung
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: borisb

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