octave-maintainers
[Top][All Lists]
Advanced

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

Re: error when installing io package


From: Philip Nienhuis
Subject: Re: error when installing io package
Date: Wed, 14 Jan 2015 12:25:43 -0800 (PST)

John W. Eaton wrote
> On 01/14/2015 12:22 PM, John W. Eaton wrote:
>> I noticed an error from movefile when installing the io package on
>> windows saying that there were no files to move.  Can anyone else
>> confirm this problem, or is it just me?  All I did was
>>
>>    pkg install -noauto -verbose io-2.2.6.tar.gz
>>
>> and the installation fails with the movefile "no files to move" error.
>>
>> Should this problem be fixed in pkg by avoiding the call to movefile if
>> there are no files to move, or should movefile simply issue a warning if
>> there are no files to move and return success?
> 
> After looking at this some more, it seems like the error is coming from 
> the post_install.m file in the io package.  That script seems to be 
> trying to move the PKG_ADD and PKG_DEL files after they are installed, 
> but the files are not where the post_install script expects to find 
> them.  Is this just a bug in the post_install script, or did pkg change 
> at some point and break the post_install script for this package?

I cannot reproduce those messages / errors.

I just installed io-226 on both Linux and Win7:

Linux:
=====
>> pkg install -verbose -noauto io-2.2.6.tar.gz
mkdir (/tmp/oct-0k96pT)
untar (io-2.2.6.tar.gz, /tmp/oct-0k96pT)
make: Entering directory '/tmp/oct-0k96pT/io/src'
mkoctfile csvexplode.cc
mkoctfile csv2cell.cc
mkoctfile csvconcat.cc
mkoctfile cell2csv.cc
mkoctfile -c xmlread.cc
mkoctfile -c xmltree_read.c
mkoctfile -c xmltree.c
mkoctfile xmlread.o xmltree_read.o xmltree.o
mkoctfile col2num.cc
mkoctfile num2col.cc
make: Leaving directory '/tmp/oct-0k96pT/io/src'
copyfile /tmp/oct-0k96pT/io/src/cell2csv.oct
/tmp/oct-0k96pT/io/src/col2num.oct /tmp/oct-0k96pT/io/src/csv2cell.oct
/tmp/oct-0k96pT/io/src/csvconcat.oct /tmp/oct-0k96pT/io/src/csvexplode.oct
/tmp/oct-0k96pT/io/src/num2col.oct /tmp/oct-0k96pT/io/src/xmlread.oct
/tmp/oct-0k96pT/io/inst/x86_64-unknown-linux-gnu-api-v49+
For information about changes from previous versions of the io package,
run'news io'.
>>

Windows 7:
=========
>> pkg install -verbose -noauto io-2.2.6.tar.gz
warning: creating installation directory
C:\Programs\Octave\octave64-3.9.0+-4.1.0+\share\octave\packages
warning: called from
    install at line 30 column 5
    pkg at line 394 column 9
mkdir (C:\Users\philip\AppData\Local\Temp\oct-2)
untar (io-2.2.6.tar.gz, C:\Users\philip\AppData\Local\Temp\oct-2)
make: Entering directory `/tmp/oct-2/io/src'
mkoctfile csvexplode.cc
mkoctfile csv2cell.cc
mkoctfile csvconcat.cc
mkoctfile cell2csv.cc
mkoctfile -c xmlread.cc
mkoctfile -c xmltree_read.c
mkoctfile -c xmltree.c
mkoctfile xmlread.o xmltree_read.o xmltree.o
mkoctfile col2num.cc
mkoctfile num2col.cc
make: Leaving directory `/tmp/oct-2/io/src'
copyfile C:\Users\philip\AppData\Local\Temp\oct-2\io\src\cell2csv.oct
C:\Users\philip\AppData\Local\Temp\oct-2\io\src\col2num.oct
C:\Users\philip\AppData\Local\Temp\oct-2\io\src\csv2cell.oct
C:\Users\philip\AppData\Local\Temp\oct-2\io\src\csvconcat.oct
C:\Users\philip\AppData\Local\Temp\oct-2\io\src\csvexplode.oct
C:\Users\philip\AppData\Local\Temp\oct-2\io\src\num2col.oct
C:\Users\philip\AppData\Local\Temp\oct-2\io\src\xmlread.oct
C:\Users\philip\AppData\Local\Temp\oct-2\io\inst\x86_64-w64-mingw32-api-v49+


For information about changes from previous versions of the io package, run
'news io'.
>>


That said, I vagely remember having read about this error message a while
back but IIRC it wasn't for the io package. Again IIRC, it had something to
do with permissions.
Could it be that the io package had been used just before you installed
it,so that the binary functions had been locked by the OS? That is an issue
I sometimes encounter, even after "pkg unload".

BTW the reason that PKG_ADD is moved by post_install.m is to avoid io
package functions being invoked before the io package (esp. the m-file
subdir) was fully loaded / added to the load path. This is outlined in
detail in the comments of post_install.m itself.

Philip




--
View this message in context: 
http://octave.1599824.n4.nabble.com/error-when-installing-io-package-tp4668131p4668134.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.



reply via email to

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