Inizio  >  Docs  >  Linux  >  How to  >  Internet  
InternetInternet

Index

rtorrent from svn

1. Get required packages

sudo apt-get install subversion build-essential libtool automake1.9 openssl libcurl3 libcurl3-dev libsigc++-2.0-0c2a libsigc++-2.0-dev libncurses5 libncurses5-dev

Note: Automake must be a newer version than 1.4. So other automake versions work also. I just used 1.9 here because I need it for something else also.

 

2. Create the rtorrent download folder

mkdir ~/rtorrent

 

3. Go to the rtorrent download folder

cd ~/rtorrent

Current location: /home/USER/rtorrent

 

4. Then get the latest trunk version

svn co svn://rakshasa.no/libtorrent/trunk

 

5. Enter the trunk folder

cd trunk

Current location: /home/USER/rtorrent/trunk

 

6. Update rTorrent to the latest SVN version

svn up

 

7. Go to the libtorrent folder

cd libtorrent

Current location: /home/USER/rtorrent/trunk/libtorrent

 

8. Run the autogen script

./autogen.sh

 

9. Configure it

./configure

 

10. Compile libtorrent

sudo make

 

 

10.1 Compile libtorrent (UBUNTU)

sudo checkinstall


checkinstall 1.6.1, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
           This software is released under the GNU GPL.


The package documentation directory ./doc-pak does not exist.
Should I create a default set of package docs?  [y]:

Preparazione documentazione pacchetto in corso...OK

Inserire una breve descrizione per il pacchetto.
End your description with an empty line or EOF.
>> libtorrent 10.0.8 svn
>>

*****************************************
**** Debian package creation selected ***
*****************************************

This package will be built according to these values:

0 -  Maintainer: [ root@ubuntu ]
1 -  Summary: [ libtorrent 10.0.8 svn ]
2 -  Name:    [ libtorrent ]

3 -  Version: [ 0.11.8              <---- Okkio qui la versione non è corretta e causa l'impossibilità di creare il pacchetto deb

0.11.8
0.11.8
0.11.8
0.11.8
0.11.8
0.11.8 ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ i386 ]
8 -  Source location: [ libtorrent ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]

Inserisci il corrispondente numero per cambiare una caratteristica (seguito da INVIO) oppure premere INVIO per continuare: 3      <--- per correggere la versione
Enter new version:
>> 0.11.8

This package will be built according to these values:

0 -  Maintainer: [ root@ubuntu ]
1 -  Summary: [ libtorrent 10.0.8 svn ]
2 -  Name:    [ libtorrent ]
3 -  Version: [ 0.11.8 ] <--- così è corretta
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ i386 ]
8 -  Source location: [ libtorrent ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]

Inserisci il corrispondente numero per cambiare una caratteristica (seguito da INVIO) oppure premere INVIO per continuare:

Installing with make install...

in caso di errori in fase di creazione del paccetto deb relativi al pacchetto libtorrent9-dev, digitare:

 sudo aptitude remove libtorrent9-dev

 

11. Install libtorrent on the system

sudo make install

per UBUNTU il comando chekintall oltre che creare il pacchetto deb lo installa automaticamente

 

12. Go to the rTorrent folder

cd ../rtorrent

Current location: /home/USER/rtorrent/trunk/rtorrent

 

13. Run the autogen script

./autogen.sh

 

 14. Configure it

./configure

 

15. Compile rTorrent

make

 

15. Compile rTorrent (UBUNTU)

 

 

 

come descritto punto 10.1

16. Install rTorrent on the system

sudo make install

 

17. Run rTorrent

rtorrent

 

 

Summary

sudo apt-get install subversion build-essential libtool automake1.9 openssl libcurl3 libcurl3-dev libsigc++-2.0-0c2a libsigc++-2.0-dev libncurses5 libncurses5-dev checkinstall 
mkdir ~/rtorrent
cd ~/rtorrent
svn co svn://rakshasa.no/libtorrent/trunk
cd trunk
svn up
cd libtorrent/
./autogen.sh && ./configure --prefix=/usr && make       
sudo checkinstall       
cd ../rtorrent/
./autogen.sh && ./configure --prefix=/usr && make &&sudo checkinstall      

 

Torna sù