help-octave
[Top][All Lists]
Advanced

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

Package installation difficulty


From: 2NinerRomeo
Subject: Package installation difficulty
Date: Fri, 9 Sep 2011 09:39:56 -0700 (PDT)

I'm moving this from the thread:
http://octave.1599824.n4.nabble.com/octave-3-4-0-and-octave-forge-20110226-for-cygwin-released-tt3336262.html
octave 3.4.0 and octave-forge-20110226 for cygwin released 

In summary, I have attempted to install the control-2.1.55 package after
downloading, which failed.

 At Marco's suggestion, I have attempted moving the .gz package to /usr/src,
changed the permissions to 666 and attempted the install with -nomanual and
-verbose switches, which yielded the following output, which is exactly the
same as the original errors, but interleaved with what I presume are
scripted commands being echoed to the console:

octave:2> pkg install -noauto -verbose /usr/src/control-2.1.55.tar.gz
make: *** /tmp/oct-2899b8.1/control/src: No such file or directory.  Stop.
mkdir (/tmp/oct-2899b8.1)
untar (/usr/src/control-2.1.55.tar.gz, /tmp/oct-2899b8.1)
'make' returned the following error: 
error: called from `pkg>configure_make' in file
/usr/share/octave/3.4.2/m/pkg/pkg.m near line 1339, column 9
error: called from:
error:   /usr/share/octave/3.4.2/m/pkg/pkg.m at line 790, column 5
error:   /usr/share/octave/3.4.2/m/pkg/pkg.m at line 361, column 9

Marco also pointed out that the control-2.1.52 is part of the octave-forge
package, which I installed from the cygwin installer, and checked as
instructed, which appears to show the installation 

$ cygcheck -c -d |grep octave
octave                  3.4.2-1
octave-devel            3.4.2-1
octave-doc              3.4.2-1
octave-forge            20110730-1

additionally a "ver" command also shows the presence of control-2.1.52 
...
      combinatorics  |   1.0.9 |
/usr/share/octave/packages/combinatorics-1.0.9
            control  |  2.1.52 | /usr/share/octave/packages/control-2.1.52
     data-smoothing  |   1.2.0 |
/usr/share/octave/packages/data-smoothing-1.2.0
...

however, attempting to access a control function, for example 'tf' gets a
"not found" response.

Lukas  suggested attempting an install using the syntax "pkg install -forge
control", indicating that if I could install odepkg that way, control should
also work.  Odepkg gave me the output:

octave:4> pkg install -forge odepkg
conftest.cc:1:27: error: octave/config.h: No such file or directory
conftest.cc:2:28: error: octave/version.h: No such file or directory
conftest.cc:3:29: error: octave/defaults.h: No such file or directory
conftest.cc:27: error: expected ',' or ';' before 'OCTAVE_LOCALFCNFILEPATH'
conftest.cc:28: error: expected ',' or ';' before 'OCTAVE_LOCALOCTFILEPATH'
conftest.cc:29: error: expected ',' or ';' before 'OCTAVE_LOCALARCHLIBDIR'
conftest.cc:30: error: expected ',' or ';' before
'OCTAVE_CANONICAL_HOST_TYPE'
conftest.cc:31: error: expected ',' or ';' before 'OCTAVE_VERSION'
configure: error: Could not run /usr/bin/mkoctfile-3.4.2
the configure script returned the following error: checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for mkoctfile... /usr/bin/mkoctfile-3.4.2
error: called from `pkg>configure_make' in file
/usr/share/octave/3.4.2/m/pkg/pkg.m near line 1327, column 9
error: called from:
error:   /usr/share/octave/3.4.2/m/pkg/pkg.m at line 790, column 5
error:   /usr/share/octave/3.4.2/m/pkg/pkg.m at line 361, column 9

where attempting the same type syntax for control gives:

octave:4> pkg install -forge control
make: *** /tmp/oct-28988c.2/control/src: No such file or directory.  Stop.
'make' returned the following error: 
error: called from `pkg>configure_make' in file
/usr/share/octave/3.4.2/m/pkg/pkg.m near line 1339, column 9
error: called from:
error:   /usr/share/octave/3.4.2/m/pkg/pkg.m at line 790, column 5
error:   /usr/share/octave/3.4.2/m/pkg/pkg.m at line 361, column 9

Lukas mentioned that there might be something wrong with my compiler
toolchain, which strikes me as a reasonable possibility, although I know
little about it or how to fix it.  The farthest I have gone down that path
is to ensure that mkoctfile exists where octave was claiming it could not
run it:

$ ls /usr/bin/mkoctfile-3.4.2 -l
-rwxr-xr-x 1 AndrewE root 14757 Jul 21 05:57 /usr/bin/mkoctfile-3.4.2

I appreciate your patience,  

Andrew


--
View this message in context: 
http://octave.1599824.n4.nabble.com/Package-installation-difficulty-tp3802198p3802198.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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