You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The variable LIBRARY_NAME is passed to dlload() later. As usual, there are a few standard directories that are checked to find the shared library. Homebrew installs all resources in /usr/local/ (after running brew links <package>) and in order to find shared libraries, you need to set DYLD_LIBRARY_PATH pointing to /usr/local/lib. However, if the Mac OS X system integrity protection is enabled, you won't be able to do it. Apparently, this is the most common setup and is not recommended to disable it.
The issue then is that libignition-transport3.so won't be found when using ign.
A potential solution is to change LIBRARY_NAME to contain the relative path to the shared library from the ruby script (cmdtransport3.rb). Both the ruby script and the shared library are installed together, so this mechanism should be relocatable.
Original report (archived issue) by Carlos Agüero (Bitbucket: caguero, GitHub: caguero).
Here's a snippet of the content of
cmdtransport3.rb
installed with Ignition Transport:The variable
LIBRARY_NAME
is passed todlload()
later. As usual, there are a few standard directories that are checked to find the shared library. Homebrew installs all resources in/usr/local/
(after runningbrew links <package>
) and in order to find shared libraries, you need to setDYLD_LIBRARY_PATH
pointing to/usr/local/lib
. However, if the Mac OS X system integrity protection is enabled, you won't be able to do it. Apparently, this is the most common setup and is not recommended to disable it.The issue then is that
libignition-transport3.so
won't be found when usingign
.A potential solution is to change
LIBRARY_NAME
to contain the relative path to the shared library from the ruby script (cmdtransport3.rb
). Both the ruby script and the shared library are installed together, so this mechanism should be relocatable.E.g.:
cmdtransport3.rb
is installed in:/home/caguero/local/lib/ruby/ignition/cmdtransport3.rb
The Ignition Transport library is installed in:
/home/caguero/local/lib/libignition-transport3.so
The value of IGN_LIBRARY_NAME should be:
The text was updated successfully, but these errors were encountered: