Welcome, Guest
Username: Password: Remember me

TOPIC: Help Configuring and Compiling

Help Configuring and Compiling 8 years 9 months ago #19714

  • turnips
  • turnips's Avatar
Hi~!
Initially I tried to install this on Windows, and was quite unsuccessful. I decided to switch to Linux (Ubuntu specifically), so I could try again. However I am running into some issues.

I successfully downloaded Telemac V7p1r0 through a SVN. And next is where I encounter issues. I will give in detail what I have done.

1. I must add to my environment variable PATH. In the guide it says to add the pytel folder, however this is not present in my version (v7p1r0). I assumed you need to create a path to the folder containing compileTELEMAC.py. So I did this below (I added spaces for clarity)

chris@ChrisU:~$ cd TelemacRepos/v7p1r0/scripts/python27

chris@ChrisU:~/TelemacRepos/v7p1r0/scripts/python27$ ls

alter.py compactTELEMAC.py converter.py estel3d.py parsers samplers telemac3d.py
artemis.py compare.sh converters groupFile_medFile_to_BoundaryConditionDataFile.py postel3d.py scan.py tomawac.py
chop.py compileTELEMAC.py diff.py i2s.py runcode.py sisyphe.py translateTELEMAC.py
cis config.py docTELEMAC.py merge.py runKENUE.py stbtel.py utils
ColourMaps config.pyc doxygenTELEMAC.py mtlplots runSELAFIN.py telemac2d.py validateTELEMAC.py

chris@ChrisU:~/TelemacRepos/v7p1r0/scripts/python27$ pwd

/home/chris/TelemacRepos/v7p1r0/scripts/python27

chris@ChrisU:~/TelemacRepos/v7p1r0/scripts/python27$ export PATH=/home/chris/TelemacRepos/v7p1r0/scripts/python27:$PATH

chris@ChrisU:~/TelemacRepos/v7p1r0/scripts/python27$ printenv PATH

/home/chris/TelemacRepos/v7p1r0/scripts/python27:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games


2. Next according to the guide, I must create the SYSTELCFG environment variable. So I did this below

chris@ChrisU:~/TelemacRepos/v7p1r0/configs$ ls

systel-all.ini systel.cis-debian.cfg systel.cis-hydra.cfg systel.cis-windows7.cfg systel.edf.ini
systel.cfg systel.cis-doxygen.cfg systel.cis-opensuse.cfg systel.cis-windows.cfg systel.hrw.cfg
systel.cfg~ systel.cis-fedora.cfg systel.cis-ubuntu.cfg systel.edf.cfg

chris@ChrisU:~/TelemacRepos/v7p1r0/configs$ pwd

/home/chris/TelemacRepos/v7p1r0/configs

chris@ChrisU:~/TelemacRepos/v7p1r0/configs$ export SYSTELCFG=/home/chris/TelemacRepos/v7p1r0/configs/systel.cfg

chris@ChrisU:~/TelemacRepos/v7p1r0/configs$ printenv SYSTELCFG

/home/chris/TelemacRepos/v7p1r0/configs/systel.cfg

3. With the following systel.cfg file I customized from the systel.cis-ubuntu.cfg

# _____ _______________________________
# ____/ TELEMAC Project Definitions /______________________________/
#
[Configurations]
configs: serial
#
#
# _____ ___________________________________________________
# ____/ GENERAL /__________________________________________________/
[general]
root: /home/chris/TelemacRepos/v7p1r0/
modules: clean system
#
mods_all: -I <config>
#
sfx_zip: .gztar
sfx_lib: .a
sfx_obj: .o
sfx_mod: .mod
sfx_exe:
#
val_root: <root>/examples
val_rank: all
# also possible val_rank: <3 >7 6
# _____ ____________________________________
# ____/ Ubuntu gfortran scalar /___________________________________/
[serial]
#
brief: scalar mode, Fortran optimisation 3.
TELEMAC will work whether processor is 0 or 1
#
cmd_obj: gfortran-mp-4.9 -c -O3 -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>
cmd_lib: ar cru <libname> <objs>
cmd_exe: gfortran-mp-4.9 -fconvert=big-endian -frecord-marker=4 -v -o <exename> <objs> <libs>
#
#

4. So next I attempt to compile and I get the following

chris@ChrisU:~$ python compileTELEMAC.py
python: can't open file 'compileTELEMAC.py': [Errno 2] No such file or directory

as if I didn't add the appropriate directory to the PATH

5. Then I try to run it from the scripts/python27 directory and get the following

chris@ChrisU:~/TelemacRepos/v7p1r0/scripts/python27$ python compileTELEMAC.py


Loading Options and Configurations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


_ _ ___ _____
| | | | |__ \ |___ |
_ __ _ _ | |_ | |__ ___ _ __ ) | _/ /
| '_ \ | | | || __|| '_ \ / _ \ | '_ \ / / |_ _|
| |_) || |_| || |_ | | | || (_) || | | | / /_ / /
| .__/ \__, | \__||_| |_| \___/ |_| |_||____| /_/
| | __/ |
|_| |___/
_ _ _____ ___ ___ __
_| || |_ |___ | / _ \ |__ \ /_ |
_ __ ___ __ __ |_ __ _| _/ / | | | | ) | | |
| '__| / _ \\ \ / / _| || |_ |_ _| | | | | / / | |
| | | __/ \ V / _ |_ __ _| / / | |_| | / /_ | |
|_| \___| \_/ (_) |_||_| /_/ \___/ |____| |_|



... parsing configuration file: /home/chris/TelemacRepos/v7p1r0/configs/systel.cfg


_ _
(_) | |
___ ___ _ __ _ __ _ | |
/ __| / _ \| '__|| | / _` || |
\__ \| __/| | | || (_| || |
|___/ \___||_| |_| \__,_||_|


Scanning the source code for:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+> configuration: serial
+> scalar mode, Fortran optimisation 3.
| TELEMAC will work whether processor is 0 or 1
+> root: /home/chris/TelemacRepos/v7p1r0/
+> modules: clean system

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Compiling the program SPLITSEL and dependents
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Traceback (most recent call last):
File "compileTELEMAC.py", line 689, in <module>
createDirectories(p)
File "/home/chris/TelemacRepos/v7p1r0/scripts/python27/utils/files.py", line 163, in createDirectories
mkdir(pr)
OSError: [Errno 13] Permission denied: '/home/chris/TelemacRepos/v7p1r0/builds/serial'
chris@ChrisU:~/TelemacRepos/v7p1r0/scripts/python27$



Please help! I've been attempting to do this for several days total now and I'm stuck. I would very much like to understand where I am going wrong.

Thank you so much!
The administrator has disabled public write access.

Help Configuring and Compiling 8 years 9 months ago #19719

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
as indicate, you're facing a problem of rights!
Look at the rights of your telemac folder...

regards
Christophe
The administrator has disabled public write access.
The following user(s) said Thank You: turnips

Help Configuring and Compiling 8 years 9 months ago #19728

  • turnips
  • turnips's Avatar
Yes, that's it!
Thank you~~ I got it :silly:
I changed the owner of the directory
sudo chown -R $user filename
The administrator has disabled public write access.

Help Configuring and Compiling 7 years 8 months ago #25403

  • huyquangtran
  • huyquangtran's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 271
  • Thank you received: 23
Hi,

I accidentally have to re-compile TELEMAC on cluster. I don't know why this time I got this error message:

compileTELEMAC.py --clean
: Permission deniedn

but I don't have rights to run SUDO.. Could anyone help?

Thanks & Best Regards
Huy
The administrator has disabled public write access.

Help Configuring and Compiling 7 years 8 months ago #25404

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
If you don't have the rights, we cannot do anything for you...
You have to check with your admin...
It should at least gives you the rights to modify the telemac install directory...

Regards
Christophe
The administrator has disabled public write access.

Help Configuring and Compiling 7 years 8 months ago #25405

  • huyquangtran
  • huyquangtran's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 271
  • Thank you received: 23
Thanks Christ,

But this is my folder, I suppose to install TELEMAC from my own directory..Last time I could do it, but now I can't.

Is there anyway to overcome this?

Regards
Huy
The administrator has disabled public write access.

Help Configuring and Compiling 7 years 8 months ago #25406

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
if this is your own directory, then you've got the rights to use chown and then change the rights ...

regards
Christophe
The administrator has disabled public write access.

Help Configuring and Compiling 7 years 8 months ago #25407

  • huyquangtran
  • huyquangtran's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 271
  • Thank you received: 23
Dear Christophe,

I have set it (file attached), but nothing is changed :(

compileTELEMAC.py --clean
: Permission deniedn

Could you offer anymore suggestion?

Best Regards
Huy
Attachments:
The administrator has disabled public write access.

Help Configuring and Compiling 7 years 8 months ago #25408

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
try to give the full rights to all directories and files(777) (recursively of course)
Christophe
The administrator has disabled public write access.
The following user(s) said Thank You: huyquangtran

Help Configuring and Compiling 7 years 8 months ago #25409

  • huyquangtran
  • huyquangtran's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 271
  • Thank you received: 23
Hi Christophe,

The problem is still there...

I attach here my bashrc file, and error...

Do you find any mistake I made?

Thanks & Best Regards
Huy

bashfile.jpg
The administrator has disabled public write access.
Moderators: borisb

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