AnsweredAssumed Answered

DataBase on i.MX28

Question asked by Alexandr Glukhov on Oct 17, 2014
Latest reply on Oct 22, 2014 by Alexandr Glukhov

Hello, I have a question about databases. I need to install PostgreSQL on i.MX28, in which application will write data. I download postgresql-9.3.5.tar.bz2 from postgresql.org, install it in rootfs directory of LTIB. Then I create new database, and write into it three rows. Then I wrote SD card and launch i.mx. But when I try to launch any of scripts of pgsql, I get only errors.

root@freescale /pgsql/bin$ ./psql

./psql: line 1: syntax error: unexpected "("

root@freescale /pgsql/bin$ ./postgres

./postgres: line 1: syntax error: unexpected "("

And application can't connect to db too.

I tried to connect to db from application on windows, everything ok.

So, how can I start the PostgreSQL server on i.mx? Or there is something wrong?

And I also create a new user Admin to launch postgresql (because it is impossible to launch it under root), so should I create another user on i.mx?

Maybe there is another way of installation PostgreSQL on i.mx? With LTIB and .spec?

Thanks in advance.

Outcomes