help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pkg: error running `make' for the struct package.


From: Tatsuro MATSUOKA
Subject: Re: pkg: error running `make' for the struct package.
Date: Wed, 20 Mar 2019 14:58:06 +0900 (JST)




----- Original Message -----
> From: Tatsuro MATSUOKA <
> To: mismichael >; "help-octave
> Cc: 
> Date: 2019/3/19, Tue 23:00
> Subject: Re: pkg: error running `make' for the struct package.
> 
> --- mismichael
>>  Hi,
>>  I am relatively fresh user of Octave hence I might need a bit more
>>  explanation on the installation of packages.
>> 
>>  I am using Octave 5.1.0 for Windows, zip package. I have no admin access to
>>  the machine I use and I am currently unable to install the software from
>>  installer.
>>  When I try to install package OPTIM I need STRUCT. I use following command
>>  to get STRUCT:
>>  /pkg install -forge -local struct/
>> 
>>  And this is what I get in return:
>>  /民In file included from error-helpers.cc:22:0:
>>  error-helpers.h:31:22: error: 'octave_execution_exception' does not 
> name a
>>  type; did you mean 'make_execution_exception'?
>>   void c_verror (const octave_execution_exception&, const char *, ...);
>>                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
>>                        make_execution_exception
>>  error-helpers.cc:36:17: error: 'octave_execution_exception' does 
> not name a
>>  type; did you mean 'make_execution_exception'?
>>   c_verror (const octave_execution_exception&, const char *fmt, ...)
>>                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
>>                   make_execution_exception
>>  error-helpers.cc: In function 'void _p_error(const char*, ...)':
>>  error-helpers.cc:60:8: error: 'cerr' is not a member of 
> 'std'
>>     std::cerr << msg;
>>          ^~~~
>>  error-helpers.cc:60:8: note: suggested alternative: 'errc'
>>     std::cerr << msg;
>>          ^~~~
>>          errc
>>  make: *** [Makefile:40: error-helpers.o] Error 1
>>  make: Entering directory
>>  '/c/Users/QQQ/AppData/Local/Temp/oct-WkD7TM/struct-1.0.15/src'
>>  CXXFLAGS="-g -O2 -Wno-deprecated-declarations"
>>  C:/Users/QQQ/Desktop/PORTAB~1/OCTAVE~1.0-W/mingw64/bin/mkoctfile-5.1.0.exe
>>  -c error-helpers.cc
>>  make: Leaving directory
>>  '/c/Users/gcimmi/AppData/Local/Temp/oct-WkD7TM/struct-1.0.15/src'
>> 
>>  pkg: error running `make' for the struct package.
>>  error: called from
>>      configure_make at line 99 column 9
>>      install at line 184 column 7
>>      pkg at line 441 column 9/
>>  Is there a way to istall the packages manually? I have tried also to
>>  download the package to my HDD and install it from there. Effect was the
>>  same.
>>  Thank you
> 
> AFAIK. struct package is pre-installed on octave for windows, and you need 
> not 
> install it .
> But you have to active it if install if you install octave from zip.
> See 
> http://wiki.octave.org/Octave_for_Microsoft_Windows
> 
> Tatsuro

I have confirmed that optim and struct packages are pre-installed 
Octave-5.1.0 for windows by 

>> pkg list>> pkg list
Package Name         | Version | Installation directory
---------------------+---------+-----------------------
 :
              optim  |   1.5.3 | ...\mingw64\share\octave\packages\optim-1.5.3


 :
             struct  |  1.0.15 | ...\mingw64\share\octave\packages\struct-1.0.15



You should run the post-install.bat file before running Octave the first time 
to reduce plot delays due to the Windows font cache and make the pre-installed 
packages visible to the system.

Before you use a package, you have to load it.
>> pkg load optim 

Tatsuro



reply via email to

[Prev in Thread] Current Thread [Next in Thread]