ntop / n2n

Peer-to-peer VPN
GNU General Public License v3.0
6.14k stars 928 forks source link

build the project in Centos 7 #1063

Closed bluesky2319 closed 11 months ago

bluesky2319 commented 1 year ago

Hello, I am trying to compile the project (v_3.1.1) in Centos 7 by enabling zstd and OpenSSL. I got an error during compilation. I want to know how I can fix the error. I'd appreciate any assistance.

image

Logan007 commented 1 year ago

Not sure if it helps but openssl shows version 3.0.7 on my computer. Do you have an opportunity to upgrade it?

sharuzzaman commented 1 year ago

Install openssl-devel to get the library and then compile again

bluesky2319 commented 1 year ago

Thank you for your reply. I upgraded OpenSSL to 3.0.7, but I faced the same error.

image

sharuzzaman commented 1 year ago

Thank you for your reply. I upgraded OpenSSL to 3.0.7, but I faced the same error.

image

Install the openssl-devel package for whatever openssl version that you install. Also, make sure you don't just install any random RPM you found on the Internet because if you do that, the binary that you compile is not transferable to other CentOS server that you might have

bluesky2319 commented 1 year ago

I tried it again with the latest version, but the same error. I compiled the OpenSSL project, and the "make test" was passed.

image

hamishcoleman commented 1 year ago

Have you tried running yum install openssl-devel before running the configure? - this is what sharuzzaman is suggesting, which should provide the missing part that the configure is looking for.

bluesky2319 commented 1 year ago

I run it and saw this message:

Package 1:openssl-devel-1.0.2k-25.el7_9.x86_64 already installed and latest version
Nothing to do
hamishcoleman commented 1 year ago

Since you have the openssl-devel package installed, my next assumption is that the version of that package is too old to support the features used in n2n - you can check the details in the config.log output to see why it decided that the library was not found. (Centos 7 is quite old, so I would not be surprised at this)

Alternatively, you dont need to use the openssl library to compile and use n2n, so you could just compile without it (it has been designed to still work in this case)