Welcome, Guest
Username: Password: Remember me

TOPIC: error while loading shared libraries since v8p4r0

error while loading shared libraries since v8p4r0 1 year 11 months ago #41707

  • nicogodet
  • nicogodet's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 157
  • Thank you received: 39
Dear Devs,

Since v8p4r0, I have an issue regarding shared libraries.
My config file : gitlab.nicodet.fr/nicogodet/telemac-masc...s/systel.cfg.example
Install script (even if it is probably not the root cause) : gitlab.nicodet.fr/nicogodet/telemac-masc...l_scripts/install.sh

This config worked perfectly in previous versions but starts failing in v8p4r0.
I suspect that these changes is the cause of my problems but I don't know what to change in my config file...

Complete error log in error.txt.
Attachments:
The administrator has disabled public write access.

error while loading shared libraries since v8p4r0 1 year 11 months ago #41708

  • borisb
  • borisb's Avatar
  • OFFLINE
  • Admin
  • Posts: 128
  • Thank you received: 64
The mentioned commit is indeed the cause of your problem. Previously, the absolute paths to the shared library dependencies of each Telemac module were hard-coded into the generated executable, which is not great when you want to package the application to distribute it, e.g. via a compressed archive or a .deb package.

Now they are searched in the usual system paths and the paths defined in LD_LIBRARY_PATH. So you need to update your LD_LIBRARY_PATH to point to the Telemac libraries directory, like this:

export LD_LIBRARY_PATH=$HOMETEL/builds/$USETELCFG/lib:$LD_LIBRARY_PATH

I guess I should have updated pysource.template.sh to reflect this change, sorry for the oversight.
The administrator has disabled public write access.
The following user(s) said Thank You: Renault

error while loading shared libraries since v8p4r0 1 year 11 months ago #41783

  • Renault
  • Renault's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 120
  • Thank you received: 33
Thank you for mentioning the wrap_lib/ difference! I also changed this (removing wrap_lib/) in the $PYTHONPATH variable in the next line just in case, and together these seem to have fixed the error at runtime.
The administrator has disabled public write access.

[SOLVED] error while loading shared libraries since v8p4r0 1 year 11 months ago #41709

  • nicogodet
  • nicogodet's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 157
  • Thank you received: 39
Thanks Boris !

Fixed
The administrator has disabled public write access.

[SOLVED] error while loading shared libraries since v8p4r0 1 year 7 months ago #42260

  • st3255
  • st3255's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Could your script / solution be promoted, e.g. as the official way to install Telemac on Linux machines (in the wiki)?

I spent SO much time trying to get the compilation working in Ubuntu (unsuccessfully), and with your script it literally just worked. Even with quite some previous experience, the compilation in Linux is always quite a challenge.

Thank you so much for your work :)
The administrator has disabled public write access.

error while loading shared libraries since v8p4r0 1 year 7 months ago #42262

  • st3255
  • st3255's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
I think it would be really helpful to have this repo linked in the Wiki.

I tried quite a long time to get Telemac running in Ubuntu, until I found this installer. And it just works. Thank you so much!
The administrator has disabled public write access.

error while loading shared libraries since v8p4r0 1 year 7 months ago #42319

  • nicogodet
  • nicogodet's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 157
  • Thank you received: 39
Thanks st3255 !

This script is not ready at all to be promoted as "official" TELEMAC installer.
Many things need to be tweaked manually after, only work for >V8, ...

Of course, if TELEMAC devs want to fork this script to make it more robust, they can !
The administrator has disabled public write access.
Moderators: borisb

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