Schrift
[thread]3484[/thread]

Adabas-DBI-Treiber installieren



<< >> 5 Einträge, 1 Seite
Gast Gast
 2004-07-15 18:14
#32408 #32408
Hallo erstmal,
mir gehts nicht so gut denn ich habe ein Problem mit Perl:DBI und dem Adabas-Treiber. Und zwar habe vesuche ich einfach erst einmal mit diesem Skript auf die Datenbank zuzugreifen:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/local/bin/perl -w

use DBI;

print "Test\n";

my $user = "irgendwer";
my $password = "irgendwas";
my $data_source = "dbi:Adabas:refdb";

$dbh = DBI->connect ( $data_source, $user, $password )
                    or die "Keine Verbindung zur Datenbank moeglich !\n";


$dbh->disconnect;


Und als Ausgabe bekomme ich folgendes:
Quote
Test
install_driver(Adabas) failed: Can't locate loadable object for module Adabas in @INC (@INC contains: /usr/local/lib/perl5/5.8.3/PA-RISC2.0 /usr/local/lib/perl5/5.8.3 /usr/local/lib/perl5/site_perl/5.8.3/PA-RISC2.0 /usr/local/lib/perl5/site_perl/5.8.3 /usr/local/lib/perl5/site_perl .) at (eval 1) line 3
Compilation failed in require at (eval 1) line 3.
Perhaps a module that DBD::Adabas requires hasn't been fully installed
at ./dbi-test1.pl line 15
Use of inherited AUTOLOAD for non-method Adabas::exit() is deprecated at /usr/local/lib/perl5/5.8.3/DBD/Adabas.pm line 44.
Can't locate auto/Adabas/exit.al in @INC (@INC contains: /usr/local/lib/perl5/5.8.3/PA-RISC2.0 /usr/local/lib/perl5/5.8.3 /usr/local/lib/perl5/site_perl/5.8.3/PA-RISC2.0 /usr/local/lib/perl5/site_perl/5.8.3 /usr/local/lib/perl5/site_perl .) at /usr/local/lib/perl5/5.8.3/DBD/Adabas.pm line 44
END failed--call queue aborted.

Im Verzeichnis /usr/local/lib/perl5/5.8.3/DBD/ befindet sich aber ein Adabas.pm

Die Datei odbc.ini habe ich folgendermaßen gefüllt:
Quote
[Data Sources]
test

[test]
ServerDB=refdb
ServerNode=

Sollte der letzte Eintrag wirklich leer bleiben oder kommt da die Localhost-IP rein?

Was habe ich vergessen?

Gruss Christian


edit renee: [code]- und [quote]-Tags zur besseren Lesbarkeit eingefügt\n\n

<!--EDIT|renee|1089902460-->
renee
 2004-07-15 18:44
#32409 #32409
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Hast Du Dich beim Installieren an das README von CPAN:DBD::Adabas ( http://search.cpan.org/src/JWIED/DBD-Adabas-0.2003/README ) gehalten??
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/
Freiburger
 2004-07-16 13:53
#32410 #32410
User since
2004-07-16
4 Artikel
BenutzerIn
[default_avatar]
Ja sicher, deswegen habe ich ja die odbc.ini mit angegeben!

Gruss Christian
renee
 2004-07-16 14:34
#32411 #32411
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Die Fehlermeldung sieht so aus, als gäbe es einen Teil, der kompiliert werden muss. Hast Du mal nachgeschaut, ob dabei alles korrekt abgelaufen ist??
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/
Freiburger
 2004-07-19 17:44
#32412 #32412
User since
2004-07-16
4 Artikel
BenutzerIn
[default_avatar]
Tatsächlich ich werde alt. Der Adabas-Treiber war gar nicht richtig installiert!

Beim Versuch dies nachzuholen, bekomme ich diesen Auswurf:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# perl Makefile.PL

Configuring DBD::Adabas ...

>>>     Remember to actually *READ* the README file!
       And re-read it if you have any problems.

Multiple copies of Driver.xst found in: /usr/local/lib/perl5/5.8.3/PA-RISC2.0/auto/DBI /usr/local/lib/perl5/site_perl/5.8.3/PA-RISC2.0/auto/DBI at Makefile.PL line 59
Using DBI 1.40 (for perl 5.008003 on PA-RISC2.0) installed in /usr/local/lib/perl5/5.8.3/PA-RISC2.0/auto/DBI
Using ODBC in /REFDB_HOME/referenz/adabas_d

Umm, this looks like a adabas type of driver manager.

Checking if your kit is complete...
Looks good
Multiple copies of Driver.xst found in: /usr/local/lib/perl5/5.8.3/PA-RISC2.0/auto/DBI /usr/local/lib/perl5/site_perl/5.8.3/PA-RISC2.0/auto/DBI at Makefile.PL line 224
Using DBI 1.40 (for perl 5.008003 on PA-RISC2.0) installed in /usr/local/lib/perl5/5.8.3/PA-RISC2.0/auto/DBI
Writing Makefile for DBD::Adabas

The DBD::Adabas tests will use these values for the database connection:
   DBI_DSN=dbi:Adabas:refdb            e.g. dbi:Adabas:demo
   DBI_USER=irgendwer
   DBI_PASS=irgendwas

# make
cp Adabas.pm blib/lib/DBD/Adabas.pm
       /usr/bin/perl -p -e "s/~DRIVER~/Adabas/g" /usr/local/lib/perl5/5.8.3/PA-RISC2.0/auto/DBI/Driver.xst > Adabas.xsi
       /usr/bin/perl /usr/local/lib/perl5/5.8.3/ExtUtils/xsubpp  -typemap /usr/local/lib/perl5/5.8.3/ExtUtils/typemap  Adabas.xs > Adabas.xsc && mv Adabas.xsc Adabas.c
Warning: duplicate function definition 'data_sources' detected in Adabas.xs, line 114
       /usr/local/bin/gcc -c  -I. -I/usr/local/lib/perl5/5.8.3/PA-RISC2.0/auto/DBI -I/REFDB_HOME/referenz/adabas_d/incl  -D_HPUX_SOURCE -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -O2    -DVERSION=\"0.2003\"  -DXS_VERSION=\"0.2003\" -fPIC "-I/usr/local/lib/perl5/5.8.3/PA-RISC2.0/CORE"   Adabas.c
In file included from dbdodbc.h:9,
                from Adabas.h:9,
                from Adabas.xs:1:
/REFDB_HOME/referenz/adabas_d/incl/WINDOWS.H:105:1: warning: "VOID" redefined
/REFDB_HOME/referenz/adabas_d/incl/WINDOWS.H:27:1: warning: this is the location of the previous definition
       /usr/local/bin/gcc -c  -I. -I/usr/local/lib/perl5/5.8.3/PA-RISC2.0/auto/DBI -I/REFDB_HOME/referenz/adabas_d/incl  -D_HPUX_SOURCE -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -O2    -DVERSION=\"0.2003\"  -DXS_VERSION=\"0.2003\" -fPIC "-I/usr/local/lib/perl5/5.8.3/PA-RISC2.0/CORE"   dbdimp.c
In file included from dbdodbc.h:9,
                from Adabas.h:9,
                from dbdimp.c:12:
/REFDB_HOME/referenz/adabas_d/incl/WINDOWS.H:105:1: warning: "VOID" redefined
/REFDB_HOME/referenz/adabas_d/incl/WINDOWS.H:27:1: warning: this is the location of the previous definition
dbdimp.c: In function `adabas_db_login':
dbdimp.c:104: warning: passing arg 1 of `fprintf' from incompatible pointer typedbdimp.c: In function `adabas_error':
dbdimp.c:273: warning: passing arg 1 of `fprintf' from incompatible pointer typedbdimp.c:299: warning: passing arg 1 of `fprintf' from incompatible pointer typedbdimp.c:304: warning: passing arg 1 of `fprintf' from incompatible pointer typedbdimp.c:331: warning: passing arg 1 of `fprintf' from incompatible pointer typedbdimp.c: In function `dbd_preparse':
dbdimp.c:437: warning: passing arg 1 of `fprintf' from incompatible pointer typedbdimp.c: In function `dbd_st_tables':
dbdimp.c:489: warning: passing arg 1 of `fprintf' from incompatible pointer typedbdimp.c: In function `adabas_st_prepare':
dbdimp.c:560: warning: passing arg 1 of `fprintf' from incompatible pointer typedbdimp.c: In function `adabas_describe':
dbdimp.c:678: warning: passing arg 1 of `fprintf' from incompatible pointer typedbdimp.c:684: warning: passing arg 1 of `fprintf' from incompatible pointer typedbdimp.c:772: warning: passing arg 1 of `fprintf' from incompatible pointer typedbdimp.c:840: warning: passing arg 1 of `fprintf' from incompatible pointer typedbdimp.c: In function `adabas_st_execute':
dbdimp.c:871: warning: passing arg 1 of `fprintf' from incompatible pointer typedbdimp.c: In function `adabas_st_fetch':
dbdimp.c:951: warning: passing arg 1 of `fprintf' from incompatible pointer typedbdimp.c:976: warning: passing arg 1 of `fprintf' from incompatible pointer typedbdimp.c: In function `_dbd_rebind_ph':
dbdimp.c:1136: warning: passing arg 1 of `fprintf' from incompatible pointer type
dbdimp.c:1174: warning: passing arg 1 of `fprintf' from incompatible pointer type
dbdimp.c:1202: warning: passing arg 1 of `fprintf' from incompatible pointer type
dbdimp.c:1246: warning: passing arg 1 of `fprintf' from incompatible pointer type
dbdimp.c: In function `adabas_bind_ph':
dbdimp.c:1319: warning: passing arg 1 of `fprintf' from incompatible pointer type
dbdimp.c: In function `adabas_st_blob_read':
dbdimp.c:1398: warning: passing arg 1 of `fprintf' from incompatible pointer type
dbdimp.c:1424: warning: passing arg 1 of `fprintf' from incompatible pointer type
dbdimp.c: In function `adabas_db_FETCH_attrib':
dbdimp.c:1563: warning: passing arg 1 of `fprintf' from incompatible pointer type
dbdimp.c: In function `adabas_get_info':
dbdimp.c:1798: warning: passing arg 1 of `fprintf' from incompatible pointer type
dbdimp.c: In function `adabas_get_type_info':
dbdimp.c:1871: warning: passing arg 1 of `fprintf' from incompatible pointer type
dbdimp.c: In function `adabas_col_attributes':
dbdimp.c:1951: warning: passing arg 1 of `fprintf' from incompatible pointer type
dbdimp.c:1957: warning: passing arg 1 of `fprintf' from incompatible pointer type
dbdimp.c:1958: warning: passing arg 1 of `fprintf' from incompatible pointer type
dbdimp.c: In function `adabas_db_columns':
dbdimp.c:2038: warning: passing arg 1 of `fprintf' from incompatible pointer type
Running Mkbootstrap for DBD::Adabas ()
       chmod 644 Adabas.bs
       rm -f blib/arch/auto/DBD/Adabas/Adabas.sl
       LD_RUN_PATH="/REFDB_HOME/referenz/adabas_d/lib" /usr/bin/ld  -b -L/usr/local/lib Adabas.o  dbdimp.o  -o blib/arch/auto/DBD/Adabas/Adabas.sl   -L/REFDB_HOME/referenz/adabas_d/lib /REFDB_HOME/referenz/adabas_d/lib/odbclib.a -lsqlrte -lsqlptc
/usr/bin/ld: /REFDB_HOME/referenz/adabas_d/lib/libsqlptc.sl: Not a valid object
file (invalid magic number)
*** Fehlerrückkehrcode 1


Stopp.

Wo hakt es jetzt?

Gruss Christian

Bearbeitet von Crian: CODE-Tag ergänzt\n\n

<!--EDIT|Crian|1090409423-->
<< >> 5 Einträge, 1 Seite



View all threads created 2004-07-15 18:14.