From bug-octave-request at bevo dot che dot wisc dot edu Tue Aug 8 04:09:54 2000 Subject: Re: popen-pclose From: Stef Pillaert To: Dirk Eddelbuettel Cc: bug-octave at bevo dot che dot wisc dot edu Date: Tue, 8 Aug 2000 10:56:55 +0200 Op ma, 07 aug 2000, schreef Dirk Eddelbuettel: > "Stef" == KAHO writes: > Stef> I recently installed 2.1.31, and I still have the same problem. Could > Stef> this be related to the problems I also have with popen2 (see a recent > Stef> bug-report I did send a few days ago)? > > As JWE, I don't have this (see below). Could it be your C++ libraries? > I seem to have C++ recompiled for libc 6.1 on my Debian box. > > Cheers, Dirk > > edd at sonny:~> ldd /usr/bin/octave-2.1.31 > liboctinterp.so.2.1.31 => /usr/lib/octave-2.1.31/liboctinterp.so.2.1.31 (0x40014000) > liboctave.so.2.1.31 => /usr/lib/octave-2.1.31/liboctave.so.2.1.31 (0x401e5000) > libcruft.so.2.1.31 => /usr/lib/octave-2.1.31/libcruft.so.2.1.31 (0x402fb000) > libreadline.so.4 => /lib/libreadline.so.4 (0x40400000) > libncurses.so.5 => /lib/libncurses.so.5 (0x40425000) > libf77blas.so.2 => /usr/lib/libf77blas.so.2 (0x40463000) > libcblas.so.2 => /usr/lib/libcblas.so.2 (0x4047a000) > libatlas.so.2 => /usr/lib/libatlas.so.2 (0x4049b000) > libdl.so.2 => /lib/libdl.so.2 (0x406a8000) > libz.so.1 => /usr/lib/libz.so.1 (0x406ad000) > libm.so.6 => /lib/libm.so.6 (0x406bc000) > libstdc++-libc6.1-2.so.3 => /usr/lib/libstdc++-libc6.1-2.so.3 (0x406d9000) > libc.so.6 => /lib/libc.so.6 (0x4071e000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > > > edd at sonny:~> octave2.1 > GNU Octave, version 2.1.31 (i386-pc-linux-gnu). > Copyright (C) 1996, 1997, 1998, 1999, 2000 John W. Eaton. > This is free software with ABSOLUTELY NO WARRANTY. > For details, type `warranty'. > > *** This is a development version of Octave. Development releases > *** are provided for people who want to help test, debug, and improve > *** Octave. > *** > *** If you want a stable, well-tested version of Octave, you should be > *** using one of the stable releases (when this development release > *** was made, the latest stable version was 2.0.16). > > octave2.1:1> fid=popen("ls","r") > fid = > { > id = 3 > name = ls > mode = r > arch = native > status = open > } > octave2.1:2> pclose(fid) > ans = 0 > octave2.1:3> fid > fid = > { > id = 3 > name = ls > mode = r > arch = native > status = closed > } > octave2.1:4> fid=popen("ls","r") > fid = > { > id = 3 > name = ls > mode = r > arch = native > status = open > } > > -- > According to the latest figures, 43% of all statistics are totally worthless. This is what I get: ldd /usr/local/bin/octave liboctinterp.so.2.1.31 => /usr/local/lib/octave-2.1.31/liboctinterp.so.2.1.31 (0x40015000) liboctave.so.2.1.31 => /usr/local/lib/octave-2.1.31/liboctave.so.2.1.31 (0x401d8000) libcruft.so.2.1.31 => /usr/local/lib/octave-2.1.31/libcruft.so.2.1.31 (0x402ed000) libncurses.so.4 => /usr/lib/libncurses.so.4 (0x40339000) libdl.so.2 => /lib/libdl.so.2 (0x4037c000) libz.so.1 => /usr/lib/libz.so.1 (0x40380000) libm.so.6 => /lib/libm.so.6 (0x4038f000) libstdc++-libc6.1-1.so.2 => /usr/lib/libstdc++-libc6.1-1.so.2 (0x403ac000) libc.so.6 => /lib/libc.so.6 (0x403ee000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) Do I have to upgrade something to make it work? Thanks, Stef. ----------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.che.wisc.edu/octave/octave.html How to fund new projects: http://www.che.wisc.edu/octave/funding.html Subscription information: http://www.che.wisc.edu/octave/archive.html -----------------------------------------------------------------------