Thread: success with postgresql on beaglebone
Hi all, I managed to compile postgresql on BeagleBone. The only problem I encountered was insufficient memory for compiling grammars by bison (BeagleBone has 256MB RAM). As a workaround, I compiled the same sources on a bigger machine and copied the following files to BeagleBone: postgresql/src/backend/parser/gram.h postgresql/src/backend/parser/gram.c postgresql/src/backend/parser/scan.c postgresql/src/backend/bootstrap/bootparse.c postgresql/src/backend/bootstrap/bootscanner.c postgresql/src/backend/replication/repl_gram.c postgresql/src/backend/replication/repl_scanner.c postgresql/src/backend/utils/misc/guc-file.c postgresql/src/interfaces/ecpg/preproc/preproc.c postgresql/src/interfaces/ecpg/preproc/pgc.c postgresql/src/interfaces/ecpg/preproc/preproc.h postgresql/src/bin/psql/psqlscan.c postgresql/src/pl/plpgsql/src/pl_gram.c postgresql/src/pl/plpgsql/src/pl_gram.h All tests passed. I wonder, does anybody know how to compile the sources without copying the bison generated files? Thank you, Tomas
On 16/08/12 04:05, Tomas Hlavaty wrote: > Hi all, > > I managed to compile postgresql on BeagleBone. [snip] Hi Tomas, If you install Ubuntu, you can just install postgresql with the package management software. $ apt-get install postgresql -Toby
Hi Toby, > If you install Ubuntu, you can just install postgresql with the > package management software. > $ apt-get install postgresql thanks for your reply. I should have mentioned that I was using the Ångström Distribution where postgresql is not provided via package manager. I wonder how did the Ubuntu guys managed to overcome the insufficient memory limitation? Thank you, Tomas
Hi, On 17 August 2012 07:14, Tomas Hlavaty <tom@logand.com> wrote: > thanks for your reply. I should have mentioned that I was using the > Ångström Distribution where postgresql is not provided via package > manager. I wonder how did the Ubuntu guys managed to overcome the > insufficient memory limitation? You don't have to do all that stuff on beaglebone -- you need to setup toolchain and compiler for target architecture. This is usually distribution specific. (check this for your distribution: http://www.angstrom-distribution.org/toolchains/ ) -- Ondrej Ivanic (ondrej.ivanic@gmail.com)
Hi Ondrej, > You don't have to do all that stuff on beaglebone -- you need to setup > toolchain and compiler for target architecture. This is usually > distribution specific. (check this for your distribution: > http://www.angstrom-distribution.org/toolchains/ ) thanks for the pointer, I'll look into it. Tomas