Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^6: cpanm tk and Finance::GeniusTrader

by zentara (Archbishop)
on Aug 10, 2012 at 21:41 UTC ( [id://986828]=note: print w/replies, xml ) Need Help??


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

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

Replies are listed 'Best First'.
Re^7: cpanm tk and Finance::GeniusTrader
by robertw (Sexton) on Aug 11, 2012 at 17:28 UTC
    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://986828]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found