From: Warren P. <wpo...@ve...> - 2001-04-18 14:15:19
|
Hello, I have a problem running 'make test' (Expect-1.11) as an ordinary user - works fine as root $ make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.00502/irix-n32 -mips3 -I/usr/local/lib/perl5/5.00502 test.pl 1..7 ok 1 Expect: Could not assign a pty at blib/lib/Expect.pm line 87. Expect: Could not assign a pty at blib/lib/Expect.pm line 87. *** Error code 22 (bu21) The line it's complaining about (Expect.pm line 87): die "$class: Could not assign a pty" unless $self->IO::Pty::ttyname(); Is this a permissions problem (something I can fix)? Or ??? I plan to have my Expect script called from a CGI script so I don't want to have to run it as root - I would prefer to 'su' from within my expect script - I have root access to this box and can set up whatever (almost) I need. Thanks, Warren -------------[ perl -V ]---------------- $ perl -V Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration: Platform: osname=irix, osvers=6.5, archname=IP27-irix uname='irix64 nexus 6.4 02121744 ip27 ' hint=previous, useposix=true, d_sigaction=define usethreads=undef useperlio=define d_sfio=define Compiler: cc='cc -n32 -mips3', optimize='-O3', gccversion= cppflags='-D_BSD_TYPES -D_BSD_TIME -OPT:Olimit=0 -I/u/rford/buildperl/sfio/i nclude -I/usr/local/include -I/u/local/n32msql2/include -DLANGUAGE_C' ccflags ='-D_BSD_TYPES -D_BSD_TIME -woff 1009,1110,1184 -OPT:Olimit=0 -I/u/rford/buildperl/sfio/include -I/usr/local/ include -I/u/local/n32msql2/include -DLANGUAGE_C' stdchar='unsigned char', d_stdstdio=undef, usevfork=false intsize=4, longsize=4, ptrsize=4, doublesize=8 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 alignbytes=8, usemymalloc=n, prototype=define Linker and Libraries: ld='ld', ldflags =' -L/usr/local/lib32 -L/usr/local/lib -L/u/rford/buildperl/sfio/lib' libpth=/usr/local/lib /usr/lib32 /lib32 /lib /usr/lib libs=-lgdbm -lm -lc -lsfio libc=/usr/lib32/libc.so, so=so, useshrplib=true, libperl=libperl.so Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, cdlflags=' -Wl,-rpath,/usr/local/lib/perl5/5.00502/irix-n32-mips3/CORE' cccdlflags=' ', lddlflags='-n32 -shared -L/usr/local/lib32 -L/usr/local/lib -L/u/rford/build perl/sfio/lib' Characteristics of this binary (from libperl): Built under irix Compiled at Dec 10 1998 11:41:39 @INC: /usr/local/lib/perl5/5.00502/irix-n32-mips3 /usr/local/lib/perl5/5.00502 /usr/local/lib/perl5/site_perl/5.005/irix-n32-mips3 /usr/local/lib/perl5/site_perl/5.005 . |
From: Simon T. <si...@un...> - 2001-04-18 22:54:58
|
Warren, > I have a problem running 'make test' (Expect-1.11) as an ordinary user - > works fine as root [snip] > Expect: Could not assign a pty at blib/lib/Expect.pm line 87. I had the same problem at an early revision of Caldera Open Linux (2.2 I think). Though in my case, I had the problem with expect/tcl, not expect.pm. The OS was not configured to grant additional pty's (psuedo terminals) to non-root users. I suspect this may be a kernel configuration issue for Irix, but I have no experience with that Unix. I believe that this was the solution to the problem on Caldera Linux, but I didn't have to go down that path as I upgraded the OS, and the problem went away. You may be able to find a quick answer by searching for the keywords "Irix" and "pty" on the net. Hope this helps. Regards, Simon Taylor -- (+613 9568 2005) Unisolve Pty Ltd Melbourne, Australia |
From: Roland G. <r.g...@xs...> - 2001-04-20 08:43:55
|
> > I have a problem running 'make test' (Expect-1.11) as an ordinary user - > > works fine as root > > [snip] > > > Expect: Could not assign a pty at blib/lib/Expect.pm line 87. > > I had the same problem at an early revision of Caldera Open Linux > (2.2 I think). Though in my case, I had the problem with expect/tcl, not > expect.pm. > > The OS was not configured to grant additional pty's (pseudo terminals) to > non-root users. > > I suspect this may be a kernel configuration issue for Irix, but I have no > experience with that Unix. I believe that this was the solution to the > problem on Caldera Linux, but I didn't have to go down that path as I > upgraded the OS, and the problem went away. Can anyone verify this? I'd like to put that into the FAQ. Roland -- RGi...@cp... |
From: Warren P. <wpo...@ve...> - 2001-04-20 13:02:14
|
I installed this at home on my linux box (RH6.1) - no problem with 'make test' as either myself of root EXCEPT that test #7 failed. One of our SA guys (at work) is trying to figure out what the pty problem is on the IRIX box - I'll let you know what he finds out. Test#7 - you'll probably have to change the test - there's no "version" in the perl5.6.0 'perl -v'. -------[ perl5.6.0 ]----------- # perl -v This is perl, v5.6.0 built for IP27-irix Copyright 1987-2000, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5.0 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page. --------[ perl 5.005_02 ]---------- $ perl -v This is perl, version 5.005_02 built for IP27-irix Copyright 1987-1998, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5.0 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page. -----Original Message----- From: exp...@li... [mailto:exp...@li...]On Behalf Of Roland Giersig Sent: Friday, April 20, 2001 4:44 AM To: wpo...@ve... Cc: exp...@li... Subject: Re: [Expectperl-discuss] 'make test' as non-root user? > > I have a problem running 'make test' (Expect-1.11) as an ordinary user - > > works fine as root > > [snip] > > > Expect: Could not assign a pty at blib/lib/Expect.pm line 87. > > I had the same problem at an early revision of Caldera Open Linux > (2.2 I think). Though in my case, I had the problem with expect/tcl, not > expect.pm. > > The OS was not configured to grant additional pty's (pseudo terminals) to > non-root users. > > I suspect this may be a kernel configuration issue for Irix, but I have no > experience with that Unix. I believe that this was the solution to the > problem on Caldera Linux, but I didn't have to go down that path as I > upgraded the OS, and the problem went away. Can anyone verify this? I'd like to put that into the FAQ. Roland -- RGi...@cp... _______________________________________________ Expectperl-discuss mailing list Exp...@li... http://lists.sourceforge.net/lists/listinfo/expectperl-discuss |
From: Warren P. <wpo...@ve...> - 2001-04-23 14:11:13
|
Preliminary report from our SA folks regarding 'make test' failure as non-root on IRIX box: "/usr/sbin/mkpts should be 4755 not 700 for this to work" They're checking the security implications before making the change permanent. -----Original Message----- From: exp...@li... [mailto:exp...@li...]On Behalf Of Warren Pollans Sent: Friday, April 20, 2001 9:05 AM To: exp...@li... Cc: r.g...@xs... Subject: RE: [Expectperl-discuss] 'make test' as non-root user? I installed this at home on my linux box (RH6.1) - no problem with 'make test' as either myself of root EXCEPT that test #7 failed. One of our SA guys (at work) is trying to figure out what the pty problem is on the IRIX box - I'll let you know what he finds out. Test#7 - you'll probably have to change the test - there's no "version" in the perl5.6.0 'perl -v'. -------[ perl5.6.0 ]----------- # perl -v This is perl, v5.6.0 built for IP27-irix Copyright 1987-2000, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5.0 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page. --------[ perl 5.005_02 ]---------- $ perl -v This is perl, version 5.005_02 built for IP27-irix Copyright 1987-1998, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5.0 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page. -----Original Message----- From: exp...@li... [mailto:exp...@li...]On Behalf Of Roland Giersig Sent: Friday, April 20, 2001 4:44 AM To: wpo...@ve... Cc: exp...@li... Subject: Re: [Expectperl-discuss] 'make test' as non-root user? > > I have a problem running 'make test' (Expect-1.11) as an ordinary user - > > works fine as root > > [snip] > > > Expect: Could not assign a pty at blib/lib/Expect.pm line 87. > > I had the same problem at an early revision of Caldera Open Linux > (2.2 I think). Though in my case, I had the problem with expect/tcl, not > expect.pm. > > The OS was not configured to grant additional pty's (pseudo terminals) to > non-root users. > > I suspect this may be a kernel configuration issue for Irix, but I have no > experience with that Unix. I believe that this was the solution to the > problem on Caldera Linux, but I didn't have to go down that path as I > upgraded the OS, and the problem went away. Can anyone verify this? I'd like to put that into the FAQ. Roland -- RGi...@cp... _______________________________________________ Expectperl-discuss mailing list Exp...@li... http://lists.sourceforge.net/lists/listinfo/expectperl-discuss _______________________________________________ Expectperl-discuss mailing list Exp...@li... http://lists.sourceforge.net/lists/listinfo/expectperl-discuss |