Downgrading libcurl?

Page 1 of 1

13 Replies - 1658 Views - Last Post: 12 February 2008 - 08:03 PM

#1 girasquid   User is offline

  • Barbarbar
  • member icon

Reputation: 109
  • View blog
  • Posts: 1,825
  • Joined: 03-October 06

Downgrading libcurl?

Posted 12 February 2008 - 01:14 PM

Hello, all.

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

Is This A Good Question/Topic? 0
  • +

Replies To: Downgrading libcurl?

#2 Tom9729   User is offline

  • Segmentation fault
  • member icon

Reputation: 181
  • View blog
  • Posts: 2,642
  • Joined: 30-December 07

Re: Downgrading libcurl?

Posted 12 February 2008 - 02:19 PM

View Postgirasquid, on 12 Feb, 2008 - 01:14 PM, said:

Hello, all.

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?
Was This Post Helpful? 0
  • +
  • -

#3 GWatt   User is offline

  • member icon

Reputation: 312
  • View blog
  • Posts: 3,107
  • Joined: 01-December 05

Re: Downgrading libcurl?

Posted 12 February 2008 - 03:25 PM

View PostTom9729, on 12 Feb, 2008 - 04:19 PM, said:

View Postgirasquid, on 12 Feb, 2008 - 01:14 PM, said:

Hello, all.

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.
Was This Post Helpful? 0
  • +
  • -

#4 girasquid   User is offline

  • Barbarbar
  • member icon

Reputation: 109
  • View blog
  • Posts: 1,825
  • Joined: 03-October 06

Re: Downgrading libcurl?

Posted 12 February 2008 - 04:27 PM

Sorry about that; I'm running Ubuntu 7 Server right now(no GUI).
Was This Post Helpful? 0
  • +
  • -

#5 GWatt   User is offline

  • member icon

Reputation: 312
  • View blog
  • Posts: 3,107
  • Joined: 01-December 05

Re: Downgrading libcurl?

Posted 12 February 2008 - 04:56 PM

Oh. well, then.

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.
Was This Post Helpful? 0
  • +
  • -

#6 girasquid   User is offline

  • Barbarbar
  • member icon

Reputation: 109
  • View blog
  • Posts: 1,825
  • Joined: 03-October 06

Re: Downgrading libcurl?

Posted 12 February 2008 - 04:57 PM

No, my two available systems are the Ubuntu box and an OS X box.
Was This Post Helpful? 0
  • +
  • -

#7 baavgai   User is offline

  • Dreaming Coder
  • member icon


Reputation: 7507
  • View blog
  • Posts: 15,558
  • Joined: 16-October 07

Re: Downgrading libcurl?

Posted 12 February 2008 - 05:50 PM

I'm running ubuntu. Just did an apt-cache search curl to see what I had. I noticed curlftpfs on my list, so just for testing I did a sudo apt-get install curlftpfs. Got the following on install:
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.
Was This Post Helpful? 0
  • +
  • -

#8 girasquid   User is offline

  • Barbarbar
  • member icon

Reputation: 109
  • View blog
  • Posts: 1,825
  • Joined: 03-October 06

Re: Downgrading libcurl?

Posted 12 February 2008 - 06:45 PM

I tried running dpkg -l libcurl*, and this is what I got back:
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

Was This Post Helpful? 0
  • +
  • -

#9 baavgai   User is offline

  • Dreaming Coder
  • member icon


Reputation: 7507
  • View blog
  • Posts: 15,558
  • Joined: 16-October 07

Re: Downgrading libcurl?

Posted 12 February 2008 - 07:24 PM

View Postgirasquid, on 12 Feb, 2008 - 08:45 PM, said:

I downloaded the .tar.gz of curl7.18.0, and compiled and installed it


Why? You wanted to use curlftpfs, does it work after the apt-get install? Isn't that the goal?

The version that comes with Ubuntu is 7.16.4-2. Is there some reason not to use it?
Was This Post Helpful? 0
  • +
  • -

#10 girasquid   User is offline

  • Barbarbar
  • member icon

Reputation: 109
  • View blog
  • Posts: 1,825
  • Joined: 03-October 06

Re: Downgrading libcurl?

Posted 12 February 2008 - 07:26 PM

As stated earlier, curlftpfs only kind of works - there are a few features that break when using curl7.16.3 or curl7.16.4 - I asked on the curlftpfs forums and was told to downgrade to curl7.16.2 or to compile from source after changing something.

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

Was This Post Helpful? 0
  • +
  • -

#11 Tom9729   User is offline

  • Segmentation fault
  • member icon

Reputation: 181
  • View blog
  • Posts: 2,642
  • Joined: 30-December 07

Re: Downgrading libcurl?

Posted 12 February 2008 - 07:46 PM

View PostGWatt, on 12 Feb, 2008 - 03:25 PM, said:

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.

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! :)
Was This Post Helpful? 0
  • +
  • -

#12 baavgai   User is offline

  • Dreaming Coder
  • member icon


Reputation: 7507
  • View blog
  • Posts: 15,558
  • Joined: 16-October 07

Re: Downgrading libcurl?

Posted 12 February 2008 - 07:48 PM

Well, if you have your heart set on particular version of a particular package, you'll usually have to go all the way.

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.
Was This Post Helpful? 0
  • +
  • -

#13 baavgai   User is offline

  • Dreaming Coder
  • member icon


Reputation: 7507
  • View blog
  • Posts: 15,558
  • Joined: 16-October 07

Re: Downgrading libcurl?

Posted 12 February 2008 - 08:03 PM

View PostTom9729, on 12 Feb, 2008 - 09:46 PM, said:

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.


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.
Was This Post Helpful? 0
  • +
  • -

#14 girasquid   User is offline

  • Barbarbar
  • member icon

Reputation: 109
  • View blog
  • Posts: 1,825
  • Joined: 03-October 06

Re: Downgrading libcurl?

Posted 12 February 2008 - 08:03 PM

View PostTom9729, on 12 Feb, 2008 - 07:46 PM, said:

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.

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

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1