Willkommen im kivitendo Forum! Hier erweitern und teilen AnwenderInnen und EntwicklerInnen ihr Wissen.

Teste kivitendo!

kivitendo Demo

kivitendo Demo mit Schweizer Kontenplan und neuem Layout

Unterstützt kivitendo mit der Basis-Subskription!

0 Punkte

Hi,

Kivitendo 3.2.1 unter Debian; mit folgendem in der Konsole versucht zu installieren # cpan -f HTML::Restrict

Bekomme darauf folgende Meldung:

Test Summary Report
-------------------
t/00-load.t              (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/attribute_constraints.t (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/comments.t             (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/declaration.t          (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/js.t                   (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/lowercase.t            (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/memory-leak.t          (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/replace_img.t          (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/scheme.t               (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/stack.t                (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/style.t                (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/xss.t                  (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=14, Tests=0,  1 wallclock secs ( 0.14 usr  0.08 sys +  0.64 cusr  0.12 csys =  0.98 CPU)
Result: FAIL
Failed 12/14 test programs. 0/0 subtests failed.
  OALDERS/HTML-Restrict-2.2.2.tar.gz
7 dependencies missing (namespace::clean,Type::Tiny,Moo,Data::Dump,Test::Fatal,Types::Standard,Sub::Quote); additionally test harness failed
  ./Build test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports OALDERS/HTML-Restrict-2.2.2.tar.gz
Running Build install
Building HTML-Restrict
Installing /usr/local/share/perl/5.14.2/HTML/Restrict.pm
Installing /usr/local/man/man3/HTML::Restrict.3pm
  OALDERS/HTML-Restrict-2.2.2.tar.gz
  ./Build install  -- OK

Und bei der script Abfrage

$ scripts/installation_check.pl

Checking Required Modules:
Looking for parent ....................................................... 0.225
Looking for Archive::Zip 1.16 ............................................. 1.30
Looking for CGI 3.43 ...................................................... 3.52
Looking for Clone ......................................................... 0.31
Looking for Config::Std .................................................... 0.9
Looking for DateTime ...................................................... 0.75
Looking for DateTime::Format::Strptime .................................. 1.5000
Looking for DBI 1.50 ..................................................... 1.622
Looking for DBD::Pg 1.49 ................................................ 2.19.2
Looking for Email::Address ............................................... 1.895
Looking for Email::MIME .................................................. 1.910
Looking for FCGI 0.72 ..................................................... 0.74
Looking for File::Copy::Recursive ......................................... 0.38
Looking for GD ............................................................ 2.46
Looking for HTML::Parser .................................................. 3.69
Looking for HTML::Restrict .............................................. NOT ok
Looking for Image::Info ................................................... 1.28
Looking for JSON .......................................................... 2.53
Looking for List::MoreUtils 0.21 .......................................... 0.33
Looking for List::UtilsBy ................................................. 0.09
Looking for Params::Validate .............................................. 1.06
Looking for PDF::API2 2.000 .............................................. 2.019
Looking for Rose::Object ................................................. 0.859
Looking for Rose::DB ..................................................... 0.769
Looking for Rose::DB::Object 0.788 ....................................... 0.798
Looking for String::ShellQuote 1.01 ....................................... 1.03
Looking for Sort::Naturally ............................................... 1.02
Looking for Test::Harness 3.00 ............................................ 3.23
Looking for Template 2.18 ................................................. 2.24
Looking for Text::CSV_XS 0.23 ............................................. 0.90
Looking for Text::Iconv 1.2 ................................................ 1.7
Looking for URI 1.35 ...................................................... 1.60
Looking for XML::Writer 0.602 ............................................ 0.615
Looking for YAML 0.62 ..................................................... 1.14

Result:
All ..................................................................... NOT ok

HEY! It seems there are modules MISSING! Look for the red lines with "NOT ok"
above. You'll want to fix those, I've enabled --install-command for you...

Here are some sample installation lines, choose one appropriate for your system:

CPAN:
  sudo cpan HTML::Restrict

Wie bekomme ich einen grünen Status bei HTML::Restrict?

von (2.7k Punkte)

2 Antworten

0 Punkte

cpan -f HTML::Restrict

-f steht fuer force, also mache obwohl Abhaengigkeiten nicht erfuellt sind. Ich wuerde Dir raten von -f die Finger grundsaeztlich wegzulassen.

Installiere ohne -f und lies die Fehlermeldungen, wenn Dein System die Abhaengigkeiten nicht aufloesen kann.

Denke daran dass Du als root installieren solltest.

von (18.0k Punkte)

Ok, werde ich beherzigen, danke.

Anbei folgendes verucht;

# cpan HTML::Restrict
Going to read '/root/.cpan/Metadata'
  Database was generated on Sun, 05 Jul 2015 09:29:02 GMT
HTML::Restrict is up to date (2.2.2).

Resultat:

# scripts/installation_check.pl

Checking Required Modules:
Looking for parent ....................................................... 0.225
Looking for Archive::Zip 1.16 ............................................. 1.30
Looking for CGI 3.43 ...................................................... 3.52
Looking for Clone ......................................................... 0.31
Looking for Config::Std .................................................... 0.9
Looking for DateTime ...................................................... 0.75
Looking for DateTime::Format::Strptime .................................. 1.5000
Looking for DBI 1.50 ..................................................... 1.622
Looking for DBD::Pg 1.49 ................................................ 2.19.2
Looking for Email::Address ............................................... 1.895
Looking for Email::MIME .................................................. 1.910
Looking for FCGI 0.72 ..................................................... 0.74
Looking for File::Copy::Recursive ......................................... 0.38
Looking for GD ............................................................ 2.46
Looking for HTML::Parser .................................................. 3.69
Looking for HTML::Restrict .............................................. NOT ok
Looking for Image::Info ................................................... 1.28
Looking for JSON .......................................................... 2.53
Looking for List::MoreUtils 0.21 .......................................... 0.33
Looking for List::UtilsBy ................................................. 0.09
Looking for Params::Validate .............................................. 1.06
Looking for PDF::API2 2.000 .............................................. 2.019
Looking for Rose::Object ................................................. 0.859
Looking for Rose::DB ..................................................... 0.769
Looking for Rose::DB::Object 0.788 ....................................... 0.798
Looking for String::ShellQuote 1.01 ....................................... 1.03
Looking for Sort::Naturally ............................................... 1.02
Looking for Test::Harness 3.00 ............................................ 3.23
Looking for Template 2.18 ................................................. 2.24
Looking for Text::CSV_XS 0.23 ............................................. 0.90
Looking for Text::Iconv 1.2 ................................................ 1.7
Looking for URI 1.35 ...................................................... 1.60
Looking for XML::Writer 0.602 ............................................ 0.615
Looking for YAML 0.62 ..................................................... 1.14

Result:
All ..................................................................... NOT ok

HEY! It seems there are modules MISSING! Look for the red lines with "NOT ok"
above. You'll want to fix those, I've enabled --install-command for you...

Here are some sample installation lines, choose one appropriate for your system:

CPAN:
  sudo cpan HTML::Restrict

vermute da stimmt mit dem Enviroment was nicht

Was passiert wenn Du als Root

 perl -e 'use HTML::Restrict'

aufrufst?

Was passiert, wenn Du das gleiche als normaler User tust?

als su;

# perl -e 'use HTML::Restrict'
Can't locate Data/Dump.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/local/share/perl/5.14.2/HTML/Restrict.pm line 7.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.14.2/HTML/Restrict.pm line 7.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

als user;

$ perl -e 'use HTML::Restrict'
Can't locate Data/Dump.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/local/share/perl/5.14.2/HTML/Restrict.pm line 7.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.14.2/HTML/Restrict.pm line 7.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
0 Punkte

Wie Wulf schon geschrieben hat sollte man mit cpan force vorsichtig sein. Man kann Glück haben und es klappt, aber wenn nicht, ist wahrscheinlich anschließend mehr kaputt als vorher.

Was bei Ubuntu hilft, ist vor der Installation von HTML::Restrict noch ein Paket einzuspielen:

apt-get install build-essential
cpan HTML::Restrict

Siehe auch hier: http://redmine.kivitendo-premium.de/projects/forum/wiki/Installation_Ubuntu_1404_2_LTS
Keine Ahnung, ob das unter Debian auch klappt.

von (16.8k Punkte)

Keine Ahnung, ob das unter Debian auch klappt.

ja das klappt natuerlich. Die Build-Umgebung muss ja auch da sein. Mich irritiert

> HTML::Restrict is up to date (2.2.2).

mir ist unklar, ob sich das einfach nur auf den Build bezieht und da der Install fehlt, oder was da los ist.

Ich denke hier braucht es eine Make Clean. In diesem Fall wuerde ich einfach mal empfehlen /root/.cpan zu loeschen.
Dann muss

cpan HTML:Restrict

sauber durchlaufen. @turtle wenn nein, mal versuchen die Fehlermeldungen zu lesen.

zuerst möchte ich mich für Euer Engagement bedanken.

Das 'build-essential' habe ich installiert, danach :

# cpan HTML::Restrict
Going to read '/root/.cpan/Metadata'
  Database was generated on Sun, 05 Jul 2015 09:29:02 GMT
Fetching with LWP:
http://mirror.23media.de/cpan/authors/01mailrc.txt.gz
Going to read '/root/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with LWP:
http://mirror.23media.de/cpan/modules/02packages.details.txt.gz
Going to read '/root/.cpan/sources/modules/02packages.details.txt.gz'
  Database was generated on Wed, 08 Jul 2015 15:53:24 GMT
..............
  New CPAN.pm version (v2.10) available.
  [Currently running version is v1.960001]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.


..............................................................DONE
Fetching with LWP:
http://mirror.23media.de/cpan/modules/03modlist.data.gz
Going to read '/root/.cpan/sources/modules/03modlist.data.gz'
DONE
Going to write /root/.cpan/Metadata
HTML::Restrict is up to date (2.2.2).

Leider selbiges Ergebnis:

# scripts/installation_check.pl
Looking for HTML::Restrict .............................................. NOT ok

Leider selbiges Ergebnis:

hast ja auch nicht das .cpan verzeichnis in root geloescht

nee habe das .cpan (root Verzeichnis) noch nicht gelöscht, traue mich nicht, bestimmt funktioniert dann meine vorhergehende Kivitendo-Version nicht mehr. Werde am Weekend Sicherungen anlegen.

Doofe Frage kann es sein das Kivitendo 3.2.x ohne HTML::Restrict eine Browser 500ter Meldung auswirft?

Hi Leute, ja es ist schon lange her, heute versuchte ich es mit der Kivitendov3.3.0 Version und mit neuem Mut.
Habe das Verzeichnis '/root/.cpan' verschoben / gelöscht und es nochmals versucht siehe:

cpan HTML::Restrict

CPAN.pm requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.

Would you like to configure as much as possible automatically? [yes]

Autoconfigured everything but 'urllist'.

Now you need to choose your CPAN mirror sites.  You can let me
pick mirrors for you, you can select them from a list or you
can enter them by hand.

Would you like me to automatically choose some CPAN mirror
sites for you? (This means connecting to the Internet) [yes]
Trying to fetch a mirror list from the Internet
Fetching with LWP:
http://www.perl.org/CPAN/MIRRORED.BY

Looking for CPAN mirrors near you (please be patient)
.......................... done!

New urllist
  http://mirrors.coreix.net/CPAN/
  http://ftp.u-tx.net/CPAN/
  http://cpan.uib.no/

Autoconfiguration complete.

commit: wrote '/root/.cpan/CPAN/MyConfig.pm'

You can re-run configuration any time with 'o conf init' in the CPAN shell
Fetching with LWP:
http://mirrors.coreix.net/CPAN/authors/01mailrc.txt.gz
Going to read '/root/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with LWP:
http://mirrors.coreix.net/CPAN/modules/02packages.details.txt.gz
Going to read '/root/.cpan/sources/modules/02packages.details.txt.gz'
  Database was generated on Wed, 25 Nov 2015 23:17:02 GMT
..............
  New CPAN.pm version (v2.10) available.
  [Currently running version is v1.960001]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.


..............................................................DONE
Fetching with LWP:
http://mirrors.coreix.net/CPAN/modules/03modlist.data.gz
Going to read '/root/.cpan/sources/modules/03modlist.data.gz'
DONE
Going to write /root/.cpan/Metadata
HTML::Restrict is up to date (2.2.2).

Leider selbiges Ergebnis wie zuvor.

Looking for HTML::Restrict .............................................. NOT ok

und nochmal, habe es gelöst:

scripts/installation_check.pl

Checking Required Modules:
Looking for parent ....................................................... 0.225
Looking for Archive::Zip 1.16 ............................................. 1.30
Looking for CGI 3.43 ...................................................... 3.52
Looking for Clone ......................................................... 0.31
Looking for Config::Std .................................................... 0.9
Looking for DateTime ...................................................... 0.75
Looking for DateTime::Format::Strptime .................................. 1.5000
Looking for DBI 1.50 ..................................................... 1.622
Looking for DBD::Pg 1.49 ................................................ 2.19.2
Looking for Email::Address ............................................... 1.895
Looking for Email::MIME .................................................. 1.910
Looking for FCGI 0.72 ..................................................... 0.74
Looking for File::Copy::Recursive ......................................... 0.38
Looking for GD ............................................................ 2.46
Looking for HTML::Parser .................................................. 3.69
Looking for HTML::Restrict ............................................... 2.2.2
Looking for Image::Info ................................................... 1.38
Looking for JSON .......................................................... 2.53
Looking for List::MoreUtils 0.21 .......................................... 0.33
Looking for List::UtilsBy ................................................. 0.09
Looking for Params::Validate .............................................. 1.06
Looking for PDF::API2 2.000 .............................................. 2.019
Looking for Rose::Object ................................................. 0.859
Looking for Rose::DB ..................................................... 0.769
Looking for Rose::DB::Object 0.788 ....................................... 0.798
Looking for String::ShellQuote 1.01 ....................................... 1.03
Looking for Sort::Naturally ............................................... 1.02
Looking for Test::Harness 3.00 ............................................ 3.23
Looking for Template 2.18 ................................................. 2.24
Looking for Text::CSV_XS 0.23 ............................................. 0.90
Looking for Text::Iconv 1.2 ................................................ 1.7
Looking for URI 1.35 ...................................................... 1.60
Looking for XML::Writer 0.602 ............................................ 0.615
Looking for YAML 0.62 ..................................................... 1.14

Result:
All ......................................................................... OK

Meine Lösung via cpan folgende Module installieren:

Data::Dump
Moo
Sub::Quote
Test::Fatal
Type::Tiny
Types::Standard
namespace::clean

Es scheint irgendwie in Abhängigkeit mit HTML::Restrict, zu stehen

Ähnliche Fragen

0 Punkte
1 Antwort
Gefragt 8, Jan 2018 von Anonym
0 Punkte
1 Antwort
0 Punkte
1 Antwort
Gefragt 22, Jul 2023 von hul (680 Punkte)
0 Punkte
1 Antwort
Gefragt 19, Jul 2023 von hul (680 Punkte)
...