Downgrading libcurl?
Page 1 of 113 Replies - 1658 Views - Last Post: 12 February 2008 - 08:03 PM
#1
Downgrading libcurl?
Posted 12 February 2008 - 01:14 PM
I have recently been trying to use curlftpfs so that I could mount FTP sites as directories under Linux.
There is a problem when I am using curlftpfs, that relates to bugs introduced in libcurl versions 7.16.3, and 7.16.4 - so I need to downgrade to 7.16.2. I have tried the command apt-get install curl=7.16.2, but apt-get fails with E: Version '7.16.2' for 'curl' was not found.
Does anyone know what steps I need to take to downgrade my version of libcurl from 7.16.4 to 7.16.2?
Thanks,
Girasquid
Replies To: Downgrading libcurl?
#2
Re: Downgrading libcurl?
Posted 12 February 2008 - 02:19 PM
girasquid, on 12 Feb, 2008 - 01:14 PM, said:
I have recently been trying to use curlftpfs so that I could mount FTP sites as directories under Linux.
There is a problem when I am using curlftpfs, that relates to bugs introduced in libcurl versions 7.16.3, and 7.16.4 - so I need to downgrade to 7.16.2. I have tried the command apt-get install curl=7.16.2, but apt-get fails with E: Version '7.16.2' for 'curl' was not found.
Does anyone know what steps I need to take to downgrade my version of libcurl from 7.16.4 to 7.16.2?
Thanks,
Girasquid
That doesn't work because that's not a real command.
What distro are you using?
#3
Re: Downgrading libcurl?
Posted 12 February 2008 - 03:25 PM
Tom9729, on 12 Feb, 2008 - 04:19 PM, said:
girasquid, on 12 Feb, 2008 - 01:14 PM, said:
I have recently been trying to use curlftpfs so that I could mount FTP sites as directories under Linux.
There is a problem when I am using curlftpfs, that relates to bugs introduced in libcurl versions 7.16.3, and 7.16.4 - so I need to downgrade to 7.16.2. I have tried the command apt-get install curl=7.16.2, but apt-get fails with E: Version '7.16.2' for 'curl' was not found.
Does anyone know what steps I need to take to downgrade my version of libcurl from 7.16.4 to 7.16.2?
Thanks,
Girasquid
That doesn't work because that's not a real command.
What distro are you using?
Umm . . .
apt-get is most definitely a real command. I've used it several times. I'm guessing he uses ubuntu, as that's the most popular Linux, and it uses apt.
girasquid, I know that synaptic has a way to view/select different versions but I can't remember how to do it, and I'm not on a Linux box atm. It may be that the repos just don't have it anymore. You could try finding it off a different site.
#4
Re: Downgrading libcurl?
Posted 12 February 2008 - 04:27 PM
#5
Re: Downgrading libcurl?
Posted 12 February 2008 - 04:56 PM
Do you have a computer running ubuntu with a GUI? You can at least search the repository with that. If you find the package, I think there's a download only option for synaptic.
#6
Re: Downgrading libcurl?
Posted 12 February 2008 - 04:57 PM
#7
Re: Downgrading libcurl?
Posted 12 February 2008 - 05:50 PM
The following extra packages will be installed: libcurl3 The following NEW packages will be installed: curlftpfs libcurl3
Works fine! Did you do this and something get messed up?
If you want to remove a libcurl, do a dpkg -l libcurl*. If it doesn't have a version, it's not installed, but the package is cached. If it does have a version, you can apt-get remove it and then install it again if it's a problem.
Hope this helps.
#8
Re: Downgrading libcurl?
Posted 12 February 2008 - 06:45 PM
No packages found matching libcurl.pc. No packages found matching libcurl.pc.in.
I also ran apt-get remove to remove curlftpfs and libcurl3, which went fine - at which point I decided I'd try sudo apt-get install curlftpfs again - it gave me this message:
The following extra packages will be installed: libcurl3 The following NEW packages will be installed: curlftpfs libcurl3
And then it installed libcurl3, version 7.16.4(the version I'm supposed to be downgrading/upgrading from):
Setting up libcurl3 (7.16.4-2ubuntu1) ...
Even after uninstalling and re-installing curlftpfs, dpkg -l libcurl* is returning the same message.
I downloaded the .tar.gz of curl7.18.0, and compiled and installed it - now dpk -l libcurl* returns this:
Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ un libcurl2 <none> (no description available) ii libcurl3 7.16.4-2ubuntu Multi-protocol file transfer library (OpenSS ii libcurl3-gnutl 7.16.4-2ubuntu Multi-protocol file transfer library (GnuTLS un libcurl4 <none> (no description available) un libcurl4-gnutl <none> (no description available)
But the error still persists(and I'm guessing that, based on the versions up above, I have neither upgraded or downgraded my version of curl).
This post has been edited by girasquid: 12 February 2008 - 06:52 PM
#9
Re: Downgrading libcurl?
Posted 12 February 2008 - 07:24 PM
#10
Re: Downgrading libcurl?
Posted 12 February 2008 - 07:26 PM
Compiling from source didn't work, as the ./configure process throws errors about dependency after dependency after dependency - so I've decided to try and downgrade curl to 7.16.2. I just can't seem to manage to do that.
The exact bug entry can be found here.
This post has been edited by girasquid: 12 February 2008 - 07:46 PM
#11
Re: Downgrading libcurl?
Posted 12 February 2008 - 07:46 PM
GWatt, on 12 Feb, 2008 - 03:25 PM, said:
apt-get is most definitely a real command. I've used it several times. I'm guessing he uses ubuntu, as that's the most popular Linux, and it uses apt.
girasquid, I know that synaptic has a way to view/select different versions but I can't remember how to do it, and I'm not on a Linux box atm. It may be that the repos just don't have it anymore. You could try finding it off a different site.
I've used Debian for years, I know what apt is. I meant that you can't specify the version number with an equals sign.
Offtopic but I don't think Ubuntu is the "most used version of Linux". Perhaps it's the most talked about, but that's not the same thing.
I asked what distro he was using because there are a lot of Debian-based distros out there that use apt. I'm just as capable at guessing as you are.
---------
If you want to use an older version of the library and it's not in the repos, go to the website, download the source code, and compile it. You shouldn't have any troubles.
If you get dependency errors, do sudo apt-get build-dep curl first. If that doesn't help, post the errors here and we'll tell you what to install.
Follow my checkinstall tutorial to build a deb package when you're done. No point in cluttering up your filesystem when you've got an excellent package manager to keep it organized.
--------
There also seems to be a fix on the link you posted.
I found it to be a bug with curl 7.16.3 and 7.16.4. You can workaround it by using 7.16.2 or by setting ftpfs.safe_nobody = 0 in ftpfs.c if you're compiling curlftpfs.
You can use the apt-get source curl command to pull down the source package used to compile the version of curl in the repo. Make the change the guy suggested, and then recompile. You shouldn't have any dependency issues (again, see my checkinstall tutorial to make a deb package when you're done).
--------
Another alternative is to use the program "aptitude", which is like apt with a command line gui. You should be able to pin the right version of curl (if it's still in the repos) with that, it's all pretty straight forward.
--------
Another possibility is that the version you want is not in your Ubuntu version's repos. Use google to find an older package (from Ubuntu) that has the version you want, and try that.
---------
Whatever you do, good luck!
#12
Re: Downgrading libcurl?
Posted 12 February 2008 - 07:48 PM
Compile the package and all it's dependencies independently of the current distro's package management system. You're basically on you own at that point. Don't expect the disto's versions of libraries to support you, they most likely wont. So, yeah, you compile dependency after dependency.
If you really want to force your distro into the mess, look into "backports." You'll need to put older repositories in your list. This can do odd things. If you want to try to walk the middle road, you can gather up the .deb files manually. e.g. http://packages.ubun...p;keywords=curl
If that doesn't have it, try looking for debian base .deb files and see how far you get.
Good luck.
#13
Re: Downgrading libcurl?
Posted 12 February 2008 - 08:03 PM
Tom9729, on 12 Feb, 2008 - 09:46 PM, said:
That's quite a debatable position. I don't really think any other current distro stands ahead, particularly if you've to talk desktops.
Not looking argue distros, just struck me as an odd sentiment.
#14
Re: Downgrading libcurl?
Posted 12 February 2008 - 08:03 PM
Tom9729, on 12 Feb, 2008 - 07:46 PM, said:
man apt-get | grep 'specific' gives me this:
A specific version of a package can be selected for installation by selected for install. Alternatively a specific distribution can be a ’^’ or ’$’ character, or create a more specific regular A specific source version can be retrieved by postfixing the source
At which point, reading a little further into man apt-get, we come to this, under the 'install' heading:
A specific version of a package can be selected for installation by following the package name with an equals and the version of the package to select. This will cause that version to be located and selected for install. Alternatively a specific distribution can be selected by following the package name with a slash and the version of the distribution or the Archive name (stable, testing, unstable).
I managed to completely compile curlftpfs from source and get it working now - thanks for the help, everyone.
This post has been edited by girasquid: 12 February 2008 - 08:30 PM

New Topic/Question
This topic is locked


MultiQuote



|