ChuckBland has asked for the wisdom of the Perl Monks concerning the following question:

Has anyone installed/used Chart::Clicker in the Windows environment? The author has not done so in Windows. So, before I use another graph module, has anyone done this or can give me advice on a successful install. I've spent alot of time in loops. Chuck
  • Comment on Before I give-up on Chart::Clicker.....

Replies are listed 'Best First'.
Re: Before I give-up on Chart::Clicker.....
by Khen1950fx (Canon) on Jul 14, 2010 at 04:14 UTC
    Chart::Clicker has some prereqs that must be satisfied before you install it. See the GTK+ Project. You'll be needing most of the packages there. Make sure that you've got them installed, then run this script. It'll install all the dependencies. I commented out the two modules that gave me a problem,
    #!/usr/bin/perl use strict; use warnings; use CPAN; CPAN::Shell->install( "Test::PDF", "ExtUtils::PkgConfig", "ExtUtils::Depends", "Cairo", "Test::LongString", "Text::Flow", "Graphics::Primitive::Driver::Cairo", "Math::Gradient", "Set::Infinite", "DateTime::Set", "Algorithm::Diff", "Text::Diff", "Test::Differences", "Color::Scheme", "Class::Data::Inheritable", "Class::Accessor::Fast", "Module::Pluggable", "Color::Library", "Test::Number::Delta", "MooseX::Aliases", "Graphics::Color", "Forest", "Graphics::Primitive", "MooseX::AttributeHelpers", "JSON::Any", "File::Path", "File::NFSLock", #"IO::Dir", "Path::Class", "Carp::Clan", "MooseX::Types", "MooseX::Types::Path::Class", "Test::TempDir", "Test::NoWarnings", "Test::Tester", "Test::Deep", "String::RewritePrefix", "MooseX::Storage", "Math::Complex", "Check::ISA", "Hash::Util::FieldHash::Compat", "Algorithm::C3", "Class::C3", "MRO::Compat", "Scope::Guard", "Devel::GlobalDestruction", "Class::MOP", "Try::Tiny", "Moose", "Task::Weaken", "XSLoader", "base", "Variable::Magic", "Data::OptList", "Sub::Install", "Params::Util", "Sub::Exporter", "B::Hooks::EndOfScope", "Sub::Identify", "Sub::Name", "Package::Stash", "namespace::clean", "Tie::RefHash", "Test::use::ok", "Tie::ToObject", "Data::Visitor", "MooseX::Clone", "Geometry::Primitive", "ExtUtils::MakeMaker", "Layout::Manager", "Time::Local", "List::MoreUtils", "DateTime::Locale", "File::Temp", "Exporter", "ExtUtils::ParseXS", "Module::Build", "Attribute::Handlers", "ExtUtils::CBuilder", "Params::Validate", "Class::Singleton", "DateTime::TimeZone", "Test", "Text::Wrap", "Pod::Escapes", "Pod::Simple", "File::Spec", "Pod::Man", "Sub::Uplevel", "Test::Exception", "Test::Harness", "Test::More", #"Scalar::Util", "DateTime", "Chart::Clicker");
      Khen1950fx, I have not had success on two difference machines. One has PERL 5.12 and the other 5.10. I haave tried GTK+ 2.16 and 2.20. I got all the third-party dependency files that were checked and installed them. Then I ran the script. It always stop at the same place while making File-NFSLock, at the line: t/200_bl_ex.t ..... 2/22 I have even uncommented the items in your script that were uncommented. What am I missing? Chuck
        You're not missing anything. There's a bug report on the rt that mentions the exact same problem. See: Bug #40185 for File-NSLock. You'll find an attachment with a patch that should work for you.
Re: Before I give-up on Chart::Clicker.....
by marto (Cardinal) on Jul 13, 2010 at 22:56 UTC

    "Has anyone installed/used Chart::Clicker in the Windows environment?"

    Apparently it has passed all the tests on Windows.

    "has anyone done this or can give me advice on a successful install. I've spent alot of time in loops."

    Perhaps you could detail your environment, what you've tried and what goes wrong? See How do I post a question effectively?.

      My latest attempt at installing (after reading this today) was to open a CMD window and verify that the cpan utility can find it. It does - "Chart::Clicker". When I issue the command "install Chart::Clicker" a bunch of stuff (I know...not a great description) happens. Here's what happens just before it freezes:

      CPAN.pm: Going to build B/BB/BBB/File-NFSLock-1.20.tar.gz Set up gcc environment - 3.4.5 (mingw-vista special r3) Checking if your kit is complete... Looks good Writing Makefile for File::NFSLock cp lib/File/NFSLock.pm blib\lib\File\NFSLock.pm C:\Perl\bin\perl.exe "-Iblib\arch" "-Iblib\lib" File-NFSLock.spec.PL File-NFSLock.spec BBB/File-NFSLock-1.20.tar.gz C:\Perl\site\bin\dmake.exe -- OK Running make test C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/100_load.t ...... ok t/110_compare.t ... ok t/120_single.t .... ok t/200_bl_ex.t ..... 2/22

      That's it. I do have the entire output from the install command. It is at: http://www.blandranch.net/Files/InstallLog.txt

        That's it. I do have the entire output from the install command. It is at: http://www.blandranch.net/Files/InstallLog.txt

        It looks truncated. It stops in the middle of a test output, and looks successful so far.

        Perl 6 - links to (nearly) everything that is Perl 6.
        Windows XP, SP3 ActivePerl 5.12.1 Build 1201