Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: cpanm tk and Finance::GeniusTrader

by robertw (Sexton)
on Aug 09, 2012 at 18:26 UTC ( [id://986578]=note: print w/replies, xml ) Need Help??


in reply to Re^2: cpanm tk and Finance::GeniusTrader
in thread cpanm tk and Finance::GeniusTrader

Just did it sorry for the useless question, I make installed it and the perl -MTk -e 1 command does not give output, Are the dependencies installed too? Is this all I had to do:)?

# perl Makefile.PL # make # make test

Replies are listed 'Best First'.
Re^4: cpanm tk and Finance::GeniusTrader
by zentara (Archbishop) on Aug 10, 2012 at 09:58 UTC
    Is this all I had to do:)?

    You dont show make install done as root or with sudo.


    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh
      I forgot to use Sudo unfortunately:( with both finance genius trader and Tk. I did not test Trader yet because I could not find any examples on how to use it yet, however i tried this
      #!/usr/bin/perl use lib '/opt/perl5/perlbrew/bin/perlbrew/perls/perl-5.14.0/lib/site_p +erl/5.14.0/darwin-2level'; use Tk;
      it does not work and gives a lot of errors mainly because
      package Tk::Event; use vars qw($VERSION $XS_VERSION @EXPORT_OK); END { CleanupGlue() } #it claims this is an undefined subroutine..... $VERSION = '4.024'; # was: sprintf '4.%03d', q$Revision: #15 $ =~ /\D( +\d+)\s*$/; $XS_VERSION = '804.030'; $XS_VERSION = eval $XS_VERSION; use base qw(Exporter); use XSLoader; @EXPORT_OK = qw($XS_VERSION DONT_WAIT WINDOW_EVENTS FILE_EVENTS TIMER_EVENTS IDLE_EVENTS ALL_EVENTS); XSLoader::load 'Tk::Event',$XS_VERSION; # gives an error for this one +as well... require Tk::Event::IO; 1; __END__

      When i try to cpanm it now it says it has the latest updates of both programmes, but Tk does not work, would you maybe know what to do now? It gives a lot of errors but it is because ::TK calls for Tk event calls for etc, I could supply more errors if beneficiary to understanding:) Thank you so much in advance:).

        but Tk does not work, would you maybe know what to do now?

        I'm not sure, but I see 2 possible areas for error.

        1. You seem to have perlbrew in your path. I don't use it, but from my understanding perlbrew allows you to switch between various Perl versions, which are not binary compatible.

        2. You include an ominous "use lib" line:
        use lib '/opt/perl5/perlbrew/bin/perlbrew/perls/perl-5.14.0/lib/site_perl/5.14.0/darwin-2level';
        use Tk;
        You should not need that long dir path line, and you may be incorporating a different Tk version. Why do you need that long use lib line? On most any install, just "use Tk;" should be fine, as the Perl interpretor knows where it's modules are.

        I think you have a problem with PerlBrew.


        I'm not really a human, but I play one on earth.
        Old Perl Programmer Haiku ................... flash japh
Re^4: cpanm tk and Finance::GeniusTrader
by Anonymous Monk on Aug 10, 2012 at 01:33 UTC
    That is unpossable :) Post all output from
    perl Makefile.PL make install

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://986578]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-20 03:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found