curl - uninstall

MESSIAH

New Member
Joined
Nov 6, 2019
Messages
12
Reaction score
0
Credits
0
I was install it from official website:
Code:
./configure
make
make test (optional)
make install
It was work somehow with https and after installing something curl don't want work with https any more:
Code:
curl: (1) Protocol "https" not supported or disabled in libcurl
So I was install openssl and I try install curl again with new parameters:
Code:
./configure --with-ssl=./usr/local/ssl
but still not work wit https.
That's why I want remove curl and try install again with this code above again.
 


Ok I found clue:
To get the https:// support into a curl that was previously built but that reports that https:// is not supported, you should dig through the document and logs and check out why the configure script doesn't find the SSL libs and/or include files.
Where I can find logs?
 
Why did you install from source instead of from your distro’s software repository?
Also, which distro are you using?
and what was it that you installed that broke curl?

I suggest using: make uninstall
To remove the version you built.
And then install curl from your distro’s official software repository using your distro’s built in package management tools.
 
Shiny New Stuff Syndrome?
The reason that Debian Stable is so reliable is because software is extensively tested and bug-fixed before being included. This means that the most recent version of software is often not available in the Stable repositories. But it doesn't mean that the software is too old to be useful!

Before attempting to install the newest version of some software from somewhere other than the Debian Stable repositories, here are some things to keep in mind:
Source -
https://wiki.debian.org/DontBreakDebian#Don.27t_suffer_from_Shiny_New_Stuff_Syndrome
 
Ok, so just for clarification - the broken curl was on your fresh install of Debian?

Or was it on the .iso you're attempting to build?

If it's on Debian - simply install the repo version:
Code:
sudo apt install curl
That will install curl, plus any dependencies it may be missing and it should work out of the box with https.

If it's on the LFS .iso you're building - I don't know what to suggest offhand. But I'm assuming you just need curl installed on Debian 10 - in order to follow some of the instructions for building LFS. In which case - install from the repos using apt - as per above!
 
Shiny New Stuff Syndrome?
Do you want tell me new version is not compatible with newest distros? Clever function of linux. Windows should take a lesson

Ok, so just for clarification - the broken curl was on your fresh install of Debian?
Nope I was working few hours on it. No worries after complete LFS Debian kill itself - he consume all disk space and has been dead - after GRUB showing error.
Or was it on the .iso you're attempting to build?
Nope
If it's on Debian - simply install the repo version:
Code:
sudo apt install curl
That will install curl, plus any dependencies it may be missing and it should work out of the box with https.

If it's on the LFS .iso you're building - I don't know what to suggest offhand. But I'm assuming you just need curl installed on Debian 10 - in order to follow some of the instructions for building LFS. In which case - install from the repos using apt - as per above!
I have no idea - when I try use curl command with https url then I get error. Debian updating System using curl probably and https. Why curl still using http when https is now standard
 
Also, some additional information that might be helpful - re: missing ssl libs......
It sounds like you're probably missing some development libraries like perhaps libssl-dev.
If you're building curl on Debian - try using the following command:
Code:
sudo apt build-deps curl

That will download and install the development libraries required to build the version of curl that is in the Debian repos.
As long as the latest version of the source code doesn't use newer versions of any of those libraries - the configure script should pick the libraries up and should build and link against them!

There have been a few times where I've had to build software from source on Debian - and that little trick has saved me hunting down missing dependencies.
 
When I try cleaned installation again then I got this:
CCLD libcurl.la
/usr/bin/ld: /usr/local/ssl/lib/libssl.a(t1_enc.o): relocation R_X86_64_PC32 against symbol stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(cryptlib.o): relocation R_X86_64_PC32 against symbol stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(ui_openssl.o): relocation R_X86_64_PC32 against symbol stdin@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(gost_eng.o): relocation R_X86_64_PC32 against symbol stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(txt_db.o): relocation R_X86_64_PC32 against symbol stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1230: libcurl.la] Error 1
make[2]: Leaving directory '/home/xxx/.local/share/Trash/files/curl-7.67_3782237855496.0/lib'
make[1]: *** [Makefile:1049: all] Error 2
make[1]: Leaving directory '/home/xxx/.local/share/Trash/files/curl-7.67_3782237855496.0/lib'
make: *** [Makefile:946: all-recursive] Error 1
 
OK, well - I'm running Debian Testing.
I've just installed the build dependencies, cloned the git repo and configured and built curl using the following commands:
Code:
sudo apt build-dep curl
git clone https://github.com/curl/curl.git
cd curl
./buildconf
./configure
make
And curl has built properly with no errors.

Testing curl using the additional commands (in the same terminal session):
Code:
cd src
./curl -o ~/vue.js https://cdn.jsdelivr.net/npm/vue/dist/vue.js
And the freshly built curl has successfully downloaded vue.js via https://

So, it works for me.
Perhaps try cleaning, then re-running buildconf and then configure, before running make.....
 
Just curious... could it be something like the dev files for openssl are missing?
 

Could you please provide the exact command you typed that raised the error ? It seems that curl is sensitive to the type of quotes you use for the URL.
 
[SOLVED]
Problem cured:
I was install OpenSSL v 1.0.2t by my mistake - I was download first link from official website - I should check which one link is highest stable version.
v 1.0.2t don't have command
make uninstall
 

Members online


Top