{"id":775,"date":"2023-09-03T16:59:47","date_gmt":"2023-09-03T14:59:47","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=775"},"modified":"2023-09-03T16:59:47","modified_gmt":"2023-09-03T14:59:47","slug":"perl-module-installieren","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/03\/perl-module-installieren\/","title":{"rendered":"Perl-Module installieren"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Derzeit befasse ich mich mit Perl. Beim Aufbau eines Versuches, hatte ich im Internet ein Modul gefunden, welches mir bei meinem Vorhaben wie gerufen kam. Das Modul hei\u00dft&nbsp;<strong>File::Random<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Aber wie nutzen? Ich habe ja mal wieder keine Ahnung davon.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Insgesamt habe ich erstmal wieder einen kompletten Schiffbruch erlitten, als ich die Installationsanweisungen aus dem Modul-Archiv versuchte nachzustellen. Kryptische Fehlermeldungen sowie scheinbare Abh\u00e4ngigkeitsprobleme von anderen Modulen. \u00c4tzend!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Es gibt aber&nbsp;<strong>cpan<\/strong>!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>cpan&nbsp;<\/strong>steht f\u00fcr&nbsp;<strong>Comprehensive Perl Archive Network<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Die Webseite von cpan.org ist hier zu finden:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.cpan.org\/\">https:\/\/www.cpan.org\/<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Danach war es dann eigentlich relativ simple, das gew\u00fcnschte Modul zu installieren. Folgende Schritte mit root-Rechten habe ich dann durchgef\u00fchrt.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Installation des Pakets\u00a0<strong>cpanminus<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-get install cpanminus<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Danach muss\u00a0<strong>cpanm<\/strong>\u00a0installiert werden, und zwar mit folgendem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cpan App::cpanminus<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Und wenn dieser Schritt erledigt ist, kommt die Installation des gew\u00fcnschten Moduls (<strong>File::Random<\/strong>) an die Reihe:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cpanm File::Random<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">K\u00fcnftig kann ich nat\u00fcrlich neue Module sofort \u00fcber den letztgenannten Befehl installieren. Die anderen Pakete bleiben ja installiert.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Kleiner Hinweis:<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Als ich zu Beginn meines Versuches nach L\u00f6sungen gesucht hatte, wurde vorgeschlagen, folgendes Paket zu installieren:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-get install libmodule-install-perl<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ob das Paket tats\u00e4chlich notwendig ist, wei\u00df ich nicht. Deinstalliert habe ich es nicht. Es scheint aber auch nicht zu schaden. Vielleicht w\u00e4re es bei der Installation von cpanminus mitinstalliert worden.<\/p>\n\n\n\n<p class=\"has-light-green-cyan-color has-text-color wp-block-paragraph\">Verfasst von Bommo<\/p>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"775\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"775\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Derzeit befasse ich mich mit Perl. Beim Aufbau eines Versuches, hatte ich im Internet ein Modul gefunden, welches mir bei meinem Vorhaben wie gerufen kam. Das Modul hei\u00dft&nbsp;File::Random. Aber wie nutzen? Ich habe ja mal wieder keine Ahnung davon. Insgesamt habe ich erstmal wieder einen kompletten Schiffbruch erlitten, als ich die Installationsanweisungen aus dem Modul-Archiv [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":776,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[64,17],"tags":[65,15],"class_list":["post-775","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-verwalten","category-system","tag-software-verwalten","tag-system"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/775","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=775"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/775\/revisions"}],"predecessor-version":[{"id":777,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/775\/revisions\/777"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/776"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}