bugGNU Octave - Bugs: bug #40400, Optim installation is incomplete...

 
 

bug #40400: Optim installation is incomplete on Cygwin

Submitted by:  None
Submitted on:  Tue 29 Oct 2013 01:43:46 AM UTC  
 
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Installation Failure
Status: InvalidAssigned to: None
Originator Name: Heath RafteryOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.6.4
Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 29 Oct 2013 02:52:46 AM UTC, comment #2:

Oh dear, you're quite right. Amazing I hadn't found this already.

I used instructions at http://octave.sourceforge.net/index.html and didn't realise there was another step.

Thanks for quick reply and sorry for the invalid bug.

Anonymous
Tue 29 Oct 2013 01:58:05 AM UTC, comment #1:

Please see FAQ entry

http://wiki.octave.org/FAQ#I_have_installed_a_package_but_still_get_a_.22foo_undefined.22_error

You have probably installed the package successfully but not loaded it.

No need to copy files, packages are not installed into the same /usr/share/octave directory as Octave core is.

I'm closing as invalid, but feel free to comment on this report if I'm wrong.

Mike Miller <mtmiller>
Project Administrator
Tue 29 Oct 2013 01:43:46 AM UTC, original submission:

I have a current installation of Cygwin x64 (dll version 1.7.25), with the latest Octave package (3.6.4) installed. I wanted to use the expfit function from the optim package in octave-forge, so I the following from the Octave prompt:

pkg install -forge optim

After working through the dependencies, optim installed (albeit with some warnings about unusable help text and optimset: no defaults).

expfit remains undefined.

I noticed that in my home directory the octave-forge packages were in a folder called octave, and that ~/octave/optim-1.2.2/expfit.m existed. However, in /usr/share/octave/3.6.4/m/optimization/ only the following existed:

_all_opts_.m fminbnd.m fsolve.m glpk.m optimget.m PKG_ADD private sqp.m
expfit.m fminunc.m fzero.m lsqnonneg.m optimset.m pqpnonneg.m qp.m

Manually copying ~/octave/optim-1.2.2/expfit.m to /usr/share/octave/3.6.4/m/optimization/ resolved the problem and I could then run expfit from octave.

Why are only some of the optim packages actually installed in the octave package directory?

I tried the same procedure on Cygwin x86. In that case an octave-forge package is available. It installs optim-1.2.2 as well, but again the layout is like so:

/usr/share/octave/packages/optim-1.2.2/ contains expfit.m and friends

/usr/share/octave/3.6.4/m/optimization/ does not, only containing the same subset as in the x64 case.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 29 Oct 2013 01:58:05 AM UTCmtmillerStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1