comp.lang.ada
 help / color / mirror / Atom feed
* Installation problem in Debian 7: gnatcoll-gpl-2013-src
@ 2013-06-27 20:16 Multiplayer1080
  2013-06-28 11:45 ` Multiplayer1080
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Multiplayer1080 @ 2013-06-27 20:16 UTC (permalink / raw)


Hello, good afternoon! I'm trying to install gnatcoll-gpl-2013-src  in my new laptop with Debian and i get this error:

configure: error: PostgreSQL not found

And postgresql is already installed in the system! I have tried with the following options:

./configure --prefix=/opt/gnatcoll --enable-gpl --with-postgresql="/var/lib/postgresql/9.1" --without-gtk

./configure --prefix=/opt/gnatcoll --enable-gpl --with-postgresql="/usr/lib/postgresql/9.1" --without-gtk

./configure --prefix=/opt/gnatcoll --enable-gpl --with-postgresql="/etc/postgresql/9.1/" --without-gtk

and nothing... The same error.

Anyone can help me?


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Installation problem in Debian 7: gnatcoll-gpl-2013-src
  2013-06-27 20:16 Installation problem in Debian 7: gnatcoll-gpl-2013-src Multiplayer1080
@ 2013-06-28 11:45 ` Multiplayer1080
  2013-06-28 16:33   ` Ludovic Brenta
  2013-06-29  6:26 ` Dirk Heinrichs
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 18+ messages in thread
From: Multiplayer1080 @ 2013-06-28 11:45 UTC (permalink / raw)


I wish to find a Package API Postgresql that include all necessary source to connect to database without install something or make the build in my pc. I have used postgres in Java, and with just add the Jar API i have all necessary to use postgres. Why the libraries (eg. Gnatcoll) are not distributed in packages? any response will be greatly appreciated...

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Installation problem in Debian 7: gnatcoll-gpl-2013-src
  2013-06-28 11:45 ` Multiplayer1080
@ 2013-06-28 16:33   ` Ludovic Brenta
  2013-06-28 16:35     ` Ludovic Brenta
  2013-06-28 19:55     ` Dmitry A. Kazakov
  0 siblings, 2 replies; 18+ messages in thread
From: Ludovic Brenta @ 2013-06-28 16:33 UTC (permalink / raw)


Multiplayer1080 <marlontrujillo1080@gmail.com> writes:
> I wish to find a Package API Postgresql that include all necessary
> source to connect to database without install something or make the
> build in my pc. I have used postgres in Java, and with just add the
> Jar API i have all necessary to use postgres. Why the libraries
> (eg. Gnatcoll) are not distributed in packages? any response will be
> greatly appreciated...

gnatcoll is not yet packaged for Debian, see
http://bugs.debian.org/640532.

In the mean time, you may want to try gnade (GNU Ada Database
Environment) which allows you to use PostgreSQL from Ada through ODBC.
Try this:

aptitude install libgnadeodbc2-dev

and look at /usr/share/ada/adainclude/gnade.gpr and the files under
/usr/share/ada/adainclude/gnade.

Hope this helps

-- 
Ludovic Brenta.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Installation problem in Debian 7: gnatcoll-gpl-2013-src
  2013-06-28 16:33   ` Ludovic Brenta
@ 2013-06-28 16:35     ` Ludovic Brenta
  2013-06-28 17:57       ` Multiplayer1080
  2013-06-28 19:55     ` Dmitry A. Kazakov
  1 sibling, 1 reply; 18+ messages in thread
From: Ludovic Brenta @ 2013-06-28 16:35 UTC (permalink / raw)


Ludovic Brenta <ludovic@ludovic-brenta.org> writes:
> Multiplayer1080 <marlontrujillo1080@gmail.com> writes:
>> I wish to find a Package API Postgresql that include all necessary
>> source to connect to database without install something or make the
>> build in my pc. I have used postgres in Java, and with just add the
>> Jar API i have all necessary to use postgres. Why the libraries
>> (eg. Gnatcoll) are not distributed in packages? any response will be
>> greatly appreciated...
>
> gnatcoll is not yet packaged for Debian, see
> http://bugs.debian.org/640532.
>
> In the mean time, you may want to try gnade (GNU Ada Database
> Environment) which allows you to use PostgreSQL from Ada through ODBC.
> Try this:
>
> aptitude install libgnadeodbc2-dev
>
> and look at /usr/share/ada/adainclude/gnade.gpr and the files under
> /usr/share/ada/adainclude/gnade.
>
> Hope this helps

Oh, I forgot the second possibility: there is a native binding to
PostgreSQL that does not need ODBC:

aptitude install libapq-postgresql3.2.0-dev

and look in /usr/share/ada/adainclude/apq-postgresql.gpr and under
/usr/share/doc/libapq-postgresql3.2.0-dev/examples/.

Hope this helps more.

-- 
Ludovic Brenta.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Installation problem in Debian 7: gnatcoll-gpl-2013-src
  2013-06-28 16:35     ` Ludovic Brenta
@ 2013-06-28 17:57       ` Multiplayer1080
  0 siblings, 0 replies; 18+ messages in thread
From: Multiplayer1080 @ 2013-06-28 17:57 UTC (permalink / raw)


hello. maybe you don't know me, but I've admired your work with debian for a long time . I've worked a while with libapq and  was just great, this time wanted to know how was gnatcoll just for curiousity. I appreciate that the same Ludovic has answered me. Thanks for the debianization!


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Installation problem in Debian 7: gnatcoll-gpl-2013-src
  2013-06-28 16:33   ` Ludovic Brenta
  2013-06-28 16:35     ` Ludovic Brenta
@ 2013-06-28 19:55     ` Dmitry A. Kazakov
  2013-06-30 19:44       ` Multiplayer1080
  2013-06-30 19:44       ` Multiplayer1080
  1 sibling, 2 replies; 18+ messages in thread
From: Dmitry A. Kazakov @ 2013-06-28 19:55 UTC (permalink / raw)


On Fri, 28 Jun 2013 18:33:12 +0200, Ludovic Brenta wrote:

> In the mean time, you may want to try gnade (GNU Ada Database
> Environment) which allows you to use PostgreSQL from Ada through ODBC.
> Try this:
> 
> aptitude install libgnadeodbc2-dev

Likely GNADE ODBC will not work on a 64-bit Debian (as well as on any other
64-bit OS).

GNADE is not maintained and AFAIK it was not updated to capture the changes
MS done to the ODBC API regarding 64-bit hosts. See here for detailed
description:

http://support.microsoft.com/kb/298678/en-us

Actual ODBC bindings (in particular prepackaged for 64-bit Debian) are
here:

http://www.dmitry-kazakov.de/ada/components.htm#ODBC_Bindings

P.S. I wouldn't use native DB bindings even if available.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Installation problem in Debian 7: gnatcoll-gpl-2013-src
  2013-06-27 20:16 Installation problem in Debian 7: gnatcoll-gpl-2013-src Multiplayer1080
  2013-06-28 11:45 ` Multiplayer1080
@ 2013-06-29  6:26 ` Dirk Heinrichs
  2013-06-29  7:04 ` Simon Wright
  2013-06-29  7:54 ` Stephen Leake
  3 siblings, 0 replies; 18+ messages in thread
From: Dirk Heinrichs @ 2013-06-29  6:26 UTC (permalink / raw)


Multiplayer1080 wrote:

> Hello, good afternoon! I'm trying to install gnatcoll-gpl-2013-src  in my
> new laptop with Debian and i get this error:
> 
> configure: error: PostgreSQL not found

You'd probably need to "apt-get install libpq-dev".

HTH...

	Dirk
-- 
Dirk Heinrichs <dirk.heinrichs@altum.de>
Tel: +49 (0)2471 209385 | Mobil: +49 (0)176 34473913
GPG Public Key C2E467BB | Jabber: dirk.heinrichs@altum.de

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Installation problem in Debian 7: gnatcoll-gpl-2013-src
  2013-06-27 20:16 Installation problem in Debian 7: gnatcoll-gpl-2013-src Multiplayer1080
  2013-06-28 11:45 ` Multiplayer1080
  2013-06-29  6:26 ` Dirk Heinrichs
@ 2013-06-29  7:04 ` Simon Wright
  2013-06-29  7:54 ` Stephen Leake
  3 siblings, 0 replies; 18+ messages in thread
From: Simon Wright @ 2013-06-29  7:04 UTC (permalink / raw)


Multiplayer1080 <marlontrujillo1080@gmail.com> writes:

> Hello, good afternoon! I'm trying to install gnatcoll-gpl-2013-src in
> my new laptop with Debian and i get this error:

I just tried the same on Mac OS X, with GCC 4.8.0, and got this:

gprbuild -q -m -j1 -XLIBRARY_TYPE=static -Psrc/gnatcoll_tools
Undefined symbols for architecture x86_64:
  "_version_string", referenced from:
      _gnatvsn__gnat_version_string in libgnatcoll.a(gnatvsn.o)
     (maybe you meant: _gnatvsn__gnat_static_version_string, _opt__tree_version_string , _gnatvsn__gnat_version_string )
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
gprbuild: link of gnatinspect.adb failed

which is because version.o is constructed at build time and is in the
compiler build tree. You'll probably be OK on Debian, because Ludovic
has separated out the critical version-specific parts of the compiler
into libgnatvsn.

I suppose I could not configure the project-related parts of GNATcoll.

The other package that needs similar treatment is ASIS.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Installation problem in Debian 7: gnatcoll-gpl-2013-src
  2013-06-27 20:16 Installation problem in Debian 7: gnatcoll-gpl-2013-src Multiplayer1080
                   ` (2 preceding siblings ...)
  2013-06-29  7:04 ` Simon Wright
@ 2013-06-29  7:54 ` Stephen Leake
  2013-06-30 19:38   ` Multiplayer1080
  3 siblings, 1 reply; 18+ messages in thread
From: Stephen Leake @ 2013-06-29  7:54 UTC (permalink / raw)


Multiplayer1080 <marlontrujillo1080@gmail.com> writes:

> Hello, good afternoon! I'm trying to install gnatcoll-gpl-2013-src in
> my new laptop with Debian and i get this error:
>
> configure: error: PostgreSQL not found
>
> And postgresql is already installed in the system! I have tried with
> the following options:
>
> ./configure --prefix=/opt/gnatcoll --enable-gpl
> --with-postgresql="/var/lib/postgresql/9.1" --without-gtk
>
> ./configure --prefix=/opt/gnatcoll --enable-gpl
> --with-postgresql="/usr/lib/postgresql/9.1" --without-gtk
>
> ./configure --prefix=/opt/gnatcoll --enable-gpl
> --with-postgresql="/etc/postgresql/9.1/" --without-gtk
>
> and nothing... The same error.
>
> Anyone can help me?

Do you have the PostgreSQL devel package installed? That's probably
separate from the PostgreSQL runtime package.

If that's not it, read the config.log to see the exact test that failed;
that may give some hints.

-- 
-- Stephe


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Installation problem in Debian 7: gnatcoll-gpl-2013-src
  2013-06-29  7:54 ` Stephen Leake
@ 2013-06-30 19:38   ` Multiplayer1080
  0 siblings, 0 replies; 18+ messages in thread
From: Multiplayer1080 @ 2013-06-30 19:38 UTC (permalink / raw)


Hello! Stephet thans for your advice! The point is that I've worked with libapq (dev) and it works very well, the program has been working for months without  problems, this time i want to test gnatcoll to see if I used this tool and make my code more "portable" jejej. 

Dimitry, I can ask you a question?? Do you keep these updated packages without help or with friends? Do you do this for a company that sells libraries or passion? I think a very good choice to make my program portable, I'll take a look at their website.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Installation problem in Debian 7: gnatcoll-gpl-2013-src
  2013-06-28 19:55     ` Dmitry A. Kazakov
@ 2013-06-30 19:44       ` Multiplayer1080
  2013-06-30 19:44       ` Multiplayer1080
  1 sibling, 0 replies; 18+ messages in thread
From: Multiplayer1080 @ 2013-06-30 19:44 UTC (permalink / raw)


Hello! Stephet thans for your advice! The point is that I've worked with libapq (dev) and it works very well, the program has been working for months without  problems, this time i want to test gnatcoll to see if I used this tool and make my code more "portable" jejej. 

Dimitry, I can ask you a question?? Do you keep these updated packages without help or with friends? Do you do this for a company that sells libraries or passion? I think that is a very good choice to make my program portable, I'll take a look at your website.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Installation problem in Debian 7: gnatcoll-gpl-2013-src
  2013-06-28 19:55     ` Dmitry A. Kazakov
  2013-06-30 19:44       ` Multiplayer1080
@ 2013-06-30 19:44       ` Multiplayer1080
  2013-07-01  7:24         ` Dmitry A. Kazakov
  1 sibling, 1 reply; 18+ messages in thread
From: Multiplayer1080 @ 2013-06-30 19:44 UTC (permalink / raw)


Hello! Stephet thans for your advice! The point is that I've worked with libapq (dev) and it works very well, the program has been working for months without  problems, this time i want to test gnatcoll to see if I used this tool and make my code more "portable" jejej. 

Dimitry, I can ask you a question?? Do you keep these updated packages without help or with friends? Do you do this for a company that sells libraries or passion? I think that is a very good choice to make my program portable, I'll take a look at your website.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Installation problem in Debian 7: gnatcoll-gpl-2013-src
  2013-06-30 19:44       ` Multiplayer1080
@ 2013-07-01  7:24         ` Dmitry A. Kazakov
  2013-07-02 14:40           ` Multiplayer1080
  0 siblings, 1 reply; 18+ messages in thread
From: Dmitry A. Kazakov @ 2013-07-01  7:24 UTC (permalink / raw)


On Sun, 30 Jun 2013 12:44:38 -0700 (PDT), Multiplayer1080 wrote:

> Dimitry, I can ask you a question?? Do you keep these updated packages
> without help or with friends?

Yes, but proposals, contributions, bug reports are welcome.

Regarding the DB the common approach to use it is IMO flawed. I have got
lengthy discussions on it, but the core issue is this. Ada's approach to
software design is that you say what you want and the language implements
that for you. In short it is high-level and abstract, which makes Ada
software portable, safe, maintainable etc. In the case of DB, people do
just the opposite. They strive to adapt the program to a concrete DBMS and
DB for whatever, usually wrong, reasons. It might be understandable if the
DB were given. But in most cases it is not so.

> Do you do this for a company that sells libraries or passion?

The license is GM GPL, so it is free, more free than pure GPL.

But, yes, the library is used in commercial products.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Installation problem in Debian 7: gnatcoll-gpl-2013-src
  2013-07-01  7:24         ` Dmitry A. Kazakov
@ 2013-07-02 14:40           ` Multiplayer1080
  2013-07-02 15:04             ` Dmitry A. Kazakov
  2013-07-02 15:08             ` Dmitry A. Kazakov
  0 siblings, 2 replies; 18+ messages in thread
From: Multiplayer1080 @ 2013-07-02 14:40 UTC (permalink / raw)


Hi Dmitry A. Kazakov. Good Day. I'm trying to use the SIMPLE COMPONENTS
version 3.22 by Dmitry A. Kazakov. But the compiler throw me the next message:

gnatmake -d -P/home/marlon/workspaceADA/CrossoverTesting/crossover.gpr -Xarch=i686 -Xodbc=ODBC32 -XDevelopment=Debug -XLegacy=Ada2005 -XTasking=Multiple -XTraced_objects=Off
gnatbind -shared -x /home/marlon/workspaceADA/CrossoverTesting/obj/main.ali
gnatlink /home/marlon/workspaceADA/CrossoverTesting/obj/main.ali -shared-libgcc -L/home/marlon/workspaceADA/CrossoverTesting/lib/components_3_22/odbc/ -lodbc32 -Wl,-rpath,/home/marlon/workspaceADA/CrossoverTesting/lib/components_3_22/odbc/:/opt/gnat/lib/gcc/i686-pc-linux-gnu/4.7.4/adalib/ -o /home/marlon/workspaceADA/CrossoverTesting/bin/main
/opt/gnat/bin/../libexec/gcc/i686-pc-linux-gnu/4.7.4/ld: cannot find -lodbc32
collect2: error: ld returned 1 exit status
gnatlink: error when calling /opt/gnat/bin/gcc
gnatmake: *** link failed.

The setup of my project is this: http://www.comelecinca.com/test/Screenshot.png

I'm looking  your website, is very interesting, congratulations!


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Installation problem in Debian 7: gnatcoll-gpl-2013-src
  2013-07-02 14:40           ` Multiplayer1080
@ 2013-07-02 15:04             ` Dmitry A. Kazakov
  2013-07-02 15:08             ` Dmitry A. Kazakov
  1 sibling, 0 replies; 18+ messages in thread
From: Dmitry A. Kazakov @ 2013-07-02 15:04 UTC (permalink / raw)


On Tue, 2 Jul 2013 07:40:12 -0700 (PDT), Multiplayer1080 wrote:

> Hi Dmitry A. Kazakov. Good Day. I'm trying to use the SIMPLE COMPONENTS
> version 3.22 by Dmitry A. Kazakov. But the compiler throw me the next message:

[...]
> /opt/gnat/bin/../libexec/gcc/i686-pc-linux-gnu/4.7.4/ld: cannot find -lodbc32
_______________________________________________________^^^^^
> collect2: error: ld returned 1 exit status
> gnatlink: error when calling /opt/gnat/bin/gcc
> gnatmake: *** link failed.
>
> The setup of my project is this: http://www.comelecinca.com/test/Screenshot.png

odbc32 is the MS ODBC driver manager. Under Linux you should use unixODBC 
instead.

When you install a prepackaged version of Simple Components on Debian or 
Fedora these come with the driver manager is preset to unixODBC.

Since you seem to use sources, you should select the corresponding project 
scenario variable "odbc" in the GPS as "unixODBC". Because the default is 
"ODBC32", which is for Windows.

BTW, the folder ./test_components contains 

   components-odbc-odbc_bindings_tests.gpr

project. It performs extensive tests of both the bindings and the 
capacities of the DBMS and its driver you want to access.

Do not forget to install unix odbc, a driver for your DBMS (e.g. for 
PostgreSQL) and configure it (e.g. set up a datasource etc).

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Installation problem in Debian 7: gnatcoll-gpl-2013-src
  2013-07-02 14:40           ` Multiplayer1080
  2013-07-02 15:04             ` Dmitry A. Kazakov
@ 2013-07-02 15:08             ` Dmitry A. Kazakov
  2013-07-04 20:56               ` Multiplayer1080
  1 sibling, 1 reply; 18+ messages in thread
From: Dmitry A. Kazakov @ 2013-07-02 15:08 UTC (permalink / raw)


On Tue, 2 Jul 2013 07:40:12 -0700 (PDT), Multiplayer1080 wrote:

> The setup of my project is this: http://www.comelecinca.com/test/Screenshot.png

Out of curiosity, if not secret, what do you want to communicate over
ModBus?

[We are doing a lot of ModBus stuff]

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Installation problem in Debian 7: gnatcoll-gpl-2013-src
  2013-07-02 15:08             ` Dmitry A. Kazakov
@ 2013-07-04 20:56               ` Multiplayer1080
  2013-07-05  7:08                 ` Dmitry A. Kazakov
  0 siblings, 1 reply; 18+ messages in thread
From: Multiplayer1080 @ 2013-07-04 20:56 UTC (permalink / raw)


El martes, 2 de julio de 2013 10:38:37 UTC-4:30, Dmitry A. Kazakov  escribió:
> On Tue, 2 Jul 2013 07:40:12 -0700 (PDT), Multiplayer1080 wrote:
> 
> 
> 
> > The setup of my project is this: http://www.comelecinca.com/test/Screenshot.png
> 
> 
> 
> Out of curiosity, if not secret, what do you want to communicate over
> 
> ModBus?
> 
> 
> 
> [We are doing a lot of ModBus stuff]
> 
> 
> 
> -- 
> 
> Regards,
> 
> Dmitry A. Kazakov
> 
> http://www.dmitry-kazakov.de



Of Course! We are using it in a project with gensets. Modbus TCP/IP... What are you doing with modbus?


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Installation problem in Debian 7: gnatcoll-gpl-2013-src
  2013-07-04 20:56               ` Multiplayer1080
@ 2013-07-05  7:08                 ` Dmitry A. Kazakov
  0 siblings, 0 replies; 18+ messages in thread
From: Dmitry A. Kazakov @ 2013-07-05  7:08 UTC (permalink / raw)


On Thu, 4 Jul 2013 13:56:23 -0700 (PDT), Multiplayer1080 wrote:

> What are you doing with modbus?

I/O terminals (e.g. WAGO, Beckhoff, Phoenix), electricity meters, SPS.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2013-07-05  7:08 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-27 20:16 Installation problem in Debian 7: gnatcoll-gpl-2013-src Multiplayer1080
2013-06-28 11:45 ` Multiplayer1080
2013-06-28 16:33   ` Ludovic Brenta
2013-06-28 16:35     ` Ludovic Brenta
2013-06-28 17:57       ` Multiplayer1080
2013-06-28 19:55     ` Dmitry A. Kazakov
2013-06-30 19:44       ` Multiplayer1080
2013-06-30 19:44       ` Multiplayer1080
2013-07-01  7:24         ` Dmitry A. Kazakov
2013-07-02 14:40           ` Multiplayer1080
2013-07-02 15:04             ` Dmitry A. Kazakov
2013-07-02 15:08             ` Dmitry A. Kazakov
2013-07-04 20:56               ` Multiplayer1080
2013-07-05  7:08                 ` Dmitry A. Kazakov
2013-06-29  6:26 ` Dirk Heinrichs
2013-06-29  7:04 ` Simon Wright
2013-06-29  7:54 ` Stephen Leake
2013-06-30 19:38   ` Multiplayer1080

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox