Home > Archive > PERL Beginners > May 2007 > Net SSH Perl
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| jrpfinch 2007-05-22, 7:58 am |
| Hi gurus
I am trying to write a script that launches ssh sessions using
password authentication (i.e. I do not want to exchange keys). It
appears that the only way to do this is using Net::SSH::Perl. Is this
correct?
If so, then I am having difficulty installing it because one of the
prerequisites Math::Pari will not build on my Intel Solaris 9
machine. The first suspicious output appears when I run MakeFile.PL
and it downloads the PARI libraries:
Patching...
cd pari-2.1.7 ; patch -p1 < ../patches/patch-pari-unnormalized-float
Looks like a unified context diff.
done
cd pari-2.1.7 ; patch -p1 < ../patches/diff_2.1.7_-O
Looks like a unified context diff.
I can't seem to find a patch in there anywhere.
cd pari-2.1.7 ; patch -p1 < ../patches/diff_2.1.7_restart
Looks like a unified context diff.
The next patch looks like a unified context diff.
I can't seem to find a patch in there anywhere.
Finished patching...
Then, when I run make, it dies after:
/opt/SUNWspro/bin/cc -c -I .././pari-2.1.7/src -I.././pari-2.1.7/src/
headers -I.././pari-2.1.7/src/graph -I. -I/usr/local/include -
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"\" -
DXS_VERSION=\"\" -KPIC -Derr=pari_err -DSOLARIS -DDYNAMIC_PLOTTING -o
plotport.o .././pari-2.1.7/src/graph/plotport.c
".././pari-2.1.7/src/graph/plotport.c", line 437: left operand must be
modifiable lvalue: op "="
".././pari-2.1.7/src/graph/plotport.c", line 437: left operand must be
modifiable lvalue: op "="
".././pari-2.1.7/src/graph/plotport.c", line 437: left operand must be
modifiable lvalue: op "="
cc: acomp failed for .././pari-2.1.7/src/graph/plotport.c
*** Error code 2
make: Fatal error: Command failed for target `plotport.o'
Current working directory /.cpan/build/Math-Pari-2.010709/libPARI
*** Error code 1
make: Fatal error: Command failed for target `libPARI/libPARI.a'
This happens also, when I force it to use the pari-2.3.2 libraries and
also when I do 'perl MakeFile.PL machine=none'. Unfortunately, I do
not know C - the offending lines are:
441: /* Given coordinates of ends of a line, and labels l1 l2 attached
to the
442: ends, plot ticks where the label coordinate takes "round"
values */
443:
444: static void
445: rectticks(PARI_plot *WW, long ne,
446: double dx1, double dy1, double dx2, double dy2,
447: double l1, double l2, long flags)
448: {
449: long dx,dy,dxy,dxy1,x1,y1,x2,y2,nticks,n,n1,d
n;
450: double minstep, maxstep, step, l_min, l_max, minl, maxl, dl,
dtx, dty, x, y;
451: double ddx, ddy;
452: static double mult[3] = { 2./1., 5./2., 10./5. };
If anybody has any ideas, I would be very grateful.
thanks
jon
| |
| eishbut@googlemail.com 2007-05-23, 4:00 am |
| On May 22, 1:48 pm, jrpfinch <jrpfi...@gmail.com> wrote:
> Hi gurus
>
> I am trying to write a script that launches ssh sessions using
> password authentication (i.e. I do not want to exchange keys). It
> appears that the only way to do this is using Net::SSH::Perl. Is this
> correct?
>
> If so, then I am having difficulty installing it because one of the
> prerequisites Math::Pari will not build on my Intel Solaris 9
> machine. The first suspicious output appears when I run MakeFile.PL
> and it downloads the PARI libraries:
>
> Patching...
> cd pari-2.1.7 ; patch -p1 < ../patches/patch-pari-unnormalized-float
> Looks like a unified context diff.
> done
> cd pari-2.1.7 ; patch -p1 < ../patches/diff_2.1.7_-O
> Looks like a unified context diff.
> I can't seem to find a patch in there anywhere.
> cd pari-2.1.7 ; patch -p1 < ../patches/diff_2.1.7_restart
> Looks like a unified context diff.
> The next patch looks like a unified context diff.
> I can't seem to find a patch in there anywhere.
> Finished patching...
>
> Then, when I run make, it dies after:
>
> /opt/SUNWspro/bin/cc -c -I .././pari-2.1.7/src -I.././pari-2.1.7/src/
> headers -I.././pari-2.1.7/src/graph -I. -I/usr/local/include -
> D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"\" -
> DXS_VERSION=\"\" -KPIC -Derr=pari_err -DSOLARIS -DDYNAMIC_PLOTTING -o
> plotport.o .././pari-2.1.7/src/graph/plotport.c
> ".././pari-2.1.7/src/graph/plotport.c", line 437: left operand must be
> modifiable lvalue: op "="
> ".././pari-2.1.7/src/graph/plotport.c", line 437: left operand must be
> modifiable lvalue: op "="
> ".././pari-2.1.7/src/graph/plotport.c", line 437: left operand must be
> modifiable lvalue: op "="
> cc: acomp failed for .././pari-2.1.7/src/graph/plotport.c
> *** Error code 2
> make: Fatal error: Command failed for target `plotport.o'
> Current working directory /.cpan/build/Math-Pari-2.010709/libPARI
> *** Error code 1
> make: Fatal error: Command failed for target `libPARI/libPARI.a'
>
> This happens also, when I force it to use the pari-2.3.2 libraries and
> also when I do 'perl MakeFile.PL machine=none'. Unfortunately, I do
> not know C - the offending lines are:
>
> 441: /* Given coordinates of ends of a line, and labels l1 l2 attached
> to the
> 442: ends, plot ticks where the label coordinate takes "round"
> values */
> 443:
> 444: static void
> 445: rectticks(PARI_plot *WW, long ne,
> 446: double dx1, double dy1, double dx2, double dy2,
> 447: double l1, double l2, long flags)
> 448: {
> 449: long dx,dy,dxy,dxy1,x1,y1,x2,y2,nticks,n,n1,d
n;
> 450: double minstep, maxstep, step, l_min, l_max, minl, maxl, dl,
> dtx, dty, x, y;
> 451: double ddx, ddy;
> 452: static double mult[3] = { 2./1., 5./2., 10./5. };
>
> If anybody has any ideas, I would be very grateful.
>
> thanks
>
> jon
This might not be what you're looking for but you could
backquotes(``), system or exec to launch a pre-installed SSH client.
Sorry if this does help.
| |
| jrpfinch 2007-05-23, 4:00 am |
| I've worked around the problem by only using SSH protocol 1. This
only requires the Math::GMP module; not the Math::Pari module. If
anyone does have Math::Pari working though, I would be grateful to
know.
Many thanks
Jon
|
|
|
|
|