how to include the path of exe in the ld library path?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
how to include the path of exe in the ld library path?
hi
I am facing the following error while running SplitOff.exe in machine 172.24.130.245 :
Error : ld.so.1: SplitOff.exe: fatal: libstdc++.so.2.10.0: open failed: No such file or directory.This file is avilabe in ap/local/lib path.
how to include the path of exe in the ld library path [only System admin has permission]
LD_LIBRARY_PATH is archaism. It is slow and has some issue with security. The solution is: add absolute path to your libs to one of /etc/ld.so.conf.d/*.conf file or create /etc/ld.so.conf.d/boo.conf and add one in it. Say ldconfig after that.
LD_LIBRARY_PATH is archaism. It is slow and has some issue with security. The solution is: add absolute path to your libs to one of /etc/ld.so.conf.d/*.conf file or create /etc/ld.so.conf.d/boo.conf and add one in it. Say ldconfig after that.
If you haven't admin right on this box, or this specific library isn't compatible with a rest of system, then what alternative fo the LD_LIBRARY_PATH do you see.
If you haven't admin right on this box, or this specific library isn't compatible with a rest of system, then what alternative fo the LD_LIBRARY_PATH do you see.
If you have no admin rigths or library isn't compatible then at least do not set it global (~/.profile, ~/.bashrc, etc).
Another thing is if you set it like that: LD_LIBRARY_PATH=/usr/lib/xulrunner:$LD_ LIBRARY_PATH and LD...H was blank before you will get LD...H=/usr/lib/xulrunner. This is mistake.
Use LD_LIBRARY_PATH=/usr/lib/xulrunner${LD_ LIBRARY_PATH:+:$LD_LIBRARY_PATH}. This is correct.
If you have no admin rigths or library isn't compatible then at least do not set it global (~/.profile, ~/.bashrc, etc).
Another thing is if you set it like that: LD_LIBRARY_PATH=/usr/lib/xulrunner:$LD_ LIBRARY_PATH and LD...H was blank before you will get LD...H=/usr/lib/xulrunner. This is mistake.
Use LD_LIBRARY_PATH=/usr/lib/xulrunner${LD_ LIBRARY_PATH:+:$LD_LIBRARY_PATH}. This is correct.
I read your links and still can't see what the security issue with LD_LIBRARY_PATH.
Of course you can use it (as any other tool) wrong way and introduce security problem. You are not better off if you specify in the /etc/ld.so.conf user-writable directory.
hi
I am facing the following error while running SplitOff.exe in machine 172.24.130.245 :
Error : ld.so.1: SplitOff.exe: fatal: libstdc++.so.2.10.0: open failed: No such file or directory.This file is avilabe in ap/local/lib path.
how to include the path of exe in the ld library path [only System admin has permission]
Please enlighten me? What exactly are you trying to do? Please provide a little more detail of what you are attempting and why.
Is this version of ldstdc++ needed for just this program? libstdc++ is the standard c++ library, so I am guessing you have an issue where the program expects a different version than the system has installed.
You can precede a command with a variable assignment. You can also create a wrapper script which adds to the library path for that command. Then call the script instead of the program itself.
If you run "ldd -v /full/path/to/command", you can see which libraries are required. The verbose option includes version information.
If the system uses SELinux or AppArmor, you may find that the library path can't be changed changed via environment variables due to the secure exec mechanism:
Quote:
Originally Posted by AppArmor techdoc.pdf
3.14 Secure Execution
In this mode, the kernel passes a flag to user space. When glibc finds this flag set,
it unsets environment variables that are considered dangerous, and it prevents
the dynamic loader from loading libraries controlled by the environment. With
non-secure exec, the LD LIBRARY PATH environment variable can be used to
switch to a different set of libraries, for example. The secure exec mechanism is
not specific to AppArmor: set-user-id and set-group-id executables also use it,
as well as SELinux, which introduced this glibc feature.
Regarding ap/local/lib , please use actual path.
.....
server has provided sudo access
$export LD_LIBRARY_PATH=/home/manantha/ap/local/lib
$ sudo /DataPathSimulation/SplitOff.exe
PCTA_IP AND PORTs ID MISSING (USING :1235 NETWORK:1236 as default)!!!
Error in opening semLockPorts file...
: No such file or directory
this will work for this user only. but for all users ?
$ sudo /DataPathSimulation/SplitOff.exe
ld.so.1: SplitOff.exe: fatal: libstdc++.so.2.10.0: open failed: No
such file or directory
Killed
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.