Welcome, Guest
Username: Password: Remember me

TOPIC: Error installation during build python API

Error installation during build python API 3 years 9 months ago #37836

  • j.dasilva
  • j.dasilva's Avatar
hello guys,

i was trying to update my telemac version v7 to v8.
But during the compilation i have this error when Telemac compile the python API.

i have tried many things but no success.

Do you have some advises for fix my error ?

i have checked the f2py3 compiler. it seems ok.

Thx you !!

Best regards
Attachments:
The administrator has disabled public write access.

Error installation during build python API 3 years 8 months ago #37923

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

You need to compile the metis library in shared config as well.
You can have a look here on how to do it:
wiki.opentelemac.org/doku.php?id=install...dynamic_installation

Also you can replace f2py_compiler: gfortran by f2py_compile: gnu95.
This is just to remove the warning f2py is already using gnu95.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Error installation during build python API 3 years 8 months ago #37929

  • j.dasilva
  • j.dasilva's Avatar
Hi Yugi

Thx you for your time.

I have modified the f2py_compiler with gnu95. the metis library was already compiled but in doubt i have recompiled metis and replaced the link of libmetis.a in my config file.

But it still doesnt work.

Do you have an idea ?

Regards,
Attachments:
The administrator has disabled public write access.

Error installation during build python API 3 years 8 months ago #37933

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

You need to compile metis in dynamic:
cmake -D CMAKE_INSTALL_PREFIX=<install_path> -DSHARED=TRUE .

This should generated a libmetis.so.

And you should add the path to that lib in you LD_LIBRARY_PATH and in your config add -L$METISHOME/lib -lmetis
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Error installation during build python API 3 years 8 months ago #37936

  • j.dasilva
  • j.dasilva's Avatar
Hi yugi,

Im so sorry Yugi, this is the first time for me to have so much trouble installing telemac.

I have recompiled the metis library with Dynamic installation. During the process i had to change the CMakelist.txt and add
set(GKLIB_PATH "${CMAKE_CURRENT_SOURCE_DIR}/GKlib")

I have added the path of libmetis.so and libmetis.a in my pysourcetemplate.sh file.
export LD_LIBRARY_PATH=/home/c9p7ndn2/TELEMAC_MASCARET/v8p2r0/optionals/metis-5.1.0/build/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/home/c9p7ndn2/TELEMAC_MASCARET/v8p2r0/optionals/metis-5.1.0/build/Linux-x86_64/libmetis:$LD_LIBRARY_PATH

in the systel file i have add the libs_all path for libmetis.a and libmetis.so
libs_all: /usr/lib/openmpi/lib/libmpi.so /home/c9p7ndn2/TELEMAC_MASCARET/v8p2r0/optionals/metis-5.1.0/build/Linux-x86_64/libmetis/libmetis.a
/home/c9p7ndn2/TELEMAC_MASCARET/v8p2r0/optionals/metis-5.1.0/build/lib/libmetis.so

recompile telemac with --clean option, but still the same error.
The administrator has disabled public write access.

Error installation during build python API 3 years 8 months ago #37937

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
In the systel.cfg file you need to set:

libs_all: -lmpi -L/home/c9p7ndn2/TELEMAC_MASCARET/v8p2r0/optionals/metis-5.1.0/build/Linux-x86_64/libmetis -lmetis

That should do the trick.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Error installation during build python API 3 years 8 months ago #37939

  • j.dasilva
  • j.dasilva's Avatar
still not work ...

same error again.

i put my pysource.template and systel file in attachement.

Question Yuri, my libmetis.a and limetis.so are not in the same directory, is it ok ?
in my LD_LIBRARY_PATH i put both path.
Attachments:
The administrator has disabled public write access.

Error installation during build python API 3 years 8 months ago #37945

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Ok you actually just need one of the two either the .a or the the .so

I missed in your configuration that you were compiling telemac in static my bad.

So revert back to what you add before and try removing the include and lib for mpi in incs_all and libs_all and change the cmd_obj ti use mpif90 instead of gfortran.

Also you add the option --verbose to compile_telemac.py to get more information from f2py.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Error installation during build python API 3 years 8 months ago #38041

  • j.dasilva
  • j.dasilva's Avatar
hi Yugi,

sorry for the delay, i was off the last week.

the problem is solved. in my systel file i have put no options finally.


thx you yugi for your time.
The administrator has disabled public write access.
Moderators: borisb

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