I have it on good authority that downloading the latest source package from edgy, and trying to compile that may have been a lot easier. Primarily because that will have sorted out the weird dependency/path issues such as the g++ path and location of libssl.
In any event, I didn't do that. I did this, and it worked for me:
sudo aptitude install g++-4.0 libssl-dev gcc openssl libncurses5-dev buildtool build-essential sudo aptitude install curl libcurl3-dev libcurl3-openssl-dev libcurl3-gnutls-dev sudo aptitude install libsigc++-2.0-dev
Then, grab the sources
wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.10.4.tar.gz wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.6.4.tar.gz
And for both, with libtorrent first of course,
# Try this: ./configure --with-openssl=/usr/lib/i586/ # If the above fails, try: CXX=g++-4.0 CC=gcc-4.0 ./configure --with-openssl=/usr/lib/i586/
Then
make make check sudo make install
Originally I had to create the following symlink, else it couldn't find the correct g++.
This may have been fixed in (k)ubuntu by now, but in any event the CXX=/CC= lines above ought to fix this.
Should it not, check if /usr/bin/g++_4.x exists on your machine. Replace 4.x with whatever you have: 4.0, 4.1, 4.2 etc
sudo ln /usr/bin/g++-4.x /usr/bin/g++
You will probably want to:
sudo rm /usr/bin/g++
to remove the symlink, which may otherwise confuse apt(itude).