Difference between revisions of "CryptoppDebian"

From AMule Project FAQ
Jump to: navigation, search
(apt-get install libcrypto++5.1 libcrypto++-dev)
m (links)
Line 3: Line 3:
 
<b>IMPORTANT:</b> <i>Please be aware that you need to have super-user (root) priviledges to follow this document</i>
 
<b>IMPORTANT:</b> <i>Please be aware that you need to have super-user (root) priviledges to follow this document</i>
  
==  How to get [[libcrypto|crypto++]] working on Debian Sid/Unstable (from deb package): ==
+
==  How to get [[libcrypto|crypto++]] working on [[Debian]] Sid/Unstable (from deb package): ==
  
 
Simply run this two commands
 
Simply run this two commands
Line 16: Line 16:
 
<b>NOTE:</b> You have to link the files because of a bug in Debian libcrypto++ package<br><br>
 
<b>NOTE:</b> You have to link the files because of a bug in Debian libcrypto++ package<br><br>
  
==  How to get [[libcrypto|crypto++]] working on Debian Sarge/Testing and Woody/Stable (from deb package): ==
+
==  How to get [[libcrypto|crypto++]] working on [[Debian]] Sarge/Testing and Woody/Stable (from deb package): ==
  
Get libcrypto++ backport package to Sarge and Woody (thanks, thermoman) by adding this line to /etc/apt/sources.list:  
+
Get [[Libcrypto|libcrypto++]] backport package to Sarge and Woody (thanks, thermoman) by adding this line to /etc/apt/sources.list:  
  
 
<i>deb http://debian.thermoman.de/ woody libcrypto++</i>
 
<i>deb http://debian.thermoman.de/ woody libcrypto++</i>
Line 31: Line 31:
 
<i>ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h</i>
 
<i>ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h</i>
  
<b>NOTE:</b> You have to link the files because of a bug in Debian libcrypto++ package<br>
+
<b>NOTE:</b> You have to link the files because of a bug in [[Debian]] [[Libcrypto|libcrypto++]] package<br>
 
<br>
 
<br>
 
<br>
 
<br>
  
== How to get crypto++ working on Debian Sarge/Testing (from Debian sources): ==
+
== How to get [[Libcrypto|crypto++]] working on [[Debian]] Sarge/Testing (from [[Debian]] sources): ==
  
Get libcrypto++ sources from '''sid'''
+
Get [[Libcrypto|libcrypto++]] sources from '''sid'''
  
 
Add this line to /etc/apt/sources.list:
 
Add this line to /etc/apt/sources.list:
Line 56: Line 56:
 
''ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h''
 
''ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h''
  
<b>NOTE:</b> you have to link the files because of a bug in Debian libcrypto++ package<br>
+
<b>NOTE:</b> you have to link the files because of a bug in [[Debian]] [[Libcrypto|libcrypto++]] package<br>
 
<br>
 
<br>
 
<br>
 
<br>
Line 62: Line 62:
 
== Self-compiling Crypto++ ==
 
== Self-compiling Crypto++ ==
  
You could compile libcrypto yourself too. Take a look at [[Compilation_Installation|our compilation howto]].
+
You could compile [[Libcrypto|libcrypto]] yourself too. Take a look at [[Compilation_Installation|our compilation howto]].
  
 
== Hasty installation ==
 
== Hasty installation ==
Please note that this installation method has the disadvantage that the crypto++ packages wont be updated automatically along with the rest of your system!
+
Please note that this installation method has the disadvantage that the [[Libcrypto|crypto++]] packages wont be updated automatically along with the rest of your system!
  
* Download the crypto++ package that matches your arch [http://packages.debian.org/unstable/libs/libcrypto++5.1 here].
+
* Download the [[Libcrypto|crypto++]] package that matches your arch [http://packages.debian.org/unstable/libs/libcrypto++5.1 here].
 
* If you want to compile amule yourself, download the crypto++-dev package that matches your arch [http://packages.debian.org/unstable/libdevel/libcrypto++-dev here].
 
* If you want to compile amule yourself, download the crypto++-dev package that matches your arch [http://packages.debian.org/unstable/libdevel/libcrypto++-dev here].
 
* use the command "dpkg -i <filename>" on the downloaded files as root and you're done.
 
* use the command "dpkg -i <filename>" on the downloaded files as root and you're done.

Revision as of 13:34, 14 July 2004



IMPORTANT: Please be aware that you need to have super-user (root) priviledges to follow this document

How to get crypto++ working on Debian Sid/Unstable (from deb package):

Simply run this two commands

apt-get update apt-get install libcrypto++-dev

and then run

ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h

NOTE: You have to link the files because of a bug in Debian libcrypto++ package

How to get crypto++ working on Debian Sarge/Testing and Woody/Stable (from deb package):

Get libcrypto++ backport package to Sarge and Woody (thanks, thermoman) by adding this line to /etc/apt/sources.list:

deb http://debian.thermoman.de/ woody libcrypto++

Then run

apt-get update apt-get install libcrypto++5.1 libcrypto++-dev

After installing, make a symbolic link in /usr/include/crypto++ from cryptopp_config.h to config.h in the same directory:

ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h

NOTE: You have to link the files because of a bug in Debian libcrypto++ package


How to get crypto++ working on Debian Sarge/Testing (from Debian sources):

Get libcrypto++ sources from sid

Add this line to /etc/apt/sources.list:

deb-src http://ftp.yourcountrytld.debian.org/debian/ sid main non-free contrib

and run

apt-get update
apt-get source -b libcrypto++

or

apt-get source libcrypto++, cd libcrypto++-5.1, dpkg-buildpackage -b -B -uc

After installing (dpkg -i libcrypto++5.1.deb), make a symbolic link in /usr/include/crypto++ from cryptopp_config.h to config.h in the same directory:

ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h

NOTE: you have to link the files because of a bug in Debian libcrypto++ package


Self-compiling Crypto++

You could compile libcrypto yourself too. Take a look at our compilation howto.

Hasty installation

Please note that this installation method has the disadvantage that the crypto++ packages wont be updated automatically along with the rest of your system!

  • Download the crypto++ package that matches your arch here.
  • If you want to compile amule yourself, download the crypto++-dev package that matches your arch here.
  • use the command "dpkg -i <filename>" on the downloaded files as root and you're done.