2014-05-08 5 views
1

J'ai besoin de construire mongodb à partir de la source pour obtenir le support SSL.Mongodb build est énorme

j'ai couru l'ensemble de commandes suivantes selon diverses sources que je pouvais trouver:

sudo git clone git://github.com/mongodb/mongo.git 
cd mongo/ 
git checkout r2.6.0 
sudo git checkout r2.6.0 
sudo scons --ssl all 

Cela construit sans problème majeur (même si cela prend un longtemps) mais les fichiers de sortie sont énormes:

-rwxr-xr-x 1 root root 361M May 2 12:28 bsondump 
-rwxr-xr-x 1 root root 148M May 1 15:07 mongo 
-rwxr-xr-x 1 root root 359M May 2 12:54 mongobridge 
-rwxr-xr-x 1 root root 365M May 2 10:30 mongod 
-rwxr-xr-x 1 root root 362M May 2 11:21 mongodump 
-rwxr-xr-x 1 root root 361M May 2 11:40 mongoexport 
-rwxr-xr-x 1 root root 362M May 2 12:21 mongofiles 
-rwxr-xr-x 1 root root 361M May 2 11:48 mongoimport 
-rwxr-xr-x 1 root root 361M May 2 12:13 mongooplog 
-rwxr-xr-x 1 root root 358M May 2 12:35 mongoperf 
-rwxr-xr-x 1 root root 362M May 2 11:30 mongorestore 
-rwxr-xr-x 1 root root 248M May 2 11:07 mongos 
-rwxr-xr-x 1 root root 362M May 2 11:57 mongostat 
-rwxr-xr-x 1 root root 361M May 2 12:04 mongotop 
-rwxr-xr-x 1 root root 361M May 2 12:46 perftest 
-rwxr-xr-x 1 root root 455M May 2 14:54 test 

Est-ce qu'il me manque quelque chose ici?

Répondre

3

La construction brute produit des binaires qui contiennent les symboles de débogage et vous pouvez vous débarrasser d'eux en utilisant la commande de la bande comme ceci:

strip mongod 
+1

Merci! Je savais que ce serait quelque chose de simple comme ça. Et 'scons ... install' fonctionne tout de même. – zelanix