Trying to install OpenSSL on Raspberry Pi 4 but keep getting an error when trying to execute make #21599
-
I followed the commands to try and get the newest version on my raspberry pi4. I am trying to install cmake but it wont configure without an OpenSSL package. So here I am trying to download this but run into an error after executing the make command. I am using 3.1.1 from the OpenSSL main websites downloads page. $ wget https://www.openssl.org/source/openssl-3.1.1.tar.gz After the make it gives me an error1 for makefile:12877 and error 2 for makefile:3256 These are the pictures for the |
Beta Was this translation helpful? Give feedback.
Replies: 13 comments
-
It would be useful to see the output from It looks like OpenSSL has configured for 64-bit ( A workaround could be to configure explicitly for 32-bit:
|
Beta Was this translation helpful? Give feedback.
-
it is 32-bit not sure why It keeps trying to configure for 64 bit. |
Beta Was this translation helpful? Give feedback.
-
this is the output from the configure. I am unable to scroll up any further. |
Beta Was this translation helpful? Give feedback.
-
Ah, I don't know Raspbian well enough to know why it's reporting 64-bit from Whatever, Note that
or
|
Beta Was this translation helpful? Give feedback.
-
So is the Note: you might need to |
Beta Was this translation helpful? Give feedback.
-
The make is still working. But it looks promising, It has been 5 min now. Not sure how long it should take? The previous times it would give the error after 1 min and stop. |
Beta Was this translation helpful? Give feedback.
-
The make was successful and now the install is going. |
Beta Was this translation helpful? Give feedback.
-
So you now have two versions of OpenSSL installed - the one that came with your operating system (which you shouldn't remove, since the API has changed between v1.1.1 and v3.x, and other system components may stop working if the 1.1.1 version goes away), and the one you have installed in As to how to get CMake to use it, that's a question for a CMake list... |
Beta Was this translation helpful? Give feedback.
-
You ran not the freshly built openssl but the system one. I presume the new should be in /usr/local/bin/openssl |
Beta Was this translation helpful? Give feedback.
-
I understand now. I was downloading this because I got this error trying to install CMake. |
Beta Was this translation helpful? Give feedback.
-
@tom-cosgrove-arm Thank you for your help. This **A workaround could be to configure explicitly for 32-bit: ./Configure linux-armv4** fixed the error I was getting for the OpenSSL and now the make for the CMake is halfway done. |
Beta Was this translation helpful? Give feedback.
Ah,
uname
is saying we haveaarch64
, so a 64-bit kernel, butLONG_BIT
is giving 32, hence a 32-bit OS.I don't know Raspbian well enough to know why it's reporting 64-bit from
uname
but 32-bit fromLONG_BIT
, some weird combination of 32-bit userland on 64-bit kernel, maybe?Whatever,
./Configure linux-armv4
is your best bet.Note that
Configure
output should look like either