[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Octave & PostgreSQL
From: |
Don Catanzaro |
Subject: |
RE: Octave & PostgreSQL |
Date: |
Mon, 24 May 2010 10:42:43 -0700 (PDT) |
Hi All,
I am a newbie to Octave and wish to pull data from a PostgreSQL database for
analysis.
I am using Octave-3.2.4_i686-pc-mingw32_gcc-4.4.0_setup.exe on Windows
Vista.
After downloading the database package 1.0.4 from
http://octave.sourceforge.net/database/index.html
http://octave.sourceforge.net/database/index.html and installing, I get
errors (see below).
I have a few questions:
1) Can someone point out how to fix this error ? If this is simple it
makes sense for me to fix this bit and move on. The first error does not
indicate where the permission is denied, and I am logged in as admin -
perhaps some sub-folder has read only rights but which one ?
2) If this is a more complicated error I believe there are other ways of
obtaining data from a PostgreSQL from Octave:
2a) Octave database bindings
http://octave-swig.sourceforge.net/octave-db.html
http://octave-swig.sourceforge.net/octave-db.html
2b) pg_lib
http://www.mail-archive.com/address@hidden/msg02008.html
http://www.mail-archive.com/address@hidden/msg02008.html
However, I am not exactly sure how the differences between 1, 2a, or 2b nor
on the ease of install.
Could someone give a newbie a little direction ?
Thanks in advance
----------------- DATABASE PACKAGE INSTALL ERROR -----------------
octave-3.2.4.exe:2> pkg install database-1.0.4.tar.gz
error: Permission denied
error: ignoring octave_execution_exception while preparing to exit
error: Permission denied
error: ignoring octave_execution_exception while preparing to exit
error: Permission denied
error: ignoring octave_execution_exception while preparing to exit
odbc_wrap.cpp: In member function 'void octave_swig_type::install_global()':
odbc_wrap.cpp:1197: error: 'curr_sym_tab' was not declared in this scope
odbc_wrap.cpp:1197: error: 'link_to_global_variable' was not declared in
this
ope
odbc_wrap.cpp:1204: error: 'symbol_record' was not declared in this scope
odbc_wrap.cpp:1204: error: 'sr' was not declared in this scope
odbc_wrap.cpp:1204: error: 'global_sym_tab' was not declared in this scope
odbc_wrap.cpp: In function 'void SWIG_Octave_SetModule(void*,
swig_module_inf
':
odbc_wrap.cpp:2110: error: 'curr_sym_tab' was not declared in this scope
odbc_wrap.cpp:2110: error: 'link_to_global_variable' was not declared in
this
ope
odbc_wrap.cpp: In function 'SQLRETURN SQLGetData(void*, SQLUSMALLINT,
std::st
g*, SQLINTEGER*)':
odbc_wrap.cpp:2429: warning: comparison between signed and unsigned integer
e
essions
odbc_wrap.cpp:2431: warning: comparison between signed and unsigned integer
e
essions
odbc_wrap.cpp: In function 'octave_value_list _wrap_SQLExtendedFetch(const
oc
e_value_list&, int)':
odbc_wrap.cpp:5287: error: 'SQLROWSETSIZE' was not declared in this scope
odbc_wrap.cpp:5287: error: 'arg4' was not declared in this scope
odbc_wrap.cpp:5287: error: expected primary-expression before ')' token
odbc_wrap.cpp:5287: error: expected ';' before numeric constant
odbc_wrap.cpp:5324: error: expected primary-expression before ')' token
odbc_wrap.cpp: In function 'octave_value_list Fodbc(const
octave_value_list&,
t)':
odbc_wrap.cpp:9826: error: 'curr_sym_tab' was not declared in this scope
odbc_wrap.cpp:9826: error: 'link_to_global_variable' was not declared in
this
ope
odbc_wrap.cpp: At global scope:
odbc_wrap.cpp:853: warning: 'void
Swig::swig_register_director(octave_swig_ty
, void*, Swig::Director*)' declared 'static' but never defined
mingw32-g++-4.4.0-dw2: odbc_wrap.o: No such file or directory
make: *** [odbc.oct] Error 1
'make' returned the following error: make: Entering directory
`/tmp/oct-2/dat
se-1.0.4/src'
CXXFLAGS="-D_GLIBCXX_DLL -march=i686 -mtune=generic -O3 -Wall" mkoctfile
-DHA
OCTAVE_32 -v -o odbc.oct -lodbc32 odbc_wrap.cpp
mingw32-g++-4.4.0-dw2 -c -I/usr/local/octmgw32_gcc-4.4.0-dw2/include
-Ic:\Oc
e\3.2.4_gcc-4.4.0\include\octave-3.2.4
-Ic:\Octave\3.2.4_gcc-4.4.0\include\oc
e-3.2.4\octave -Ic:\Octave\3.2.4_gcc-4.4.0\include -mieee-fp -D_GLIBCXX_DLL
rch=i686 -mtune=generic -O3 -Wall -DHAVE_OCTAVE_32 odbc_wrap.cpp -o
odbc_w
.o
mingw32-g++-4.4.0-dw2 -shared -Wl,--export-all-symbols
-Wl,--enable-auto-impo
-Wl,--enable-runtime-pseudo-reloc -shared-libgcc
-Wl,--allow-multiple-definit
-o odbc.oct odbc_wrap.o -lodbc32
-Lc:\Octave\3.2.4_gcc-4.4.0\lib\octave-
.4 -Lc:\Octave\3.2.4_gcc-4.4.0\lib -loctinterp -loctave -lcruft
-shared-libg
-Wl,--allow-multiple-definition -llapack -lblas -lfftw3 -lfftw3f -lreadline
curses -liberty -lhdf5 -lz -lm -lgdi32 -lws2_32 -luser32 -lkernel32
-lgfortr
-lstdc++_s
make: Leaving directory `/tmp/oct-2/database-1.0.4/src'
error: called from `pkg>configure_make' in file
C:\Octave\3.2.4_gcc-4.4.0\sha
octave\3.2.4\m\pkg\pkg.m near line 1253, column 2
error: called from:
error: C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\pkg\pkg.m at line
714
olumn 5
error: C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\pkg\pkg.m at line
287
olumn 7
octave-3.2.4.exe:2>
--------------------------------------------------------------------------
--
View this message in context:
http://octave.1599824.n4.nabble.com/RE-Octave-PostgreSQL-tp2228921p2228921.html
Sent from the Octave - General mailing list archive at Nabble.com.
- RE: Octave & PostgreSQL,
Don Catanzaro <=