octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #57124] pg_connect is undefined when attemptin


From: richard
Subject: [Octave-bug-tracker] [bug #57124] pg_connect is undefined when attempting to connect to a database
Date: Sun, 27 Oct 2019 18:11:06 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

URL:
  <https://savannah.gnu.org/bugs/?57124>

                 Summary: pg_connect is undefined when attempting to connect
to a database
                 Project: GNU Octave
            Submitted by: r1chard
            Submitted on: Sun 27 Oct 2019 10:11:05 PM UTC
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error
                  Status: None
             Assigned to: None
         Originator Name: r1chard
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 5.1.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I'm running Debian|Buster (Stable)
the installed version of octave is (5.1.0-3).
pkg list is 
Package Name         | Version | Installation directory
---------------------+---------+-----------------------
           database  |   2.4.3 | /home/richard/octave/database-2.4.3
       econometrics  |   1.1.2 |
/usr/share/octave/packages/econometrics-1.1.2
fuzzy-logic-toolkit  |   0.4.5 |
/usr/share/octave/packages/fuzzy-logic-toolkit-0.4.5
            general  |   2.1.0 | /usr/share/octave/packages/general-2.1.0
                 io  |  2.4.12 | /usr/share/octave/packages/io-2.4.12
              optim  |   1.6.0 | /usr/share/octave/packages/optim-1.6.0
           parallel  |   3.1.3 | /usr/share/octave/packages/parallel-3.1.3
         statistics  |   1.4.1 | /usr/share/octave/packages/statistics-1.4.1
             struct  |  1.0.16 | /usr/share/octave/packages/struct-1.0.16

I am running postgresql 11 and various perl programs run ok with that.
libpq5 and libpg-dev are installed  (12.0-1+b1)

I usually run the commandline version of octave : octage --no-gui
and I note that the gui is no longer appearing if I simply type octave

I last ran an octave database application a month ago under octave version
4.4.1. 
Since then, the Debian distribution was upgraded, hence a large number of
programs were updated. 
My application now fails at the line 
  conn = pq_connect (setdbopts ("host", "localhost", "dbname", "euro02",
"user", "richard", "password", "xxxxxxxx"));

the reply is 
error: '__pq_connect__' undefined near line 112 column 10

I suspect that acceptable formats for pg_connect have changed, and pending
advice on what to do, I'll try changing the format
of that line




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57124>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]