Find the answer to your Linux question:
Results 1 to 5 of 5
Iam new to Perl.... I've the "Win32-GUI-1.05.tar" file & extracted "Win32-GUI-1.05" folder in my home dir. ~/mime/Win32-GUI-1.05.tar ~/mime/Win32-GUI-1.05 When Iam trying to use this module, Iam getting below error message. ...
  1. #1
    Just Joined!
    Join Date
    Jun 2006
    Posts
    40

    How to install a module in local linux machine, to use that module in a perl program

    Iam new to Perl....

    I've the "Win32-GUI-1.05.tar" file & extracted "Win32-GUI-1.05" folder in my home dir.

    ~/mime/Win32-GUI-1.05.tar
    ~/mime/Win32-GUI-1.05

    When Iam trying to use this module, Iam getting below error message. Iam using Win32 module in msgbox.pl ( like, use Win32;)

    Code:
    pawan@localgfmd pawan]$ perl msgbox.pl
    Can't locate Win32.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 msgbox.pl line 1.
    BEGIN failed--compilation aborted at msgbox.pl line 1.

    kindly tell me the steps to install the module, as other modules already installed in the above mentioned dir. path, what @INC is carrying.

    I looked into /usr/lib/perl5/5.8.0 , There are several other .pm files.

    Whether I've to (copy/move) that module to /usr/lib/perl5/5.8.0 , or create a directory like this /usr/lib/perl5/Win32-GUI-1.05
    Or have to do something else....so that @INC should contain the Path of this module with it...

    Is there any compulsion.....to always store a module in a specified directory...so that all the modules are placed and accessed from one place.

    If this happens.....I'll try to use msgbox utility in perl program...to check the output value of any variable or something.....It's just a try....

    Kindly advise....should I go for this or not....

    Thanks & Regards,
    Pawan Sangal
    Last edited by devils casper; 04-13-2007 at 08:52 AM. Reason: removed color tags

  2. #2
    Linux User
    Join Date
    Oct 2004
    Location
    /dev/random
    Posts
    404
    Are you trying to install it on Windows (either in Cygwin or using ActivePerl)?
    I guess, it's pretty obvious that Win32::GUI is specific to windows and cannot be used on UNIX/Linux..

    Anyways, this link gives you details on how to install it on windows:
    http://search.cpan.org/~robertmay/Wi...ide/Readme.pod
    The Unforgiven
    Registered Linux User #358564

  3. #3
    Just Joined!
    Join Date
    Jun 2006
    Posts
    40
    Quote Originally Posted by the_unforgiven
    Are you trying to install it on Windows (either in Cygwin or using ActivePerl)?
    I guess, it's pretty obvious that Win32::GUI is specific to windows and cannot be used on UNIX/Linux..

    Anyways, this link gives you details on how to install it on windows:
    http://search.cpan.org/~robertmay/Wi...ide/Readme.pod

    Thanks for the suggestion. I Appreciate that...

    Any (ideas/way) to get "msgbox" kind of prompt at (runtime/during script execution) in Perl.......which can show some text with some dynamic value.(variable's output)......Iam working on BASH shell on my linux machine...didn't tried on windows...(i.e ActivePerl)

    Any such kind of utility in Perl????..........there is "Dialog" in shell....

  4. #4
    Linux User
    Join Date
    Oct 2004
    Location
    /dev/random
    Posts
    404
    Yes, Perl has modules/bindings for many UI toolkits.
    Take a look at:
    http://search.cpan.org/modlist/User_Interfaces

    If you want to run this program via shell/console, you can use the Curses bindings.

    HTH
    The Unforgiven
    Registered Linux User #358564

  5. #5
    Just Joined!
    Join Date
    Jun 2006
    Posts
    40
    Quote Originally Posted by the_unforgiven
    Yes, Perl has modules/bindings for many UI toolkits.
    Take a look at:
    http://search.cpan.org/modlist/User_Interfaces

    If you want to run this program via shell/console, you can use the Curses bindings.

    HTH

    OK....Iam looking at Curses......I saw "curses_widgets_1_2.tar.gz" . Does this help me to get a prompt window at runtime on console window....

    Do you know how to install this module.....like on my machine most of the modules are placed inside:
    /usr/lib/perl5/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/5.8.0

    Should I create a new directory in /usr/lib/
    or have to run some file, so that the module get installed in the path....

    Regards,
    Pawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...