Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

I followed this blog post which recommended using RickP's MongoDB fork for Raspberry Pi. I am on Raspbian Wheezy.

The readme is very simple:

sudo apt-get install git-core build-essential scons libpcre++-dev xulrunner-dev libboost-dev libboost-program-options-dev libboost-thread-dev libboost-filesystem-dev
git clone git://github.com/RickP/mongopi.git
cd mongopi
scons
sudo scons --prefix=/opt/mongo install

The last install command gave me the following error after running for nearly 3 hours:

{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
scons: *** [build/linux2/normal/mongo/db/json.o] Error 4
scons: building terminated because of errors.

Running that last command again gave me a different error after less than 15 minutes:

{standard input}:101980: Warning: end of file not at end of a line; newline inserted
{standard input}:102330: Error: unknown pseudo-op: `.'
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
scons: *** [build/linux2/normal/mongo/db/json.o] Error 4
scons: building terminated because of errors.

Edit: I created a swap file a la this post to see if that would help even though I have the 512MB RPi, and got the following error while running scons. I'll try again with scons ... install.

Fatal error: can't create build/linux2/normal/mongo/util/background.o: Permission
denied
src/mongo/util/background.cpp:192:1: fatal error: error writing to -: Broken pipe
compilation terminated.
The bug is not reproducible, so it is likely a hardware or OS problem.
scons: *** [build/linux2/normal/mongo/util/background.o] Error 1
scons: building terminated because of errors.

Does anyone have any ideas of where I should go from here?

Please let me know if I should post any more detail.

Thank you.

share|improve this question

closed as off-topic by goldilocks Mar 7 at 19:51

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be specific to the Raspberry Pi within the scope defined in the help center." – goldilocks
If this question can be reworded to fit the rules in the help center, please edit the question.

    
I've never successfully managed to compile it either, so looking forward to any answers you might get for this question! I did find someone who had the binaries already compiled and available for download but I no longer have the URI to hand, perhaps a google search will help if you want to go with the precompiled binary route. –  David K Jun 20 '13 at 23:36
1  
@DavidK Thank you I will check up on that. I dropped the creator an email on his website I'll report back what I find. –  Matthew Moisen Jun 20 '13 at 23:56
    
@DavidK All we have to do is make a swap file and it works!! raspberrypi.stackexchange.com/questions/4883/… –  Matthew Moisen Jun 22 '13 at 19:05
    
well now! I shall have to try this later :) thanks for pointing me towards this answer! –  David K Jun 22 '13 at 23:10

Browse other questions tagged or ask your own question.