←back to thread

272 points abdisalan | 1 comments | | HN request time: 0s | source
Show context
Klonoar ◴[] No.42175423[source]
You know, I ran into something similar recently with a static site engine (Zola). Was moving to a new host and figured I'd just copy and run the binary, only to have it fail due to linking OpenSSL. I had customized the internals years ago and stupidly never committed it anywhere, and attempting to build it fresh ran into issues with yanked crates.

Since it's just a binary though, I wound up grabbing the OpenSSL from the old box and patching the binary to just point to that instead. Thing runs fine after that.

This is all, of course, still totally stupid - but I did find myself thinking how much worse comparable events in JS have been for me over the years. What would have been easily an entire afternoon ended up taking 15 minutes - and a chunk of that was just double checking commands I'd long forgotten.

replies(3): >>42175501 #>>42175582 #>>42175642 #
abdisalan ◴[] No.42175501[source]
Hold on, you had to do binary surgery using an OpenSSL version from an old box you had? I salute the dedication.
replies(2): >>42175562 #>>42184842 #
1. marcosdumay ◴[] No.42184842[source]
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.)