On 2013-05-15, Steve Pribyl <[email protected]> wrote: > I have inherited this system, new to openbsd, and need to install mcrypt but > I am having a dependency issue. > > OpenBSD mirror 5.0 GENERIC#53 amd64 > # export > PKG_PATH=http://ftp3.usa.openbsd.org/pub/OpenBSD/5.0/packages/amd64/ > # pkg_add -i mcrypt > > Can't install mcrypt-2.6.8p1 because of libraries >|library ltdl.4.5 not found >| /usr/local/lib/libltdl.so.5.0 (libltdl-2.4.2): bad major > Direct dependencies for mcrypt-2.6.8p1 resolve to libmcrypt-2.5.8p1 > mhash-0.9.9.9 libltdl-2.4.2 gettext-0.18.1p0 libiconv-1.13p2 > Full dependency tree is libmcrypt-2.5.8p1 mhash-0.9.9.9 libltdl-2.4.2 > gettext-0.18.1p0 libiconv-1.13p2
>From the library version number, it looks like the packages you have got installed on this system don't match the OS version and are from sometime after 5.0 (possibly from a -current snapshot). This isn't supported, http://www.openbsd.org/faq/faq15.html#NoFun explains a bit about why. Probably the easiest way out of this problem for now with minimum impact on the machine is to try building mcrypt from ports. If you already have a ports tree on the machine, cd /usr/ports/security/mcrypt && make install if not then you'll want to fetch a copy of the 5.0 ports tree, start with http://www.openbsd.org/faq/faq15.html#Ports http://www.openbsd.org/anoncvs.html > I for the moment loth to upgrade to 5.1,5.2,5.3 until I have a better handle > on how our apps work. Sensible. And as you're new to the OS I'd suggest installing on a scratch machine or VM to get to learn things a bit better, and try an upgrade via that route (including updating packages) before attempting it on an important machine. This might be a worthwhile investment.. https://www.michaelwlucas.com/nonfiction/absolute-openbsd-2nd-edition https://https.openbsd.org/cgi-bin/order?B10=1&B10%2b=Add

