wget download link:cURL v7.51.0 for OpenSSL v0.9.8 :
$ mkdir -p /opt
$ wget -O curl-7.51.0.tar.gz https://curl.se/download/curl-7.51.0.tar.gz
$ tar -xf ./curl-7.51.0.tar.gz && mv curl-7.51.0 curl-7.51.0-src && cd curl-7.51.0-src
$ make clean 2>/dev/null || true
$ CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-0.9.8/lib" ./configure --prefix=/opt/curl-7.51.0-openssl-0.9.8 --with-ssl=/opt/openssl-0.9.8 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread"
$ make -j$(nproc) && make install
Verify :
$ ls -al /opt/curl-7.51.0-openssl-0.9.8
or
$ /opt/curl-7.51.0-openssl-0.9.8/bin/curl --version
Simplify command :
$ make clean 2>/dev/null || true && CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-0.9.8/lib" ./configure --prefix=/opt/curl-7.51.0-openssl-0.9.8 --with-ssl=/opt/openssl-0.9.8 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread" && make -j$(nproc) && make install && /opt/curl-7.51.0-openssl-0.9.8/bin/curl --version
----- ----- ----- ----- -----
cURL v7.59.0 for OpenSSL v1.0.0 :
$ mkdir -p /opt
$ wget -O curl-7.59.0.tar.gz https://curl.se/download/curl-7.59.0.tar.gz
$ tar -xf ./curl-7.59.0.tar.gz && mv curl-7.59.0 curl-7.59.0-src && cd curl-7.59.0-src
$ make clean 2>/dev/null || true
$ CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-1.0.0/lib" ./configure --prefix=/opt/curl-7.59.0-openssl-1.0.0 --with-ssl=/opt/openssl-1.0.0 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread"
$ make -j$(nproc) && make install
Verify :
$ ls -al /opt/curl-7.59.0-openssl-1.0.0
or
$ /opt/curl-7.59.0-openssl-1.0.0/bin/curl --version
Simplify command :
$ make clean 2>/dev/null || true && CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-1.0.0/lib" ./configure --prefix=/opt/curl-7.59.0-openssl-1.0.0 --with-ssl=/opt/openssl-1.0.0 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread" && make -j$(nproc) && make install && /opt/curl-7.59.0-openssl-1.0.0/bin/curl --version
----- ----- ----- ----- -----
cURL v7.68.0 for OpenSSL v1.0.1 :
$ mkdir -p /opt
$ wget -O curl-7.68.0.tar.gz https://curl.se/download/curl-7.68.0.tar.gz
$ tar -xf ./curl-7.68.0.tar.gz && mv curl-7.68.0 curl-7.68.0-src && cd curl-7.68.0-src
$ make clean 2>/dev/null || true
$ CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-1.0.1/lib" ./configure --prefix=/opt/curl-7.68.0-openssl-1.0.1 --with-ssl=/opt/openssl-1.0.1 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread"
$ make -j$(nproc) && make install
Verify :
$ ls -al /opt/curl-7.68.0-openssl-1.0.1
or
$ /opt/curl-7.68.0-openssl-1.0.1/bin/curl --version
Simplify command :
$ make clean 2>/dev/null || true && CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-1.0.1/lib" ./configure --prefix=/opt/curl-7.68.0-openssl-1.0.1 --with-ssl=/opt/openssl-1.0.1 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread" && make -j$(nproc) && make install && /opt/curl-7.68.0-openssl-1.0.1/bin/curl --version
----- ----- ----- ----- -----
cURL v7.88.1 for OpenSSL v1.0.2 :
$ mkdir -p /opt
$ wget -O curl-7.88.1.tar.gz https://curl.se/download/curl-7.88.1.tar.gz
$ tar -xf ./curl-7.88.1.tar.gz && mv curl-7.88.1 curl-7.88.1-src && cd curl-7.88.1-src
$ make clean 2>/dev/null || true
$ CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-1.0.2/lib" ./configure --prefix=/opt/curl-7.88.1-openssl-1.0.2 --with-ssl=/opt/openssl-1.0.2 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread"
$ make -j$(nproc) && make install
Verify :
$ ls -al /opt/curl-7.88.1-openssl-1.0.2
or
$ /opt/curl-7.88.1-openssl-1.0.2/bin/curl --version
Simplify command :
$ make clean 2>/dev/null || true && CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-1.0.2/lib" ./configure --prefix=/opt/curl-7.88.1-openssl-1.0.2 --with-ssl=/opt/openssl-1.0.2 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread" && make -j$(nproc) && make install && /opt/curl-7.88.1-openssl-1.0.2/bin/curl --version
----- ----- ----- ----- -----
cURL v7.84.0 for OpenSSL v1.1.0 :
$ mkdir -p /opt
$ wget -O curl-7.84.0.tar.gz https://curl.se/download/curl-7.84.0.tar.gz
$ tar -xf ./curl-7.84.0.tar.gz && mv curl-7.84.0 curl-7.84.0-src && cd curl-7.84.0-src
$ make clean 2>/dev/null || true
$ CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-1.1.0/lib" ./configure --prefix=/opt/curl-7.84.0-openssl-1.1.0 --with-ssl=/opt/openssl-1.1.0 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread"
$ make -j$(nproc) && make install
Verify :
$ ls -al /opt/curl-7.84.0-openssl-1.1.0
or
$ /opt/curl-7.84.0-openssl-1.1.0/bin/curl --version
Simplify command :
$ make clean 2>/dev/null || true && CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-1.1.0/lib" ./configure --prefix=/opt/curl-7.84.0-openssl-1.1.0 --with-ssl=/opt/openssl-1.1.0 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread" && make -j$(nproc) && make install && /opt/curl-7.84.0-openssl-1.1.0/bin/curl --version
----- ----- ----- ----- -----
cURL v8.12.1 for OpenSSL v1.1.1 :
$ mkdir -p /opt
$ wget -O curl-8.12.1.tar.gz https://curl.se/download/curl-8.12.1.tar.gz
$ tar -xf ./curl-8.12.1.tar.gz && mv curl-8.12.1 curl-8.12.1-src && cd curl-8.12.1-src
$ rm -f config.cache && make distclean
$ make clean 2>/dev/null || true
$ CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-1.1.1/lib -L/opt/openssl-1.1.1/lib" PKG_CONFIG_PATH="/opt/openssl-1.1.1/lib/pkgconfig" OPENSSL_CFLAGS="-I/opt/openssl-1.1.1/include" OPENSSL_LIBS="-L/opt/openssl-1.1.1/lib -lssl -lcrypto" ./configure --prefix=/opt/curl-8.12.1-openssl-1.1.1 --with-ssl=/opt/openssl-1.1.1 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread"
$ make -j$(nproc) && make install
Verify :
$ ls -al /opt/curl-8.12.1-openssl-1.1.1
or
$ /opt/curl-8.12.1-openssl-1.1.1/bin/curl --version
Simplify command :
$ rm -f config.cache && make distclean && make clean 2>/dev/null || true && CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-1.1.1/lib -L/opt/openssl-1.1.1/lib" PKG_CONFIG_PATH="/opt/openssl-1.1.1/lib/pkgconfig" OPENSSL_CFLAGS="-I/opt/openssl-1.1.1/include" OPENSSL_LIBS="-L/opt/openssl-1.1.1/lib -lssl -lcrypto" ./configure --prefix=/opt/curl-8.12.1-openssl-1.1.1 --with-ssl=/opt/openssl-1.1.1 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread" && make -j$(nproc) && make install && /opt/curl-8.12.1-openssl-1.1.1/bin/curl --version
----- ----- ----- ----- -----
cURL v8.12.1 for OpenSSL v3.0.22 :
$ mkdir -p /opt
$ wget -O curl-8.12.1.tar.gz https://curl.se/download/curl-8.12.1.tar.gz
$ tar -xf ./curl-8.12.1.tar.gz && mv curl-8.12.1 curl-8.12.1-src && cd curl-8.12.1-src
$ rm -f config.cache && make distclean
$ make clean 2>/dev/null || true
$ CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-3.0.22/lib64 -L/opt/openssl-3.0.22/lib64" PKG_CONFIG_PATH="/opt/openssl-3.0.22/lib64/pkgconfig" OPENSSL_CFLAGS="-I/opt/openssl-3.0.22/include" OPENSSL_LIBS="-L/opt/openssl-3.0.22/lib64 -lssl -lcrypto" ./configure --prefix=/opt/curl-8.12.1-openssl-3.0.22 --with-ssl=/opt/openssl-3.0.22 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread"
$ make -j$(nproc) && make install
Verify :
$ ls -al /opt/curl-8.12.1-openssl-3.0.22
or
$ /opt/curl-8.12.1-openssl-3.0.22/bin/curl --version
Simplify command :
$ rm -f config.cache && make distclean && make clean 2>/dev/null || true && CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-3.0.22/lib64 -L/opt/openssl-3.0.22/lib64" PKG_CONFIG_PATH="/opt/openssl-3.0.22/lib64/pkgconfig" OPENSSL_CFLAGS="-I/opt/openssl-3.0.22/include" OPENSSL_LIBS="-L/opt/openssl-3.0.22/lib64 -lssl -lcrypto" ./configure --prefix=/opt/curl-8.12.1-openssl-3.0.22 --with-ssl=/opt/openssl-3.0.22 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread" && make -j$(nproc) && make install && /opt/curl-8.12.1-openssl-3.0.22/bin/curl --version
----- ----- ----- ----- -----
cURL v8.12.1 for OpenSSL v3.1.8 :
$ mkdir -p /opt
$ wget -O curl-8.12.1.tar.gz https://curl.se/download/curl-8.12.1.tar.gz
$ tar -xf ./curl-8.12.1.tar.gz && mv curl-8.12.1 curl-8.12.1-src && cd curl-8.12.1-src
$ rm -f config.cache && make distclean
$ make clean 2>/dev/null || true
$ CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-3.1.8/lib64 -L/opt/openssl-3.1.8/lib64" PKG_CONFIG_PATH="/opt/openssl-3.1.8/lib64/pkgconfig" OPENSSL_CFLAGS="-I/opt/openssl-3.1.8/include" OPENSSL_LIBS="-L/opt/openssl-3.1.8/lib64 -lssl -lcrypto" ./configure --prefix=/opt/curl-8.12.1-openssl-3.1.8 --with-ssl=/opt/openssl-3.1.8 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread"
$ make -j$(nproc) && make install
Verify :
$ ls -al /opt/curl-8.12.1-openssl-3.1.8
or
$ /opt/curl-8.12.1-openssl-3.1.8/bin/curl --version
Simplify command :
$ rm -f config.cache && make distclean && make clean 2>/dev/null || true && CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-3.1.8/lib64 -L/opt/openssl-3.1.8/lib64" PKG_CONFIG_PATH="/opt/openssl-3.1.8/lib64/pkgconfig" OPENSSL_CFLAGS="-I/opt/openssl-3.1.8/include" OPENSSL_LIBS="-L/opt/openssl-3.1.8/lib64 -lssl -lcrypto" ./configure --prefix=/opt/curl-8.12.1-openssl-3.1.8 --with-ssl=/opt/openssl-3.1.8 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread" && make -j$(nproc) && make install && /opt/curl-8.12.1-openssl-3.1.8/bin/curl --version
----- ----- ----- ----- -----
cURL v8.12.1 for OpenSSL v3.2.6 :
$ mkdir -p /opt
$ wget -O curl-8.12.1.tar.gz https://curl.se/download/curl-8.12.1.tar.gz
$ tar -xf ./curl-8.12.1.tar.gz && mv curl-8.12.1 curl-8.12.1-src && cd curl-8.12.1-src
$ rm -f config.cache && make distclean
$ make clean 2>/dev/null || true
$ CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-3.2.6/lib64 -L/opt/openssl-3.2.6/lib64" PKG_CONFIG_PATH="/opt/openssl-3.2.6/lib64/pkgconfig" OPENSSL_CFLAGS="-I/opt/openssl-3.2.6/include" OPENSSL_LIBS="-L/opt/openssl-3.2.6/lib64 -lssl -lcrypto" ./configure --prefix=/opt/curl-8.12.1-openssl-3.2.6 --with-ssl=/opt/openssl-3.2.6 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread"
$ make -j$(nproc) && make install
Verify :
$ ls -al /opt/curl-8.12.1-openssl-3.2.6
or
$ /opt/curl-8.12.1-openssl-3.2.6/bin/curl --version
Simplify command :
$ rm -f config.cache && make distclean && make clean 2>/dev/null || true && CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-3.2.6/lib64 -L/opt/openssl-3.2.6/lib64" PKG_CONFIG_PATH="/opt/openssl-3.2.6/lib64/pkgconfig" OPENSSL_CFLAGS="-I/opt/openssl-3.2.6/include" OPENSSL_LIBS="-L/opt/openssl-3.2.6/lib64 -lssl -lcrypto" ./configure --prefix=/opt/curl-8.12.1-openssl-3.2.6 --with-ssl=/opt/openssl-3.2.6 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread" && make -j$(nproc) && make install && /opt/curl-8.12.1-openssl-3.2.6/bin/curl --version
----- ----- ----- ----- -----
cURL v8.12.1 for OpenSSL v3.3.7 :
$ mkdir -p /opt
$ wget -O curl-8.12.1.tar.gz https://curl.se/download/curl-8.12.1.tar.gz
$ tar -xf ./curl-8.12.1.tar.gz && mv curl-8.12.1 curl-8.12.1-src && cd curl-8.12.1-src
$ rm -f config.cache && make distclean
$ make clean 2>/dev/null || true
$ CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-3.3.7/lib64 -L/opt/openssl-3.3.7/lib64" PKG_CONFIG_PATH="/opt/openssl-3.3.7/lib64/pkgconfig" OPENSSL_CFLAGS="-I/opt/openssl-3.3.7/include" OPENSSL_LIBS="-L/opt/openssl-3.3.7/lib64 -lssl -lcrypto" ./configure --prefix=/opt/curl-8.12.1-openssl-3.3.7 --with-ssl=/opt/openssl-3.3.7 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread"
$ make -j$(nproc) && make install
Verify :
$ ls -al /opt/curl-8.12.1-openssl-3.3.7
or
$ /opt/curl-8.12.1-openssl-3.3.7/bin/curl --version
Simplify command :
$ rm -f config.cache && make distclean && make clean 2>/dev/null || true && CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-3.3.7/lib64 -L/opt/openssl-3.3.7/lib64" PKG_CONFIG_PATH="/opt/openssl-3.3.7/lib64/pkgconfig" OPENSSL_CFLAGS="-I/opt/openssl-3.3.7/include" OPENSSL_LIBS="-L/opt/openssl-3.3.7/lib64 -lssl -lcrypto" ./configure --prefix=/opt/curl-8.12.1-openssl-3.3.7 --with-ssl=/opt/openssl-3.3.7 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread" && make -j$(nproc) && make install && /opt/curl-8.12.1-openssl-3.3.7/bin/curl --version
----- ----- ----- ----- -----
cURL v8.12.1 for OpenSSL v3.4.7 :
$ mkdir -p /opt
$ wget -O curl-8.12.1.tar.gz https://curl.se/download/curl-8.12.1.tar.gz
$ tar -xf ./curl-8.12.1.tar.gz && mv curl-8.12.1 curl-8.12.1-src && cd curl-8.12.1-src
$ rm -f config.cache && make distclean
$ make clean 2>/dev/null || true
$ CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-3.4.7/lib64 -L/opt/openssl-3.4.7/lib64" PKG_CONFIG_PATH="/opt/openssl-3.4.7/lib64/pkgconfig" OPENSSL_CFLAGS="-I/opt/openssl-3.4.7/include" OPENSSL_LIBS="-L/opt/openssl-3.4.7/lib64 -lssl -lcrypto" ./configure --prefix=/opt/curl-8.12.1-openssl-3.4.7 --with-ssl=/opt/openssl-3.4.7 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread"
$ make -j$(nproc) && make install
Verify :
$ ls -al /opt/curl-8.12.1-openssl-3.4.7
or
$ /opt/curl-8.12.1-openssl-3.4.7/bin/curl --version
Simplify command :
$ rm -f config.cache && make distclean && make clean 2>/dev/null || true && CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-3.4.7/lib64 -L/opt/openssl-3.4.7/lib64" PKG_CONFIG_PATH="/opt/openssl-3.4.7/lib64/pkgconfig" OPENSSL_CFLAGS="-I/opt/openssl-3.4.7/include" OPENSSL_LIBS="-L/opt/openssl-3.4.7/lib64 -lssl -lcrypto" ./configure --prefix=/opt/curl-8.12.1-openssl-3.4.7 --with-ssl=/opt/openssl-3.4.7 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread" && make -j$(nproc) && make install && /opt/curl-8.12.1-openssl-3.4.7/bin/curl --version
----- ----- ----- ----- -----
cURL v8.12.1 for OpenSSL v3.5.8 :
$ mkdir -p /opt
$ wget -O curl-8.12.1.tar.gz https://curl.se/download/curl-8.12.1.tar.gz
$ tar -xf ./curl-8.12.1.tar.gz && mv curl-8.12.1 curl-8.12.1-src && cd curl-8.12.1-src
$ rm -f config.cache && make distclean
$ make clean 2>/dev/null || true
$ CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-3.5.8/lib64 -L/opt/openssl-3.5.8/lib64" PKG_CONFIG_PATH="/opt/openssl-3.5.8/lib64/pkgconfig" OPENSSL_CFLAGS="-I/opt/openssl-3.5.8/include" OPENSSL_LIBS="-L/opt/openssl-3.5.8/lib64 -lssl -lcrypto" ./configure --prefix=/opt/curl-8.12.1-openssl-3.5.8 --with-ssl=/opt/openssl-3.5.8 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread"
$ make -j$(nproc) && make install
Verify :
$ ls -al /opt/curl-8.12.1-openssl-3.5.8
or
$ /opt/curl-8.12.1-openssl-3.5.8/bin/curl --version
Simplify command :
$ rm -f config.cache && make distclean && make clean 2>/dev/null || true && CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-3.5.8/lib64 -L/opt/openssl-3.5.8/lib64" PKG_CONFIG_PATH="/opt/openssl-3.5.8/lib64/pkgconfig" OPENSSL_CFLAGS="-I/opt/openssl-3.5.8/include" OPENSSL_LIBS="-L/opt/openssl-3.5.8/lib64 -lssl -lcrypto" ./configure --prefix=/opt/curl-8.12.1-openssl-3.5.8 --with-ssl=/opt/openssl-3.5.8 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread" && make -j$(nproc) && make install && /opt/curl-8.12.1-openssl-3.5.8/bin/curl --version
----- ----- ----- ----- -----
cURL v8.12.1 for OpenSSL v3.6.4 :
$ mkdir -p /opt
$ wget -O curl-8.12.1.tar.gz https://curl.se/download/curl-8.12.1.tar.gz
$ tar -xf ./curl-8.12.1.tar.gz && mv curl-8.12.1 curl-8.12.1-src && cd curl-8.12.1-src
$ rm -f config.cache && make distclean
$ make clean 2>/dev/null || true
$ CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-3.6.4/lib64 -L/opt/openssl-3.6.4/lib64" PKG_CONFIG_PATH="/opt/openssl-3.6.4/lib64/pkgconfig" OPENSSL_CFLAGS="-I/opt/openssl-3.6.4/include" OPENSSL_LIBS="-L/opt/openssl-3.6.4/lib64 -lssl -lcrypto" ./configure --prefix=/opt/curl-8.12.1-openssl-3.6.4 --with-ssl=/opt/openssl-3.6.4 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread"
$ make -j$(nproc) && make install
Verify :
$ ls -al /opt/curl-8.12.1-openssl-3.6.4
or
$ /opt/curl-8.12.1-openssl-3.6.4/bin/curl --version
Simplify command :
$ rm -f config.cache && make distclean && make clean 2>/dev/null || true && CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-3.6.4/lib64 -L/opt/openssl-3.6.4/lib64" PKG_CONFIG_PATH="/opt/openssl-3.6.4/lib64/pkgconfig" OPENSSL_CFLAGS="-I/opt/openssl-3.6.4/include" OPENSSL_LIBS="-L/opt/openssl-3.6.4/lib64 -lssl -lcrypto" ./configure --prefix=/opt/curl-8.12.1-openssl-3.6.4 --with-ssl=/opt/openssl-3.6.4 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread" && make -j$(nproc) && make install && /opt/curl-8.12.1-openssl-3.6.4/bin/curl --version
----- ----- ----- ----- -----
cURL v8.22.0 for OpenSSL v4.0.2 :
$ mkdir -p /opt
$ wget -O curl-8.22.0.tar.gz https://curl.se/download/curl-8.22.0.tar.gz
$ tar -xf ./curl-8.2.0.tar.gz && mv curl-8.22.0 curl-8.22.0-src && cd curl-8.22.0-src
$ rm -f config.cache && make distclean
$ make clean 2>/dev/null || true
$ CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-4.0.2/lib64 -L/opt/openssl-4.0.2/lib64" PKG_CONFIG_PATH="/opt/openssl-4.0.2/lib64/pkgconfig" OPENSSL_CFLAGS="-I/opt/openssl-4.0.2/include" OPENSSL_LIBS="-L/opt/openssl-4.0.2/lib64 -lssl -lcrypto" ./configure --prefix=/opt/curl-8.22.0-openssl-4.0.2 --with-ssl=/opt/openssl-4.0.2 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread"
$ make -j$(nproc) && make install
Verify :
$ ls -al /opt/curl-8.22.0-openssl-4.0.2
or
$ /opt/curl-8.22.0-openssl-4.0.2/bin/curl --version
Simplify command :
$ rm -f config.cache && make distclean && make clean 2>/dev/null || true && CC="gcc -std=gnu89" CFLAGS="-fPIC" LDFLAGS="-Wl,-rpath,/opt/openssl-4.0.2/lib64 -L/opt/openssl-4.0.2/lib64" PKG_CONFIG_PATH="/opt/openssl-4.0.2/lib64/pkgconfig" OPENSSL_CFLAGS="-I/opt/openssl-4.0.2/include" OPENSSL_LIBS="-L/opt/openssl-4.0.2/lib64 -lssl -lcrypto" ./configure --prefix=/opt/curl-8.22.0-openssl-4.0.2 --with-ssl=/opt/openssl-4.0.2 --disable-ldap --disable-ldaps --enable-static --disable-shared LIBS="-ldl -lpthread" && make -j$(nproc) && make install && /opt/curl-8.22.0-openssl-4.0.2/bin/curl --version

Comments
Post a Comment