Solution to missing 'libcrypt.so.1'? [Fixed]

Moderator: BarryK

Post Reply
User avatar
Jafadmin
Posts: 376
Joined: Tue Aug 04, 2020 4:51 pm
Has thanked: 68 times
Been thanked: 84 times

Re: Solution to missing 'libcrypt.so.1'? [Workaround]

Post by Jafadmin »

@BarryK

'libcrypt.so.2.0.0' does indeed exist, as does the symlink to it; 'libcrypt.so.2'

No libs need be added. All that is needed is a symlink to 'libcrypt.so.2.0.0' named 'libcrypt.so.1' in /usr/lib

'libcrypt.so.2' is backwardly compatable to 'libcrypt.so.1' so this works out fine. No additional binaries needed.

I realize that 'libcrypt.so.1' is deprecated and 'libcrypt.so.2' is the update to it. However, all the software that links to the older lib name fail without the symlink to the new lib.

This occurs because I'm writing compiled/linked code on a dev box, then running the binary on Easy. Easy is the first "puppy" I've tested on that doesn't have a 'libcrypt.so.1' symlink. Even the latest Ubuntu/Mint versions have the '.1' link.

User avatar
BarryK
Posts: 2235
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 93 times
Been thanked: 545 times

Re: Solution to missing 'libcrypt.so.1'? [Workaround]

Post by BarryK »

Jafadmin wrote: Thu Jun 10, 2021 5:52 pm

@BarryK

'libcrypt.so.2.0.0' does indeed exist, as does the symlink to it; 'libcrypt.so.2'

No libs need be added. All that is needed is a symlink to 'libcrypt.so.2.0.0' named 'libcrypt.so.1' in /usr/lib

'libcrypt.so.2' is backwardly compatable to 'libcrypt.so.1' so this works out fine. No additional binaries needed.

I realize that 'libcrypt.so.1' is deprecated and 'libcrypt.so.2' is the update to it. However, all the software that links to the older lib name fail without the symlink to the new lib.

This occurs because I'm writing compiled/linked code on a dev box, then running the binary on Easy. Easy is the first "puppy" I've tested on that doesn't have a 'libcrypt.so.1' symlink. Even the latest Ubuntu/Mint versions have the '.1' link.

OK.
It is sometimes not appropriate to symlink to a later library version, as it may be incompatible. But some library developers try to keep backwards compatibility.

User avatar
Jafadmin
Posts: 376
Joined: Tue Aug 04, 2020 4:51 pm
Has thanked: 68 times
Been thanked: 84 times

Re: Solution to missing 'libcrypt.so.1'? [Workaround]

Post by Jafadmin »

BarryK wrote: Fri Jun 11, 2021 11:13 am
Jafadmin wrote: Thu Jun 10, 2021 5:52 pm

@BarryK

'libcrypt.so.2.0.0' does indeed exist, as does the symlink to it; 'libcrypt.so.2'

No libs need be added. All that is needed is a symlink to 'libcrypt.so.2.0.0' named 'libcrypt.so.1' in /usr/lib

'libcrypt.so.2' is backwardly compatable to 'libcrypt.so.1' so this works out fine. No additional binaries needed.

I realize that 'libcrypt.so.1' is deprecated and 'libcrypt.so.2' is the update to it. However, all the software that links to the older lib name fail without the symlink to the new lib.

This occurs because I'm writing compiled/linked code on a dev box, then running the binary on Easy. Easy is the first "puppy" I've tested on that doesn't have a 'libcrypt.so.1' symlink. Even the latest Ubuntu/Mint versions have the '.1' link.

OK.
It is sometimes not appropriate to symlink to a later library version, as it may be incompatible. But some library developers try to keep backwards compatibility.

It is SOP in this case. This is how Debian solves it.

User avatar
BarryK
Posts: 2235
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 93 times
Been thanked: 545 times

Re: Solution to missing 'libcrypt.so.1'? [Workaround]

Post by BarryK »

Jafadmin wrote: Fri Jun 11, 2021 3:06 pm
BarryK wrote: Fri Jun 11, 2021 11:13 am
Jafadmin wrote: Thu Jun 10, 2021 5:52 pm

@BarryK

'libcrypt.so.2.0.0' does indeed exist, as does the symlink to it; 'libcrypt.so.2'

No libs need be added. All that is needed is a symlink to 'libcrypt.so.2.0.0' named 'libcrypt.so.1' in /usr/lib

'libcrypt.so.2' is backwardly compatable to 'libcrypt.so.1' so this works out fine. No additional binaries needed.

I realize that 'libcrypt.so.1' is deprecated and 'libcrypt.so.2' is the update to it. However, all the software that links to the older lib name fail without the symlink to the new lib.

This occurs because I'm writing compiled/linked code on a dev box, then running the binary on Easy. Easy is the first "puppy" I've tested on that doesn't have a 'libcrypt.so.1' symlink. Even the latest Ubuntu/Mint versions have the '.1' link.

OK.
It is sometimes not appropriate to symlink to a later library version, as it may be incompatible. But some library developers try to keep backwards compatibility.

It is SOP in this case. This is how Debian solves it.

OK, woofQ will now create this symlink.

libcrypt.so.2 is in the 'libxcrypt' package. I think that it used to be in glibc, older versions of glibc.
In woofQ, packages-templates/libxcrypt, script FIXUPHACK will create the symlink.

User avatar
BarryK
Posts: 2235
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 93 times
Been thanked: 545 times

Re: Solution to missing 'libcrypt.so.1'? [Workaround]

Post by BarryK »

Just looked at Debian packages, they have libcrypt1, so libcrypt.so.1 is NOT a symlink to libcrypt.so.2:

https://packages.debian.org/experimental/libcrypt1

However, as you report the symlink works, I will leave it in.

User avatar
Jafadmin
Posts: 376
Joined: Tue Aug 04, 2020 4:51 pm
Has thanked: 68 times
Been thanked: 84 times

Re: Solution to missing 'libcrypt.so.1'? [Workaround]

Post by Jafadmin »

BarryK wrote: Sat Jun 12, 2021 9:32 am

Just looked at Debian packages, they have libcrypt1, so libcrypt.so.1 is NOT a symlink to libcrypt.so.2:

https://packages.debian.org/experimental/libcrypt1

However, as you report the symlink works, I will leave it in.

That's interesting. I'm looking at a "clean install" VM of Debian Buster right now that has it linked to libcrypt-2.28.so
I think we have the right fix. :thumbup:

libcrypt-link.png
libcrypt-link.png (58.36 KiB) Viewed 2431 times
User avatar
BarryK
Posts: 2235
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 93 times
Been thanked: 545 times

Re: Solution to missing 'libcrypt.so.1'? [Workaround]

Post by BarryK »

Jafadmin wrote: Sat Jun 12, 2021 10:02 am
BarryK wrote: Sat Jun 12, 2021 9:32 am

Just looked at Debian packages, they have libcrypt1, so libcrypt.so.1 is NOT a symlink to libcrypt.so.2:

https://packages.debian.org/experimental/libcrypt1

However, as you report the symlink works, I will leave it in.

That's interesting. I'm looking at a "clean install" VM of Debian Buster right now that has it linked to libcrypt-2.28.so
I think we have the right fix. :thumbup:
libcrypt-link.png

Ah, yes, I think that glibc 2.28 (in buster I presume) has that library in it. glibc 2.30+ has removed it, and it is a separate package, libxcrypt. I was looking at the unstable debian.

Post Reply

Return to “EasyOS”