01-28-2011
Utilizing libraries when you aren't root.
I'm having a bit of trouble trying to make use of Net::SSH::Expect. I've started getting dependent libraries and set PERL5LIB to add my custom path because I don't have root access. I tried using cpan, but it always tries to use paths I don't have access to. Next, I tried just moving the .pm files into my custom path's lib folder (~/myperl/lib). That eliminated some errors, but now I keep getting this:
Can't locate loadable object for module IO::Tty in @INC (@INC contains: lots of paths and ~/myperl/lib) at ~/myperl/lib/IO/Tty.pm line 30
Compilation failed in require at ~/myperl/lib/IO/Pty.pm line 7.
BEGIN failed--compilation aborted at ~/myperl/lib/IO/Pty.pm line 7.
Compilation failed in require at ~/myperl/lib/Expect.pm line 22.
BEGIN failed--compilation aborted at ~/myperl/lib/Expect.pm line 22.
Compilation failed in require at ~/myperl/lib/Net/SSH/Expect.pm line 10.
BEGIN failed--compilation aborted at /~/myperl/lib/Net/SSH/Expect.pm line 10.
Compilation failed in require at myprogram.pl line 6.
BEGIN failed--compilation aborted at myprogram.pl line 6.
Does anyone have a surefire way to get this library working without having to be root? All responses will be greatly appreciated.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can anybody please help me on how to optimize following command as it use up a lot of CPU :
tail -f $DIR3$DATE4.log |\
while read line
do echo $line | egrep "Processing incoming SMS message" | sed 's/\,/ /g' \
| awk '{print $2}' >> $DIR2/LIST1.$DATE4.log && echo... (6 Replies)
Discussion started by: azmanw2004
6 Replies
2. Shell Programming and Scripting
I would like to have the function keys available to me in my scripts. Anyone have any ideas on how to map these to functionality I design? :confused: (3 Replies)
Discussion started by: fjjlee
3 Replies
3. AIX
Hello guys, I have a trouble when running an application in AIX, I've compiled and the
LIBRARY_PATH seems ok, but I get the following message:
rtld: 0712-001 Symbol __pthread was referenced
from module main_app(), but a runtime definition
of the symbol was not found
ldd... (4 Replies)
Discussion started by: edgarvm
4 Replies
4. UNIX for Dummies Questions & Answers
Hi i recently observed my cpu being used 100% due to which load average on machine get increased to < 5.
I have no idea what the process is?
Appreciate any help in this regard.
root 15859 99.9 0.0 5668 1592 pts/4 R+ 12:28 660:06 \_ pvs
root 7334 99.9 ... (2 Replies)
Discussion started by: pinga123
2 Replies
5. Shell Programming and Scripting
hey :)
if i have a variable that is
example=lewisdenny(copywrite symbol)
so its not a nomal letter but a symbol, how can i remove everything in the varible that isnt letter or number thanks :)
and as a side little question do you know how to remove .zip from a file like if i
ls... (7 Replies)
Discussion started by: lewisdenny
7 Replies
6. Solaris
(Disclaimer: I put this in the "dummies" section because I am a UNIX noob and I'm not really sure what I'm doing so I felt like it belonged here. If it belongs in the Solaris section I can delete this and post it there:b:)
I was handed over an Oracle SPARC T3-1 machine at work, with 8 physical... (15 Replies)
Discussion started by: bstring
15 Replies
7. Solaris
We are using oracle database on solaris 10 sparc 64 bit on M5000 machine. we facing performance related issues.
We diagnose using prstat -a command that oracle user not utilizing the ram more than 30 gb total we have 64 gb ram available as in project max-shm-memory set to 42 gb . We are running... (2 Replies)
Discussion started by: zeeshan047
2 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Compile cpp2html.c to produce cpp2html.o.
( Important: the source code in these files is C, not C++, and so... (8 Replies)
Discussion started by: lamentofking
8 Replies
9. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
]Compile cpp2html.c to produce cpp2html.o.
( Important: the source code in these files is C, not C++, and so... (1 Reply)
Discussion started by: bgnaranjo1
1 Replies
10. HP-UX
Hi,
I see following 'nfsd' command is using more CPU. Could someone please comment on it's pros and cons of it?
CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
5 ? 16890 root 152 20 34696K 12036K run 57166:48 856.13 854.64 nfsd
OS -- HP-UX
One... (4 Replies)
Discussion started by: Maddy123
4 Replies
LEARN ABOUT DEBIAN
net::openssh::compat
Net::OpenSSH::Compat(3pm) User Contributed Perl Documentation Net::OpenSSH::Compat(3pm)
NAME
Net::OpenSSH::Compat - Compatibility modules for Net::OpenSSH
SYNOPSIS
use Net::OpenSSH::Compat 'Net::SSH2';
use Net::OpenSSH::Compat 'Net::SSH::Perl';
DESCRIPTION
This package contains a set of adapter modules that run on top of Net::OpenSSH providing the APIs of other SSH modules available from CPAN.
Currently, there are adapters available for Net::SSH2 and Net::SSH::Perl. Adapters for Net::SSH and Net::SFTP are planned... maybe also for
Net::SCP and Net::SCP::Expect if somebody request them.
BUGS AND SUPPORT
This is a work in progress.
If you find any bug fill a report at the CPAN RT bugtracker (https://rt.cpan.org/Ticket/Create.html?Queue=Net-OpenSSH-Compat
<https://rt.cpan.org/Ticket/Create.html?Queue=Net-OpenSSH-Compat>) or just send me an e-mail with the details.
Git repository
The source code repository is at https://github.com/salva/p5-Net-OpenSSH-Compat <https://github.com/salva/p5-Net-OpenSSH-Compat>.
My wishlist
If you like this module and you're feeling generous, take a look at my Amazon Wish List: <http://amzn.com/w/1WU1P6IR5QZ42>
Also consider contributing to the OpenSSH project this module builds upon: <http://www.openssh.org/donations.html>.
SEE ALSO
Net::OpenSSH, Net::OpenSSH::Compat::SSH2, Net::OpenSSH::Compat::Perl.
COPYRIGHT AND LICENSE
Copyright (C) 2011 by Salvador Fandino (sfandino@yahoo.com)
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or,
at your option, any later version of Perl 5 you may have available.
perl v5.14.2 2011-09-28 Net::OpenSSH::Compat(3pm)