Schrift
[thread]6266[/thread]

config Datei einlesen (Seite 2)

Leser: 6


<< |< 1 2 >| >> 17 Einträge, 2 Seiten
renee
 2006-11-09 16:32
#82490 #82490
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Ein Anleitung wie man Wiki:Module installiert
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/
Duff
 2006-11-09 17:16
#82491 #82491
User since
2006-10-06
283 Artikel
BenutzerIn

user image
renee hat folgendes geschrieben:
Dafür gibt's Config::IniHash : http://jenda.krynicky.cz/perl/Config-IniHash.pm.html

Der Link scheint nicht zu stimmen, existiert nicht.

Hört sich nämich interessant an deine Lösung.
D'OH
Daniel
renee
 2006-11-09 17:47
#82492 #82492
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Guckst Du CPAN:Config::IniHash...
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/
Kalmuecke
 2006-11-10 10:59
#82493 #82493
User since
2006-10-14
68 Artikel
BenutzerIn
[default_avatar]
Leider hilft mir die Seite nicht wirklich weiter!
ich muss die Module offline installieren, das schon einmal vorweg!
aber ich habe noch fragen dazu!
benutze active perl 5.8.x!
wohin muss ich die *.gz-Archive hinkopieren und wo muss ich sie entpacken???
wenn ich den ordner irgendwohin kopiere und entpacke und dann folgendes eintippe:
Quote
perl makefile.pl
=> schein zu gehen!!!
Quote
Checking if your kit is complete...
Looks good
Warning: prerequisite Hash::Case 0 not found.
Warning: prerequisite Hash::WithDefaults 0.04 not found.
Writing Makefile for Config::IniHash


danach soll ich make, make test und make install eingeben!
dann erscheint immer die Meldung:
Quote
make: *** No rule to make target `C:\Perl\libConfig.pm', needed by `makefile'. Stop.


was bitte mache ich falsch? bzw. was muss ich genau mit dem heruntergeladenen archiv tun???

danke im voraus!
bloonix
 2006-11-10 11:24
#82494 #82494
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
Hallo Alexander,

erstellt du die Konfigurationsdatei selber? Wenn dem so ist und du tiefere
Hashstrukuren bilden möchtest, dann empfielt sich XML-Style. Die Datei
lässt sich mit CPAN:XML::Simple einlesen. Schau dir mal dieses Beispiel
an, vielleicht ist das was für dich.

Gruss,
opi
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.
renee
 2006-11-10 11:41
#82495 #82495
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
@Kalmuecke: Da Du ActivePerl hast, machst Du es am besten über ppm:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
C:\community>ppm

PPM - Programmer's Package Manager version 3.4.
Copyright (c) 2001 ActiveState Software Inc. All Rights Reserved.

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

Type 'help' to get started.

ppm> s Config-IniHash
Searching in Active Repositories
1. Config-IniHash [2.8] Config-IniHash
ppm> i 1



Allerdings musst Du am Anfang der ppm-Session noch ein
Code: (dl )
rep add theoryx5 http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer58
machen...
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/
pq
 2006-11-10 13:08
#82496 #82496
User since
2003-08-04
12209 Artikel
Admin1
[Homepage]
user image
[quote=Kalmuecke,10.11.2006, 09:59]
Quote
Checking if your kit is complete...
Looks good
Warning: prerequisite Hash::Case 0 not found.
Warning: prerequisite Hash::WithDefaults 0.04 not found.
Writing Makefile for Config::IniHash
[/quote]
zuerst einmal sagt dir die meldung, dass dir 2 module fehlen.
leo sagt zu prerequisite: "Voraussetzung"
http://dict.leo.org/ende?lp....link=on
diese solltest du noch installieren.

einfach tar.gz ins temp-verzeichnis packen und das übliche
perl Makefile.PL; make; make test; make install
eingeben.

wenn bei dir trotzdem diese merkwürdige make-fehlermeldung kommt,
dann ist irgendwas anderes kaputt. kenne mich mit windows nicht so aus.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem
<< |< 1 2 >| >> 17 Einträge, 2 Seiten



View all threads created 2004-05-17 20:00.