I-Mscp 1.2.x Install Error can't locate Switch.pm

  • Hi,
    ich habe gerade auf 2 unterschiedlichen frisch installeirten vm's (ubuntu 14 server) beim i-mscp immer den selben error bekommen:


    Servers::cron::factory: Can't locate Switch.pm in @INC (you may need to install
    the Switch module) (@INC contains: /usr/local/src/imscp-1.2.x/engine/PerlVendor
    /usr/local/src/imscp-1.2.x /usr/local/src/imscp-1.2.x/engine/PerlLib /etc/perl
    /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5
    /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18
    /usr/local/lib/site_perl .) at
    /usr/local/src/imscp-1.2.x/engine/PerlLib/Servers/cron/cron.pm line 44, <$fh>
    line 50.
    BEGIN failed--compilation aborted at
    /usr/local/src/imscp-1.2.x/engine/PerlLib/Servers/cron/cron.pm line 44, <$fh>
    line 50.
    Compilation failed in require at (eval 217) line 2, <$fh> line 50.


    Exit code: 255
    root@ubuntu:/usr/local/src/imscp-1.2.x#


    Installiert habe ich auf dem frischen Linux wie folgt:



    #http://wiki.i-mscp.net/doku.php?id=start:installation:debian


    apt-get update && apt-get install whiptail tasksel -y
    tasksel install standard


    #apt-get install libswitch-perl #?? weil fehler beim setup kam ohne dies


    echo 'backup.meintestserver.de' > /etc/hostname
    hostname -F /etc/hostname


    cd /usr/local/src
    wget https://github.com/i-MSCP/imscp/archive/1.2.x.zip


    apt-get install unzip -y
    unzip 1.2.x.zip
    cd imscp-1.2.x/
    perl imscp-autoinstall -d



    ich setze mir mal die vm's zurück und installiere aus dem 1.1er zweig aus dem git hub besser, oder?

  • ok, beim 1.1.er setup Fehler wohl auch da:


    Servers::cron::factory: Can't locate Switch.pm in @INC (you may need to install
    the Switch module) (@INC contains: /usr/local/src/imscp-1.1.x/engine/PerlVendor
    /usr/local/src/imscp-1.1.x /usr/local/src/imscp-1.1.x/engine/PerlLib /etc/perl
    /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5
    /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18
    /usr/local/lib/site_perl .) at
    /usr/local/src/imscp-1.1.x/engine/PerlLib/Servers/cron/cron.pm line 44, <$fh>
    line 50.
    BEGIN failed--compilation aborted at
    /usr/local/src/imscp-1.1.x/engine/PerlLib/Servers/cron/cron.pm line 44, <$fh>
    line 50.
    Compilation failed in require at (eval 215) line 2, <$fh> line 50.


    [ERROR]


    iMSCP::Debug::END: Exit code: 2



    hmm, auf meinem richtigen server läuft eigentlich alles prima. nur da hatte ich vorher schon alles mögliche drauf.


    auf den testrechnern gar nix.


    php5 ist drauf:
    dpkg -l php5
    Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
    | Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
    Halb installiert/Trigger erWartet/Trigger anhängig
    |/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht)
    ||/ Name Version Architektur Beschreibung
    +++-==================================-======================-======================-=========================================================================
    ii php5 5.5.9+dfsg-1ubuntu4.5 all server-side, HTML-embedded scripting language (metapackage)


    DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"


    einer ne idee, was ich vergessen habe??

  • Hello ;


    Just do:


    Code
    1. sudo apt-get install libswitch-perl


    Thank you for the report, I'll add that package in packages list ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • hi Nuxwin,
    you are right.


    i just askt google and get the same answer :-)


    I tried this before few minutes, but i doesen't work. But now i see, that my error during this test was caused, because i checked php version in a second konsole.


    i tries now again and it works fine :-) a new entry for my install notes ;-)


    after this local installation i can make my next tests for cloning my root server to this backup machine.


    I want to try a mix with this post and a realtime rsync + sql replication that i have a realtime backup system all the time
    my first steps: only hot cloning this server completely with rsync fails, because the test machine doesent started correctly apache modules :-(

  • Re;


    Should be fixed. See https://github.com/i-MSCP/imsc…eb11ba92613ca8b56e3cb1544


    The Perl Switch module is deprecated so I've replaced the code by an if/elsif/elsif/...

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206