in reply to Re^2: Using GIS/Shapefiles with Perl Tk Widgets
in thread Using GIS/Shapefiles with Perl Tk Widgets

How are you trying install it? From the module on CPAN, the downloadable tarball from TkZinc.org, or an RPM for some specific distribution? Zinc was originally made for TCL, but has been ported to Perl. If you use the module from CPAN, it should work. The tarball from TkZinc.org is designed for TCL and has a special subdir for building the Perl/Tk version.... read the README that is in the Perl subdir, run export2cpan, then build according to instructions.

I'm not really a human, but I play one on earth. Cogito ergo sum a bum
  • Comment on Re^3: Using GIS/Shapefiles with Perl Tk Widgets

Replies are listed 'Best First'.
Re^4: Using GIS/Shapefiles with Perl Tk Widgets
by deadpickle (Pilgrim) on May 14, 2007 at 02:24 UTC
    I am trying to install the CPAN module and am getting this error when make install:
    deadpickle@HoboHotel:~/Desktop/tk-zinc-3.303$ sudo make install Password: make[1]: Entering directory `/home/deadpickle/Desktop/tk-zinc-3.303/de +mos' make[1]: Leaving directory `/home/deadpickle/Desktop/tk-zinc-3.303/dem +os' cc -c -I. -I/usr/lib/perl5/Tk -I/usr/lib/perl5/Tk/pTk -I/usr/lib/perl +5/Tk/X11 -I/usr/X11R6/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HA +VE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_L +ARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"3.303\" -DXS +_VERSION=\"804.027\" -fPIC "-I/usr/lib/perl/5.8/CORE" -DPTK -DGL -DS +HAPE -DATC Tabular.c In file included from Tabular.c:19: Types.h:41:24: error: GL/glx.h: No such file or directory In file included from PostScript.h:27, from Item.h:23, from WidgetInfo.h:23, from Tabular.c:20: Image.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ be +fore ‘ZnImageTex’ Image.h:49: error: expected specifier-qualifier-list before ‘GLfloat’ Image.h:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ be +fore ‘ZnTexFontTex’ In file included from Tabular.c:23: tkZinc.h:27:20: error: GL/glu.h: No such file or directory In file included from Tabular.c:23: tkZinc.h:63: error: expected specifier-qualifier-list before ‘GLUtesse +lator’ tkZinc.h:76: error: expected specifier-qualifier-list before ‘GLXConte +xt’ make: *** [Tabular.o] Error 1
    And I get this error when I try to run a program involving Zinc:
    Tk::Zinc object version 800.025 does not match bootstrap parameter 804 +.027 at /usr/lib/perl/5.8/DynaLoader.pm line 245. Compilation failed in require at TripleRotatingWheel.pl line 9. BEGIN failed--compilation aborted at TripleRotatingWheel.pl line 9.
      You seem to have a couple of problems. One is you don't have any OpenGL installed, so you will need to build it without OpenGL. Read the README file on installing, you can use "perl Makefile.PL --with-gl=no"

      The second error seems to indicate you are using the old 800 version of Tk, where Zinc wants the latest Tk-804. Now I don't know if you have multiple Tk versions on your system, or what?


      I'm not really a human, but I play one on earth. Cogito ergo sum a bum
        Looking at the Synaptic Package Manager in the Ubuntu Distro searching Tk shows that only tk-8.4 is installed. Any other way I can check to see if Tk is installed?