Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^5: cpanm tk and Finance::GeniusTrader

by robertw (Sexton)
on Aug 10, 2012 at 14:14 UTC ( [id://986756]=note: print w/replies, xml ) Need Help??


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

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:).

Replies are listed 'Best First'.
Re^6: cpanm tk and Finance::GeniusTrader
by zentara (Archbishop) on Aug 10, 2012 at 21:41 UTC
    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
      My standard perl never worked that was why i switched to perlbrew, I need the lib line because I installed the Tk module under that perlbrew version:
      source $ /opt/perl5/perlbrew/bin/perlbrew/etc/bashrc $ perlbrew switch perl-5.14.0

      Darwin-2level contains Tk.pm and a directory Tk which contains the accompanying things to the Tk module. When I leave the lib line it can't find it in INC, How could I solve this problem with perlbrew?

        How could I solve this problem with perlbrew

        I don't know, you might want to create another new SOPW node, with perlbrew in the title, so any perlbrew experts out there can zero in on it.


        I'm not really a human, but I play one on earth.
        Old Perl Programmer Haiku ................... flash japh

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-03-19 04:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found