Solved pkg not working - ld-elf.so.1: Shared object "libssl.so.111" not found, required by "pkg"

Abraham79

New Member

Reaction score: 1
Messages: 14

Code:
#uname -a
FreeBSD 12.0-BETA1 FreeBSD 12.0-BETA1 r339435 GENERIC amd64
I have got a size mismatch error with pkg and did a "IGNORE_OSVERSION=yes pkg-static update -f", which did not solve this error. pkg was not working:
ld-elf.so.1: Shared object "libssl.so.111" not found, required by "pkg"

(I'm new to FreeBSD and testing FreeBSD 12.0 b1)
I referred this link (possible bug?):
https://www.mail-archive.com/freebsd-stable@freebsd.org/msg136663.html

# ldd /usr/local/lib/libpkg.so.4.0.0
libssl.so.111 => not found (0)
libcrypto.so.111 => not found (0)


I installed openssl111 and symlinked /usr/local/lib/libssl.so.11 to /usr/local/lib/libssl.so.111 and /usr/local/lib/libcrypt.so.11 to /usr/local/lib/libcrypt.so.111. After this, pkg is working again. What went wrong :( Shouldn't openssl111 provided libssl.so has to be libssl.so.111 instead of libssl.so.11 ? Should I reinstall pkg from ports?

How can I upgrade to 12-beta2 from beta1?
 

Phishfry

Son of Beastie

Reaction score: 1,533
Messages: 4,452

talsamon

Daemon

Reaction score: 281
Messages: 1,824

see in "Installing and Upgrading FreeBSD" there are some threads about this problem.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 8,083
Messages: 31,689

I installed openssl111 and symlinked /usr/local/lib/libssl.so.11 to /usr/local/lib/libssl.so.111 and /usr/local/lib/libcrypt.so.11 to /usr/local/lib/libcrypt.so.111.
Undo this. It's going to haunt you later when things are fixed properly. And make a mental note of it, never solve library issue this way, it's never the right solution and will always cause problems later on.

First, update to BETA2. Then make sure your package repository is set to latest, verify with pkg-static -v.
Then run
pkg-static install -f pkg
pkg upgrade -f
 

jb_fvwm2

Daemon

Reaction score: 184
Messages: 1,697

FWIW I used libmap.conf
Code:
[pkg]

libssl.so.111 /usr/local/lib/libssl.so.11

libcrypto.so.111 /usr/local/lib/libcrypto.so.11
within a minute of three of installing openssl111
 

Sessa

Member

Reaction score: 1
Messages: 44

Hi guys,

i need the lib ( libssl.so.111 ) as well.
How can i install this lib?
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 8,083
Messages: 31,689

It's part of the base OS of 12.0-RELEASE. Why do you need it?
 

Sessa

Member

Reaction score: 1
Messages: 44

I'm using not the base OS.
Could you please tell me how to install the lib? I need it for a special framework which i currently test.
 

Sessa

Member

Reaction score: 1
Messages: 44

Can not you just tell me how to achieve what I intend to do :)?
I use FreeBSD with pfSense.
 
Top