Difference between revisions of "CryptoppDebian"

From AMule Project FAQ
Jump to: navigation, search
m (Removed Version Tag)
 
(31 intermediate revisions by 6 users not shown)
Line 1: Line 1:
== How to get crypto++ working on sarge debian ==
+
'''IMPORTANT:''' ''Please be aware that you need to have super-user (root) priviledges to follow this document''
  
== How to get crypto++ working on sarge debian: ==
+
== How to get [[libcrypto|crypto++]] working on [[Debian]] (from deb package): ==
 +
Simply run this two commands
  
Get libcrypto++ sources from '''sid'''
+
''apt-get update''<br>
 +
''apt-get install libcrypto++-dev''
 +
 
 +
== How to get [[Libcrypto|crypto++]] working on [[Debian]] (from [[Debian]] sources): ==
 +
Get [[Libcrypto|libcrypto++]] sources;
  
Add this line to /etc/apt/sources.list:
+
Add this line to ''/etc/apt/sources.list'':
  
''deb-src <nowiki>http://ftp.</nowiki>'''yourcountrytld'''.debian.org/debian/ sid main non-free contrib
+
''deb-src <nowiki>http://ftp.</nowiki>'''yourcountrytld'''.debian.org/debian/ &lt;your-distro&gt; main non-free contrib''
  
 
and run  
 
and run  
Line 16: Line 21:
 
or  
 
or  
  
''apt-get source libcrypto++, cd libcrypto++-5.1, dpkg-buildpackage -b -B -uc''
+
''apt-get source libcrypto++, cd into the created dir, dpkg-buildpackage -b -B -uc''
  
After install (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.
+
After compiling (''dpkg -i libcrypto*.deb'')
  
''ln -s /usr/include/crypto++/cryptopp_config.h /usr/include/crypto++/config.h''
+
== Self-compiling [[Libcrypto|Crypto++]] ==
 +
You could compile [[Libcrypto|libcrypto]] yourself too. Take a look at [[Compilation_Installation|our compilation howto]].
  
NOTE: you have to link the files because of a bug in debian libcrypto package
+
== Hasty installation ==
 +
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!
  
You could compile libcrypto yourself too. Take a look at [[Compilation_Installation|our compilation howto]].
+
* 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].
 +
* Use the command ''dpkg -i <filename>'' on the downloaded files as root, and you're done.

Latest revision as of 10:52, 29 June 2008

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

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

Simply run this two commands

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

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

Get libcrypto++ sources;

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

deb-src http://ftp.yourcountrytld.debian.org/debian/ <your-distro> main non-free contrib

and run

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

or

apt-get source libcrypto++, cd into the created dir, dpkg-buildpackage -b -B -uc

After compiling (dpkg -i libcrypto*.deb)

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.