HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- path to perl module
Operating System - HP-UX
1828308
Members
3538
Online
109975
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2008 03:15 PM
08-11-2008 03:15 PM
path to perl module
Hello All,
I have installed expect and IO/Tty.pm in a directory.But when i run the script which uses the expect it gets error as below.What needs to done inorder to update INC
Can't locate IO/Pty.pm in @INC (@INC contains
Thanks in advance for any idea.
I have installed expect and IO/Tty.pm in a directory.But when i run the script which uses the expect it gets error as below.What needs to done inorder to update INC
Can't locate IO/Pty.pm in @INC (@INC contains
Thanks in advance for any idea.
Learning ...
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2008 03:45 PM
08-11-2008 03:45 PM
Re: path to perl module
Hi Navin:
If you installed the Perl modules using CPAN, for example, they should have been installed in a path contained in @INC. By default, your current directory is searched too:
# perl -le 'print for @INC'
A "can't locate...in @INC'
...when you do:
# perl -MExpect -e 1
...usually indicates that you *don't* have the module installed.
Regards!
...JRF...
If you installed the Perl modules using CPAN, for example, they should have been installed in a path contained in @INC. By default, your current directory is searched too:
# perl -le 'print for @INC'
A "can't locate...in @INC'
...when you do:
# perl -MExpect -e 1
...usually indicates that you *don't* have the module installed.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2008 04:17 PM
08-11-2008 04:17 PM
Re: path to perl module
You say:
"I have installed expect and IO/Tty.pm in a directory"
Does this mean you didn't install the module in a "standard" fashion?
The output will tell you where it's searching for the modules. You can move the .pm files into the correct paths or re-install the module.
Another thing to look for is if you have 2 versions of perl installed. I've run into problems with this before. I know I've installed a module but it installed using the other version because the other version was found by the shell first.
If this is the case check 'which perl' for the location and do a 'perl -v' to make sure it's the version you expect. If not you can rename that version to perl.x.x and try the commands again. Or, you can just change the $PATH statement but that can cause other problems
"I have installed expect and IO/Tty.pm in a directory"
Does this mean you didn't install the module in a "standard" fashion?
The output will tell you where it's searching for the modules. You can move the .pm files into the correct paths or re-install the module.
Another thing to look for is if you have 2 versions of perl installed. I've run into problems with this before. I know I've installed a module but it installed using the other version because the other version was found by the shell first.
If this is the case check 'which perl' for the location and do a 'perl -v' to make sure it's the version you expect. If not you can rename that version to perl.x.x and try the commands again. Or, you can just change the $PATH statement but that can cause other problems
Conformity Destroys a mans initiative and independence. It supresses his powerful inner drive to do his own thing.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP