RE: communications 1.2.2 package release

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

RE: communications 1.2.2 package release

Windhorn, Allen E [ACIM/LSA/MKT]


> -----Original Message-----
> From: Help-octave <help-octave-
> bounces+allen.windhorn=[hidden email]> On Behalf Of Nir
> Krakauer
>
> Communications 1.2.2 has been released on Octave Forge and is
> available for download [1].
>
> This new version contains modifications to enable installation on
> Octave 4.4 and newer [2].

Some problem exists with this:

>> pkg install -forge communications
error: pkg: could not download file communications-1.2.2.tar.gz from url https://packages.octave.org/dow
nload/communications-1.2.2.tar.gz
error: called from
    pkg at line 414 column 13

[Tried downloading from the web and got nothing, maybe local problem,
so clicked the "direct" link and got the file]

>> pkg install C:/Octave/Octave-5.1.0.0/home/communications-1.2.2.tar.gz
sh: line 1: 12272 Segmentation fault      (core dumped) MKOCTFILE='C:/Octave/OCTAVE~1.0/mingw64/bin/mkoc
tfile-5.1.0.exe' OCTAVE_CONFIG='C:/Octave/OCTAVE~1.0/mingw64/bin/octave-config-5.1.0.exe' OCTAVE='C:/Oct
ave/OCTAVE~1.0/mingw64/bin/octave-5.1.0.bat' ./configure CC=gcc
pkg: error running the configure script for communications.
error: called from
    configure_make at line 82 column 9
    install at line 184 column 7
    pkg at line 441 column 9

Thanks for any advice.

Regards,
Allen
--
Allen Windhorn P.E. (Mn), CEng| Senior Principal Engineer
Leroy-Somer Americas | Kato Engineering, Inc.
2075 Howard Dr. West | North Mankato, MN 56003 | USA
T +1 507-345-2782 | F +1 507-345-2798
[hidden email] | [hidden email]



Reply | Threaded
Open this post in threaded view
|

RE: communications 1.2.2 package release

Windhorn, Allen E [ACIM/LSA/MKT]
Nir,

> -----Original Message-----
> From: Nir Krakauer <[hidden email]>
>
> I don't know what the problem you encountered is. Can you try
> installing with the `-verbose` flag?

Not much help there:

>> pkg install -verbose C:/Octave/Octave-5.1.0.0/home/communications-1.2.2.tar.gz
mkdir (C:\Users\windhoal\AppData\Local\Temp\oct-X4FYum)
untar (C:\Octave\Octave-5.1.0.0\home\communications-1.2.2.tar.gz, C:\Users\windhoal\AppData\Local\Tem
p\oct-X4FYum)
sh: line 1:  2704 Segmentation fault      (core dumped) MKOCTFILE='C:/Octave/OCTAVE~1.0/mingw64/bin/m
koctfile-5.1.0.exe --verbose' OCTAVE_CONFIG='C:/Octave/OCTAVE~1.0/mingw64/bin/octave-config-5.1.0.exe
' OCTAVE='C:/Octave/OCTAVE~1.0/mingw64/bin/octave-5.1.0.bat' ./configure CC=gcc

pkg: error running the configure script for communications.
error: called from
    configure_make at line 82 column 9
    install at line 184 column 7
    pkg at line 441 column 9

The lines from configure_make are:

      cmd = ["cd '" src "'; " scenv "./configure " flags];
      [status, output] = shell (cmd, verbose);
      if (status != 0)
        rmdir (desc.dir, "s");
        disp (output);
82 => error ("pkg: error running the configure script for %s.", desc.name);
      endif

So it's trying to run a shell with a command like 'cd "src"; [scenv]./configure [flags]'
where scenv contains the name of the compiler?  I haven't used mingw or Unix
much lately.  I'm on Windows 10 here.

The system("cd ...") command doesn't seem to work on my machine; it has no
effect, i.e. if I am in C:/ directory and do system("cd /usr/bin") and system("dir")
I see I am still in the root directory.

Regards,
Allen

Reply | Threaded
Open this post in threaded view
|

RE: communications 1.2.2 package release

Windhorn, Allen E [ACIM/LSA/MKT]
From: Nir Krakauer <[hidden email]>

> It sounds like a problem with your Windows environment, which I don't know
> how to deal with. Probably you should just use a pre-compiled version of the
> package, cf. https://wiki.octave.org/wiki/index.php?title=Octave_for_
> Microsoft_Windows

That's where I started, and when that didn't work, I went on to the second
suggestion.

>> pkg install -forge communications
error: urlwrite: unable to open file
error: called from
    pkg at line 409 column 25

Maybe I'll just wait until the -forge option gets straightened out.  I'm not
using it just at the moment anyway.

Thanks for your help.

Regards,
Allen

Reply | Threaded
Open this post in threaded view
|

Re: communications 1.2.2 package release

nrjank
On Wed, Jan 8, 2020 at 1:36 PM Nicholas Jankowski <[hidden email]> wrote:
On Wed, Jan 8, 2020 at 1:12 PM Windhorn, Allen E [ACIM/LSA/MKT] <[hidden email]> wrote:
From: Nir Krakauer <[hidden email]>



Octave 5.1.0 on windows 10:

running into the same -forge problem here.

>> pkg install -forge communications
error: pkg: could not download file communications-1.2.2.tar.gz from url https://packages.octave.org/download/communications-1.2.2.tar.gz
error: called from
    pkg at line 414 column 13

So, not sure what the -forge issues is, but manually download from path shown in the error works fine.

then 
>> pkg install communications-1.1.1.tar.gz

works fine with a warning.

>> pkg install communications-1.1.1.tar.gz
warning: doc_cache_create: unusable help text found in file 'commsimages'
For information about changes from previous versions of the communications package, run 'news communications'.

from the error message it sounds like you have write permission errors.  We had this discussion before, some windows systems prevent execution in the profile temp folder where Octave is trying to compile the package.  so now on my system I made a separate temp folder that I point Octave to use at startup.

e.g., I made a C:\Octave\Temp

and added:  
setenv('tmpdir','c:\Octave\Temp\')

to my C:\Users\*username*\.octaverc  

you can try manually executing that setenv command with an appropriate alternate folder and see if that lets it compile.



regarding the pkg -forge issue, I just ran a pkg update and it's started pulling the next pkg without any errors (database-2.4.4.tar.gz).  when it finishes I'll try a couple manual pkg install -forge and see if it's just an issue getting the communications pkg.