1

On Ubuntu server :

# easy_install mercurial
Searching for mercurial
Best match: mercurial 1.8.1
Adding mercurial 1.8.1 to easy-install.pth file

Using /usr/local/lib/python2.6/dist-packages
Processing dependencies for mercurial
Finished processing dependencies for mercurial

Now, if I do hg version it says I'm using the 1.6.3 version!

I want to use the last version. the -U option don't work. The -m option don't work.

Any idea what's the problem?

Klaim
  • 67,274
  • 36
  • 133
  • 188
  • user/local/bin/hg Not sure if it's a version I installed with easy_install or manually, I'm still a bit lost with those things. – Klaim Mar 24 '11 at 19:49

3 Answers3

1

I fixed the problem by uninstalling the package following this :

How do I remove packages installed with Python's easy_install?

then reinstalling.

Now, easy_install don't install the very last version I wanted, so I'll install it manually certainly.

Community
  • 1
  • 1
Klaim
  • 67,274
  • 36
  • 133
  • 188
  • Take a look at `pip` as Sridhar pointed out. I've found it usually brings you closer to the edge releases. Caution needed as usual. – MC78 Mar 24 '11 at 21:31
0

You can install mercurial using aptitude. I'm not sure why installing mercurial with easy_install would install the mercurial binaries for you. easy_install is for python packages.

Try this:

sudo aptitude update
sudo aptitude reinstall mercurial
hg --version

Should display 1.8 now

MC78
  • 660
  • 3
  • 14
  • I know that, but it will not install the 1.8.1 version, nor the 1.8. – Klaim Mar 24 '11 at 20:58
  • By the way, your solution does install a parallel version of hg that is under the other one, so I even don't have access to it until I uninstall the easy_install one. – Klaim Mar 24 '11 at 21:00
  • That will happen when easy_install puts the binary earlier in your path than the aptitude packages are located at. As you noted yourself removing the easy_install binaries should mostly fix it. – MC78 Mar 24 '11 at 21:35
0

Perhaps try this:

sudo easy_install pip
sudo pip install -U mercurial
Sridhar Ratnakumar
  • 81,433
  • 63
  • 146
  • 187