Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing dependency in install instructions #63

Open
Joyje opened this issue Jul 28, 2023 · 8 comments
Open

missing dependency in install instructions #63

Joyje opened this issue Jul 28, 2023 · 8 comments

Comments

@Joyje
Copy link

Joyje commented Jul 28, 2023

Hi!
It seemed ridiculous to make a fork to make a pull request simply to just add a package name in README.md.
The missing package in question is libssl. Without it, running make gives an error openssl/md5.h: No such file or directory. Since there is also a package named openssl that won't fix the dependency, it is worth mentioning libssl in the README file.

@NikitaIvanovV
Copy link
Owner

It depends on your system which packages you need to install to obtain libcrypto. What package manager/distribution do you use? If you it's a popular one, you can list all the required packages here and I can include them in the README.

@Joyje
Copy link
Author

Joyje commented Jul 29, 2023

I use debian 12 so yeah, 😅 quite a popular distro.

I also noticed on multiple forums that a lot of people on ubuntu got this error message when trying to build various source code without libssl. So yeah, this dependency package is relevant for a lot of people. 👍

The 2 dependencies you already listed with the addition of libssl should be all I think. I'm not sure if openssl is required as well since I already had it installed, but I can't test that at the moment.

How would you mean this is related to libcrypto? Those are 2 separate packages. Installing libcrypto won't fix this particular error since that isn't the missing dependency in question.

@NikitaIvanovV
Copy link
Owner

NikitaIvanovV commented Aug 8, 2023

How would you mean this is related to libcrypto? Those are 2 separate packages. Installing libcrypto won't fix this particular error since that isn't the missing dependency in question.

I think there is a confusion here: I'm talking about libcrypto library, not a package. libssl is a package that installs libcrypto library.

Another library ctpv depends on is libmagic. libmagic1 package seems to install the library for your system. Could you please check if this package is installed?

Thank you!

@Joyje
Copy link
Author

Joyje commented Aug 8, 2023

Aha! I think I get you.

I installed libmagic1 and libcrypto++8 before running make, got the error and assumed I needed openssl. Installing openssl didn't fix the dependency however, so after a sufficient amount of online searches I discovered that this error needs libssl to be resolved.

Am I correct to understand that libcrypto++8 was never necessary in the first place then?
I will try to run make after removing libcrypto and openssl packages to see if it works without errors.

@NikitaIvanovV
Copy link
Owner

Am I correct to understand that libcrypto++8 was never necessary in the first place then?

I cannot say for sure but I think so.

I will try to run make after removing libcrypto and openssl packages to see if it works without errors.

If it's simple to do, please do!

@Joyje
Copy link
Author

Joyje commented Aug 8, 2023

Removing libcrypto++8 didn't create any issues running make, so at least we can confirm that I never needed to install that in the first place.

Now with openssl it's a bit more complicated to test, since it seems to have replaced dependencies for a bunch of other packages that I don't want to break. I'm not sure if openssl would be necessary for running make, but I would assume not.

The correct dependencies would most likely only be libmagic1 and libssl-dev for Debian based systems.

@IIlllllII
Copy link

For Void Linux users: libcrypto3, openssl-devel, libmagic.

@ipstone
Copy link

ipstone commented May 23, 2024

I am having similar issue on centOS 7 (sorry for the ancient system, but it's what I am using now):

  • install file-dev will fix the need for libmagic header file
  • I am having this error now:
ctpv make
make -C embed
make[1]: Entering directory '/home/peix/Downloads/ctpv/embed'
make[1]: 'embed' is up to date.
make[1]: Leaving directory '/home/peix/Downloads/ctpv/embed'
cc -o src/ctpv.o src/ctpv.c -c -O2 -MMD -Wall -Wextra -Wno-unused-parameter -I/usr/include -I/usr/include
src/ctpv.c:9:10: fatal error: openssl/md5.h: No such file or directory
    9 | #include <openssl/md5.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:56: src/ctpv.o] Error 1

any suggestion would be appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants