On Thu, May 23, 2013 at 08:45:05PM +0100, Rahim Fakir wrote:
> Iam practicing from start and I have  a problem with this code:
> This is the comment of the console, i coulnd't give a round to it, pls
> help...
> 
> 
> Can't locate Glib.pm in @INC <@INC contains: C:/Dwimperl/perl/site/lib
> C:/Dwimperl/perl/vendor/lib
> C:/Dwimperl/perl/lib .> at janelahello.pl line 3.
> BEGIN failed--compilation aborted at janelahello.pl line 3

In addition to what others have said (you need to install
Glib.pm) you are probably going to first have to install the
binary dependencies for Glib.pm if you haven't yet since I
believe that is a Perl module that provides bindings to a C
library related to the cross-platform Gnome desktop environment.
You may have to do some guess work to figure out what those
dependencies are (i.e., Gnome). First check the documentation,
but often you'll just have to infer what's missing from the build
errors and figure out how to install those things.

Don't be deterred if you have trouble or fail at first. It takes
practice and experience and we all go through it. Since you are
on Windows you should first make sure that Glib.pm is supported
on Windows (I haven't used it before so I couldn't tell you). If
it isn't then you can't expect it to "Just Work(tm)", even if you
do get its usual dependencies installed. If it is supported on
Windows then it should "Just(tm)" be a matter of satisfying its
dependencies, installing the Glib module from CPAN, and finally
running your program with a strong sense of accomplishment.

My advice would be to set yourself up with a GNU/Linux
distribution installation to experiment with these things. You
will generally have a much easier time installing dependences,
especially if you have to build them from source, and often your
Linux distribution's package manager will have them prebuilt
(popular CPAN modules will also be packaged up for you, which
won't necessarily give you the latest version, but will at least
give you an easy button to jump right in, which is ideal for
beginners). If you're new to Linux then you'll have that hurdle
to climb first, but in the long run I think it'll balance out...

Good luck. :)

Regards,


-- 
Brandon McCaig <bamcc...@gmail.com> <bamcc...@castopulence.org>
Castopulence Software <https://www.castopulence.org/>
Blog <http://www.bamccaig.com/>
perl -E '$_=q{V zrna gur orfg jvgu jung V fnl. }.
q{Vg qbrfa'\''g nyjnlf fbhaq gung jnl.};
tr/A-Ma-mN-Zn-z/N-Zn-zA-Ma-m/;say'

Attachment: signature.asc
Description: Digital signature

Reply via email to