Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Tricky Perl Problem mit IO::Socket::SSL ?!

Empfohlene Antworten

Veröffentlicht

Hi,

OS: RedHat Linux 9.A

Perl: This is perl, v5.8.0 built for i386-linux-thread-multi

etz muss ich etwas weiter ausholen. Also ich habe eine Internet Seite (https) auf der ich mich automatisch mit Benutzername und Passwort anmelden will. Danach diverse Links anklicken und schliesslich einen bestimmten Content ziehen will. Mein Problem ist nun, dass das dafür verwendete WWW::Mechanize Modul weitere Module benötigt. Also habe ich das IO::Socket::SSL Modul installiert. Hier mal mein Script:

my $url = "https://derURL.com";

my $tempfile;

########

#Page 1#

########

my $value1_1 = "dummabua\@email.de";

my $value1_2 = "sagichnicht";

my $field1_1name = "acc";

my $field1_2name = "pwd";

my $clickit1 = "login";

my $formname1 = "f1";

########

#Page 2#

########

my $followlink2 = "";

########

#Page 3#

########

my $followlink3 = "";

########

#Page 4#

########

my $clickit4 = "";

########

#Page 5#

########

my $tickit5 = "";

my $clickit5 = "";

########

#Page 6#

########

use WWW::Mechanize;

use IO::Socket::SSL;

my $agent = new IO::Socket::SSL("betreffenderURL:https");

if (defined $client) {

print $client "GET / HTTP/1.0\r\n\r\n";

print <$client>;

close $client;

}

else {

warn "I encountered a problem: ",

IO::Socket::SSL::errstr();

}

Wenn ich das nun ausführe bekomme ich folgende Fehlermeldung:

Can't locate Net/SSLeay.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at /usr/lib/perl5/site_perl/5.8.0/IO/Socket/SSL.pm line 17.

BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.0/IO/Socket/SSL.pm line 17.

Compilation failed in require at ./infonet.pl line 44.

BEGIN failed--compilation aborted at ./infonet.pl line 44.

Ich werd daraus ned schlau... Ich denk mal dass das Modul falsch oder fehlerhaft installiert wurde.

PS: Wie kann ich unter Linux ein Modul wieder deinstallieren? Bis jetzt haben immer alle auf anhieb funktioniert (make uninstall zickt rum: Uninstall is deprecated. Please check the packlist above carefully.

There may be errors. Remove the appropriate files manually.

Sorry for the inconveniences.

)

Vielen Dank :)

jo, so wars auch... ich habe das falsche SSLeay Modul installiert, etz rennts... Danke :bimei

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.