Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Need to install perl module, IO-Stty, but how?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
NiceGuy
Guru
Guru


Joined: 12 Jun 2006
Posts: 451
Location: Canada

PostPosted: Thu May 22, 2008 5:37 pm    Post subject: [SOLVED] Need to install perl module, IO-Stty, but how? Reply with quote

Hello,

I need to install a perl IO-Stty module for but can not find any Gentoo documentation on how to achieve this.

Any Ideas out there?
Thanks
_________________
success is the ability to go from one failure to the next without any loss of enthusiasm


Last edited by NiceGuy on Fri May 23, 2008 1:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
MostAwesomeDude
Guru
Guru


Joined: 12 Aug 2007
Posts: 373

PostPosted: Thu May 22, 2008 7:53 pm    Post subject: Reply with quote

I don't think it's in portage. Use CPAN:

Code:
$ perl -MCPAN -e shell;


It is probably the friendliest, easiest way to install Perl modules not found in portage.
_________________
Don't believe the "n00b" under my name.
Back to top
View user's profile Send private message
NiceGuy
Guru
Guru


Joined: 12 Jun 2006
Posts: 451
Location: Canada

PostPosted: Thu May 22, 2008 8:08 pm    Post subject: Reply with quote

Hello,

Quote:
I don't think it's in portage. Use CPAN:


Do you mean that I should try to emerge a package called cpan?? Then use it to install the IO-Stty module??

Thanks
_________________
success is the ability to go from one failure to the next without any loss of enthusiasm
Back to top
View user's profile Send private message
NiceGuy
Guru
Guru


Joined: 12 Jun 2006
Posts: 451
Location: Canada

PostPosted: Thu May 22, 2008 8:15 pm    Post subject: Reply with quote

Hello,

In the meantime, I have attempted to emerge a package called g-cpan (it was the only one I could find that seemed applicable). However it appears it will complain:

Code:
host@domain ~ # emerge -pv g-cpan

These are the packages that would be merged, in order:

Calculating dependencies... done!
[nomerge      ] app-portage/g-cpan-0.15.0-r1
[nomerge      ]  dev-perl/Shell-EnvImporter-1.04
[nomerge      ]   dev-perl/Class-MethodMaker-2.10
[nomerge      ]    dev-perl/module-build-0.28.08  USE="test"
[ebuild  N    ]     dev-perl/extutils-parsexs-2.18
[ebuild  N    ]     dev-perl/version-0.73
[ebuild  N    ]     dev-perl/ExtUtils-CBuilder-0.19
[ebuild  N    ]      dev-perl/module-build-0.28.08  USE="test"
!!! Error: circular dependencies:

('ebuild', '/', 'dev-perl/module-build-0.28.08', 'merge') depends on
   ('ebuild', '/', 'dev-perl/extutils-parsexs-2.18', 'merge') (medium-soft)
   ('ebuild', '/', 'dev-perl/ExtUtils-CBuilder-0.19', 'merge') (medium-soft)
   ('ebuild', '/', 'dev-perl/version-0.73', 'merge') (hard)
('ebuild', '/', 'dev-perl/version-0.73', 'merge') depends on
   ('ebuild', '/', 'dev-perl/module-build-0.28.08', 'merge') (hard)
('ebuild', '/', 'dev-perl/ExtUtils-CBuilder-0.19', 'merge') depends on
   ('ebuild', '/', 'dev-perl/module-build-0.28.08', 'merge') (hard)
('ebuild', '/', 'dev-perl/extutils-parsexs-2.18', 'merge') depends on
   ('ebuild', '/', 'dev-perl/module-build-0.28.08', 'merge') (hard)
   ('ebuild', '/', 'dev-perl/ExtUtils-CBuilder-0.19', 'merge') (hard)

!!! Note that circular dependencies can often be avoided by temporarily
!!! disabling USE flags that trigger optional dependencies.


Any Ideas, if this is:
Code:
1.  The right package (package: g-cpan)?
2.  If it is the right package, how to resolve the circular dependency?

Thanks
_________________
success is the ability to go from one failure to the next without any loss of enthusiasm
Back to top
View user's profile Send private message
MostAwesomeDude
Guru
Guru


Joined: 12 Aug 2007
Posts: 373

PostPosted: Thu May 22, 2008 9:14 pm    Post subject: Reply with quote

CPAN comes with perl, just type the above command and follow the prompts.
_________________
Don't believe the "n00b" under my name.
Back to top
View user's profile Send private message
NiceGuy
Guru
Guru


Joined: 12 Jun 2006
Posts: 451
Location: Canada

PostPosted: Fri May 23, 2008 1:53 pm    Post subject: Reply with quote

Hello,

As of this morning (only available time I had) .. I performed the following:

Code:
prompt$ perl -MCPAN -e shell

cpan > install IO::Stty


This seems to have performed the perl module installation that I required. Will update the post with "SOLVED"

Thanks "MostAwesomeDude" for your help
_________________
success is the ability to go from one failure to the next without any loss of enthusiasm
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5935

PostPosted: Fri May 23, 2008 6:39 pm    Post subject: Reply with quote

there is also a dev-perl/IO-Tty in portage, but it says it does tty and pty, not sure if that is the one you need. (a lot of those CPAN modules are in portage under dev-perl)

cheers
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
NiceGuy
Guru
Guru


Joined: 12 Jun 2006
Posts: 451
Location: Canada

PostPosted: Wed Jun 18, 2008 3:56 pm    Post subject: Reply with quote

Hello,

Have two questions:
Code:

1. How do you load a perl module?
2. How can I list all perl modules loaded/installed .. to verify they are in fact available/installed?

Thanks
_________________
success is the ability to go from one failure to the next without any loss of enthusiasm
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum