Can I just copy an executable libray to Linux and expect it to work?
Background
-------------
I am using a web hosting company that does not allow me to compile anything and I would like to use the mcrypt library in my PHP scripts.
I have installed a Centos Linux distro locally and have worked out that I can use the library without re-compiling PHP by just calling mcrypt from inside my scripts. This works fine locally.
However I just discovered I dont have access to the /usr/lib tree or anything else I had taken for granted and only have a cgi-bin directory to run binaries from
The Question
-------------
So my question is - would it be possible for me to copy compiled libraries (libmcrypt, mhash and the mcrypt code) to the cgi-bin tree and have a way to make them work bearing in mind I can not:
1. modify ld.so.conf
2. run ldconfig
Obiously on a Widoze machine I'd just copy the executable somewhere in the existing search path & run it but I dont know if this is possible under linux (theres big gaps in my knowledge at the moment)
Any info about using these libraries without having (What I assumed were) basic system access would be welcome.
I do have a fallback solution but it would be really painful to implement.
I'm happy to script/program solutions for this in any language.
If this simply can't be done I'd appreciate someone just telling me.
thanks
john
|