Hello,
Trying to run scilab under fedora34 '/usr/local/scilab-6.1.0/bin/scilab) from the files available on the scilab web site, I get Gtk-Message: 15:06:56.350: Failed to load module "pk-gtk-module"
dnf repoquery --whatprovides 'pk-gtk-module' does not provide any information
rpmfind provides PackageKit-gtk3-module (/usr/lib64/gnome-settings-daemon-3.0/gtk-modules/pk-gtk-module.desktop /usr/lib64/gtk-3.0/modules/libpk-gtk-module.so)
Package PackageKit-gtk3-module-1.2.3-1.fc34.x86_64 is already installed
I am not sure about what I should do
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 | | Room# D114A ===========================================================================
On 2021-06-27 9:18 a.m., Patrick Dupre wrote:
Hello,
Trying to run scilab under fedora34 '/usr/local/scilab-6.1.0/bin/scilab) from the files available on the scilab web site, I get Gtk-Message: 15:06:56.350: Failed to load module "pk-gtk-module"
dnf repoquery --whatprovides 'pk-gtk-module' does not provide any information
rpmfind provides PackageKit-gtk3-module (/usr/lib64/gnome-settings-daemon-3.0/gtk-modules/pk-gtk-module.desktop /usr/lib64/gtk-3.0/modules/libpk-gtk-module.so)
Package PackageKit-gtk3-module-1.2.3-1.fc34.x86_64 is already installed
I am not sure about what I should do
That sounds like /usr/lib64/gtk-3.0/modules/libpk-gtk-module.so is not in LD_LIBRARY_PATH.
Add it on the command line and run scilab from command line with it added. Let's see if that resolves the issue.
--
John Mellor
On 6/27/21 1:49 PM, John Mellor wrote:
On 2021-06-27 9:18 a.m., Patrick Dupre wrote:
Hello,
Trying to run scilab under fedora34 '/usr/local/scilab-6.1.0/bin/scilab) from the files available on the scilab web site, I get Gtk-Message: 15:06:56.350: Failed to load module "pk-gtk-module"
dnf repoquery --whatprovides 'pk-gtk-module' does not provide any information
rpmfind provides PackageKit-gtk3-module (/usr/lib64/gnome-settings-daemon-3.0/gtk-modules/pk-gtk-module.desktop /usr/lib64/gtk-3.0/modules/libpk-gtk-module.so)
Package PackageKit-gtk3-module-1.2.3-1.fc34.x86_64 is already installed
I am not sure about what I should do
That sounds like /usr/lib64/gtk-3.0/modules/libpk-gtk-module.so is not in LD_LIBRARY_PATH.
Or else the application included its own copy that isn't linking to something else.
echo $LD_LIBRARY_PATH /usr/lib64/gtk-3.0/modules
but still /usr/local/scilab-6.1.0/bin/scilab Gtk-Message: 23:13:39.716: Failed to load module "pk-gtk-module"
also: /usr/local/scilab-6.1.0/bin/scilab-bin
error while loading shared libraries: libscilab-cli.so.6: cannot open shared object file: No such file or directory
Sent: Sunday, June 27, 2021 at 10:51 PM From: "Samuel Sieb" samuel@sieb.net To: users@lists.fedoraproject.org Subject: Re: scilab
On 6/27/21 1:49 PM, John Mellor wrote:
On 2021-06-27 9:18 a.m., Patrick Dupre wrote:
Hello,
Trying to run scilab under fedora34 '/usr/local/scilab-6.1.0/bin/scilab) from the files available on the scilab web site, I get Gtk-Message: 15:06:56.350: Failed to load module "pk-gtk-module"
dnf repoquery --whatprovides 'pk-gtk-module' does not provide any information
rpmfind provides PackageKit-gtk3-module (/usr/lib64/gnome-settings-daemon-3.0/gtk-modules/pk-gtk-module.desktop /usr/lib64/gtk-3.0/modules/libpk-gtk-module.so)
Package PackageKit-gtk3-module-1.2.3-1.fc34.x86_64 is already installed
I am not sure about what I should do
That sounds like /usr/lib64/gtk-3.0/modules/libpk-gtk-module.so is not in LD_LIBRARY_PATH.
Or else the application included its own copy that isn't linking to something else. _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
On Jun 27, 2021, at 17:16, Patrick Dupre pdupre@gmx.com wrote:
echo $LD_LIBRARY_PATH /usr/lib64/gtk-3.0/modules
but still /usr/local/scilab-6.1.0/bin/scilab Gtk-Message: 23:13:39.716: Failed to load module "pk-gtk-module"
also: /usr/local/scilab-6.1.0/bin/scilab-bin
error while loading shared libraries: libscilab-cli.so.6: cannot open shared object file: No such file or directory
If you are building your own software outside of standard paths, you’ll either need to link with —rpath or set up your own LD_LIBRARY_PATH for wherever you installed your scilab libraries. Probably the same path as the executables, only in …/lib. This is a general Linux issue, not really a “Fedora” issue, per se.
I use Lmod for environment modules for stuff like this, if I’m not packaging the software.
— Jonathan Billings
Now, as a regular user, I get:
/usr/bin/chcon: failed to change context of '/usr/local/scilab-6.1.0/bin/scilab-bin' to ‘unconfined_u:object_r:execmem_exec_t:s0’: Operation not permitted Error: Cannot chcon 'scilab-bin' /usr/bin/chcon: failed to change context of '/usr/local/scilab-6.1.0/bin/scilab-cli-bin' to ‘unconfined_u:object_r:execmem_exec_t:s0’: Operation not permitted Error: Cannot chcon 'scilab-cli-bin' Gtk-Message: 22:55:29.077: Failed to load module "pk-gtk-module" ^C^X^X^X^X^XNativewindow X11 IOError: Display 0x20f4160 (:1): Resource temporarily unavailable Nativewindow X11 IOError: Display 0x20f4160 (:1): Resource temporarily unavailable FATAL ERROR in native method: Nativewindow X11 IOError: Display 0x20f4160 (:1): Resource temporarily unavailable at sun.awt.X11.XlibWrapper.XEventsQueued(Native Method) at sun.awt.X11.XToolkit.run(XToolkit.java:565) at sun.awt.X11.XToolkit.run(XToolkit.java:532) at java.lang.Thread.run(Thread.java:748) A fatal error has been detected by Scilab. Please check your user-defined functions (or external module ones) should they appear in the stack trace. Otherwise you can report a bug on http://bugzilla.scilab.org/ with: * a sample code which reproduces the issue * the result of [a, b] = getdebuginfo() * the following information:
On Jun 27, 2021, at 17:16, Patrick Dupre pdupre@gmx.com wrote:
echo $LD_LIBRARY_PATH /usr/lib64/gtk-3.0/modules
but still /usr/local/scilab-6.1.0/bin/scilab Gtk-Message: 23:13:39.716: Failed to load module "pk-gtk-module"
also: /usr/local/scilab-6.1.0/bin/scilab-bin
error while loading shared libraries: libscilab-cli.so.6: cannot open shared object file: No such file or directory
If you are building your own software outside of standard paths, you’ll either need to link with —rpath or set up your own LD_LIBRARY_PATH for wherever you installed your scilab libraries. Probably the same path as the executables, only in …/lib. This is a general Linux issue, not really a “Fedora” issue, per se.
I use Lmod for environment modules for stuff like this, if I’m not packaging the software.
— Jonathan Billings _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure