Re: Regd Notebook



I donot have any particular reason why i am using gtk-perl. I am actually
using gtk-perl for my project in bio informatics .. i am developing a GUI
based application.

I looked at installing gtk2-perl. i am bit confused abt what all i need to
install before i install gtk2-perl.


I downloaded and installed glib-2.4.0 and pk config utility
and then i downloaded  ExtUtils-PkgConfig and ExtUtils-Depends.
Am i supposed to put these two directories in any particular folder or am
i suppose to add them to the path ?(i am not sure abt it )when i go inside
these directories and do a perl Makefile they say everything is correct.

when i try to install gtk2-perl ... it gives me an error saying the above
2 extensions are not installed and also glib is not available.

MakeMaker FATAL: prerequisites not found (ExtUtils::Depends not installed,
ExtUt
ils::PkgConfig not installed)

Could you please help me in installing the gtk2-perl. i think i can use
the Glade to design my application rite?

you will need the c libraries (glib/gtk+) which are likely already on your
system and the perl wrappers (ExtUtils::Depends, ExtUtils::PkgConfig, Glib,
Gtk2) which you have already found.

to build and install them in a system directory (if you have root access) just
extract all 4 anywhere you wish and go into each of their directories and
type:
    perl Makefile.PL
    make all test install

if you want/need to install them into a non-system directory there's an extra
step or two. you first need to tell perl where to look for modules:
  tcsh:
    setenv PERL5LIB $HOME/local
  bash:
    export PERL5LIB=$HOME/local
you can put one of those in your dot files if you wish to always have it set.

after that you will need to configure the perl modules with that prefix and
then build and install them (for each of the four):
    perl Makefile.PL PREFIX=$HOME/local
    make all test install

the non-system isntall is my normal mode of operation since i need to keep
multiple versions installed that can easily be blown away. obviously you can
substitute any directory you wish for $HOME/local

if you have further questions just ask.

-rm



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]