Remix.run Logo
abdisalan 7 days ago

Hold on, you had to do binary surgery using an OpenSSL version from an old box you had? I salute the dedication.

marcosdumay 7 days ago | parent | next [-]

Looks to me he just copied a shared library and changed the search path.

Also, if it was statically linked, he wouldn't have that one problem. (Could have others, but not that one.)

getcrunk 7 days ago | parent | prev [-]

How exactly does one do that. Sounds exciting!

wink 7 days ago | parent | next [-]

Not the OP but what sometimes works is as easy as:

``` ldd your-binary ``` on the old host and then copy all the thing that is referenced, put into ./foo and then start like so on new host: `LD_LIBRARY_PATH=./foo ./your-binary`. (may include typos, from memory)

A great tool for this used to be https://github.com/intoli/exodus - not sure if it still works.

Disclaimer: Also please don't do this with network-facing services, security applies, etc.pp. but it's a good trick to know.

Izkata 7 days ago | parent [-]

I used it for something early this year, it was working then.

pavel_lishin 7 days ago | parent | prev | next [-]

A sewing needle, a spare magnet, and a very steady hand.

kaptainscarlet 7 days ago | parent | prev | next [-]

I think you copy the library file and add it to you load path

exe34 7 days ago | parent | prev [-]

patchelf

ian-g 7 days ago | parent [-]

but don't forget to make sure your new path is fewer characters than the original one so you don't overwrite any of the library