Schrift
[thread]3642[/thread]

JDBC verbindung zur DB oeffnen (Seite 2)

Leser: 1


<< |< 1 2 3 4 >| >> 35 Einträge, 4 Seiten
roli
 2005-11-30 15:41
#33806 #33806
User since
2004-12-31
424 Artikel
BenutzerIn
[default_avatar]
Hi,

ich benutze:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
C:\Perl\bin>perl -v

This is perl, v5.8.7 built for MSWin32-x86-multi-thread
(with 7 registered patches, see perl -V for more detail)

Copyright 1987-2005, Larry Wall

Binary build 813 [148120] provided by ActiveState http://www.ActiveState.com
ActiveState is a division of Sophos.
Built Jun 6 2005 13:36:37

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.


Also Perl 5.8. Wie bekomme ich JDBC denn aus dem CPAN in mein Perl?

Roland
Roland
--
"Steh vorn, während du fragst;
sitzen soll, wer antwortet."
Aus "Die Edda des Snorri Sturluson" "Gylfis Täuschung" Strophe 2
esskar
 2005-11-30 15:46
#33807 #33807
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
@roli: wenn du es so machst, wie oben beschrieben, sollte es gehen... ich hab perl 5.8.6 für windows von ActiveState... damit geht es ... hast du schon versucht, dass repository zu deinen repositories hinzuzufügen ?
GwenDragon
 2005-11-30 15:48
#33808 #33808
User since
2005-01-17
14848 Artikel
Admin1
[Homepage]
user image
roli
 2005-11-30 16:02
#33809 #33809
User since
2004-12-31
424 Artikel
BenutzerIn
[default_avatar]
[quote=esskar,30.11.2005, 14:46]@roli: wenn du es so machst, wie oben beschrieben, sollte es gehen... ich hab perl 5.8.6 für windows von ActiveState... damit geht es ... hast du schon versucht, dass repository zu deinen repositories hinzuzufügen ?[/quote]
@esskar

leider mache ich wohl was falsch:
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
C:\Perl\bin>ppm
PPM - Programmer's Package Manager version 3.2.
Copyright (c) 2001 ActiveState Corp. All Rights Reserved.
ActiveState is a division of Sophos.

Entering interactive shell. Using Term::ReadLine::Perl as readline library.

Type 'help' to get started.

ppm> rep add http://ppm.ActiveState.com/PPM/ppmserver.plex?urn:/PPM/Server/SQL http://ppm.ActiveState.com/PPM/p
plex?urn:/PPM/Server/SQL
Repositories:
[1] ActiveState PPM2 Repository
[2] ActiveState Package Repository
[3] http://ppm.ActiveState.com/PPM/ppmserver.plex?urn:/PPM/Server/SQL
[4] http://ppm.ActiveState.com/PPM/ppmserver.plex?urn:/PPM/Server/SQL
[5] http://ppm.ActiveState.com/PPM/ppmserver.plex?urn:/PPM/Server/SQL
ppm> 5
Unknown command '5'; type 'help' for a list of commands.
ppm> s JDBC
Searching in Active Repositories
1. DBD-JDBC [0.64] JDBC proxy driver for the DBI module
2. DBD-JDBC [0.64] JDBC proxy driver for the DBI module
3. DBD-JDBC [0.64] JDBC proxy driver for the DBI module
ppm> install DBD-JDBC
Error: no suitable installation target found for package DBD-JDBC.
ppm>


Wie du sieh'st geht's so nicht.

Roland
Roland
--
"Steh vorn, während du fragst;
sitzen soll, wer antwortet."
Aus "Die Edda des Snorri Sturluson" "Gylfis Täuschung" Strophe 2
GwenDragon
 2005-11-30 16:29
#33810 #33810
User since
2005-01-17
14848 Artikel
Admin1
[Homepage]
user image
[quote=GwenDragon,30.11.2005, 14:04]Benutzt du etwa Perl 5.8?

Da gibt es bei ActiveState kein DBD::JDBC über PPM.[/quote]
Wie ich schon schrieb!

1. Hole dir von CPAN das Modul DBD-JDBC und Convert-BER
http://search.cpan.org/search?mode=all&query=DBD-JDBC
http://search.cpan.org/search?mode=all&query=Convert-BER

2. Hole dir nmake 1.5
3. Entpacke die CPAN-Module in ein Verzeichnis deiner Wahl
4. Gehe in jedes Verzeichnis
4.1 perl Makefile.pl
4.2 nmake
4.3 nmake test
4.4 nmake install
5. Schau dir die README Dateien zu den Modulen an!\n\n

<!--EDIT|GwenDragon|1133361957-->
esskar
 2005-11-30 16:39
#33811 #33811
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
Convert-BER gibt es als PPM.
den Rest machst du wie GwenDragon gesagt hat.
hab es grad mal getestet, geht:

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
C:\Documents and Settings\sak\My Documents\My Downloads\DBD-JDBC-0.68>Makefile.PL
*** Warning: whitespace characters in the current directory path (C:/Documents and Settings/sak/My Documents/My Downloads/DBD-JDBC-0.68) may cause problems

Using DBI 1.48 (for perl 5.008006 on MSWin32-x86-multi-thread) installed in C:/Perl/site/lib/auto/DBI/
Writing Makefile for DBD::JDBC

C:\Documents and Settings\sak\My Documents\My Downloads\DBD-JDBC-0.68>nmake

Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

cp JDBC.pod blib\lib\DBD\JDBC.pod
cp JDBC.pm blib\lib\DBD\JDBC.pm
cp lib/Bundle/DBD/JDBC.pm blib\lib\Bundle\DBD\JDBC.pm

C:\Documents and Settings\sak\My Documents\My Downloads\DBD-JDBC-0.68>nmake test

Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

set CLASSPATH=dbd_jdbc.jar;t/hsqldb/hsqldb-1.8.0.2.jar;t/hsqldb/log4j-1.2.11.jar;
C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t\01_env.t t\02_connect.t t\03_hsqldb.t t\basis.t t\oracle.t
t\01_env........ok
t\02_connect....ok
t\03_hsqldb.....ok
t\basis.........skipped
all skipped: No BASIS URL defined
t\oracle........skipped
all skipped: Oracle URL not defined
All tests successful, 2 tests skipped.
Files=5, Tests=18, 9 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU)

C:\Documents and Settings\sak\My Documents\My Downloads\DBD-JDBC-0.68>nmake install

Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

Installing C:\Perl\site\lib\Bundle\DBD\JDBC.pm
Installing C:\Perl\site\lib\DBD\JDBC.pm
Installing C:\Perl\site\lib\DBD\JDBC.pod
Appending installation info to C:\Perl\lib/perllocal.pod

C:\Documents and Settings\sak\My Documents\My Downloads\DBD-JDBC-0.68>
roli
 2005-11-30 16:52
#33812 #33812
User since
2004-12-31
424 Artikel
BenutzerIn
[default_avatar]
Danke Ihr 2,

jetzt ist's installiert. Prima, ich hoffe das jetzt erstmal alle Unklarheiten beseitigt sind.
Nur uu meinem Verstaendnis, wenn ich mittels perl -MCPAN -e shell ein Modul instllieren will, werde ich bei'm ersten AUfruf nach allem moeglichen gefragt, u.a. auch nach der "CPAN site", welche URL muss ich da angeben, dazu habe ich (noch) nichts gefunden?

Schon mal vielen !!! Dank

Roland
Roland
--
"Steh vorn, während du fragst;
sitzen soll, wer antwortet."
Aus "Die Edda des Snorri Sturluson" "Gylfis Täuschung" Strophe 2
esskar
 2005-11-30 16:59
#33813 #33813
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
da stehen doch ein paar zur Auswahl, oder?

aber mach' dir nix draus... ich hab es noch nie geschafft, unter Win32 die cpan-shell erfolgreich zu benutzen!
roli
 2005-11-30 17:36
#33814 #33814
User since
2004-12-31
424 Artikel
BenutzerIn
[default_avatar]
Hi esskar,

>da stehen doch ein paar zur Auswahl, oder?
Noe, aber er hat gemeckert, das er u. a. eine Datei ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY nicht herunterladen konnte.
>aber mach' dir nix draus... ich hab es noch nie geschafft, unter
>Win32 die cpan-shell erfolgreich zu benutzen!
Ich habe die Datei mir dann mal im Browser angesehen und mir da zwei drei europaeische Server rausgesucht.
Noch schnell ein tar, gzip und gunzip Tool gezogen UnxUtils, in die Cpan Config.pm eingetragen und es geht.
Ich habe soeben in der cpan shell mittels "i Class::DBI::Oracle" das Modul installiert. Es werden auch alle Abhaengigkeiten aufgeloest.
Bin ich jetzt ein Held :cool: ??

Trotzdem allen vielen Dank, ich denke jetzt geht's (erstmal) alleine

Roland
Roland
--
"Steh vorn, während du fragst;
sitzen soll, wer antwortet."
Aus "Die Edda des Snorri Sturluson" "Gylfis Täuschung" Strophe 2
esskar
 2005-11-30 17:40
#33815 #33815
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
[quote=roli,30.11.2005, 16:36]Bin ich jetzt ein Held  :cool:  ??[/quote]
Könnt' fast schon sein.
<< |< 1 2 3 4 >| >> 35 Einträge, 4 Seiten



View all threads created 2005-11-30 12:39.