syntax error when pkg install io-xxx.tar.gz package

View: New views
7 Messages — Rating Filter:   Alert me  

syntax error when pkg install io-xxx.tar.gz package

by pauljoseph :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have just build Octave 3.0.1 from source in Kubuntu hardy.
And when I tried to install the io-xxx.tar.gz package, I got this error

octave:2> pkg install io-1.0.5.tar.gz
parse error:

  syntax error

>>> pkg install io-1.0.5.tar.gz
                   ^

Does anyone else experience this problem? any solution?

I didn't have problem when I switch back to 3.0.0

Re: syntax error when pkg install io-xxx.tar.gz package

by Tatsuro MATSUOKA-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello

Your information is not enough to solve the problems.

please use

pkg install -verbose io-1.0.5.tar.gz

to get more detailed information.

Or please extract io-1.0.5.tar.gz and at extracted io-1.0.5/src  directry
try ./configure and make


The latter gives more detailed infomation.

Regards

Tatsuro

--- pauljoseph <oka.kurniawan@...> wrote:

>
> I have just build Octave 3.0.1 from source in Kubuntu hardy.
> And when I tried to install the io-xxx.tar.gz package, I got this error
>
> octave:2> pkg install io-1.0.5.tar.gz
> parse error:
>
>   syntax error
>
> >>> pkg install io-1.0.5.tar.gz
>                    ^
>
> Does anyone else experience this problem? any solution?
>
> I didn't have problem when I switch back to 3.0.0
> --
> View this message in context:
> http://www.nabble.com/syntax-error-when-pkg-install-io-xxx.tar.gz-package-tp17396269p17396269.html
> Sent from the Octave - General mailing list archive at Nabble.com.
>
> _______________________________________________
> Help-octave mailing list
> Help-octave@...
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>


--------------------------------------
GANBARE! NIPPON! Win your ticket to Olympic Games 2008.
http://pr.mail.yahoo.co.jp/ganbare-nippon/
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: syntax error when pkg install io-xxx.tar.gz package

by pauljoseph :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Tatsuro MATSUOKA-2 wrote:
please use

pkg install -verbose io-1.0.5.tar.gz

to get more detailed information.

Or please extract io-1.0.5.tar.gz and at extracted io-1.0.5/src  directry
try ./configure and make
This is what I got when i type pkg install -verbose:

octave:1> pkg install -verbose io-1.0.5.tar.gz
parse error:

  syntax error

>>> pkg install -verbose io-1.0.5.tar.gz
                   ^

I didn't get anything when I type ./configure in io-1.0.5/ and when I typed make I got these:

make[1]: Entering directory `/home/kurniawano/Download/NumericalComputation/Octave/io-1.0.5/src'
mkoctfile dlmread.cc
dlmread.cc:20:20: error: config.h: No such file or directory
dlmread.cc:25:24: error: octave/oct.h: No such file or directory
dlmread.cc:26:28: error: octave/lo-ieee.h: No such file or directory
dlmread.cc:28: error: expected constructor, destructor, or type conversion before ‘(’ token
make[1]: *** [dlmread.oct] Error 1
make[1]: Leaving directory `/home/kurniawano/Download/NumericalComputation/Octave/io-1.0.5/src'
make: *** [build] Error 2



Re: syntax error when pkg install io-xxx.tar.gz package

by John W. Eaton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 22-May-2008, pauljoseph wrote:

|
|
|
| Tatsuro MATSUOKA-2 wrote:
| >
| > please use
| >
| > pkg install -verbose io-1.0.5.tar.gz
| >
| > to get more detailed information.
| >
| > Or please extract io-1.0.5.tar.gz and at extracted io-1.0.5/src  directry
| > try ./configure and make
| >
|
| This is what I got when i type pkg install -verbose:
|
| octave:1> pkg install -verbose io-1.0.5.tar.gz
| parse error:
|
|   syntax error
|
| >>> pkg install -verbose io-1.0.5.tar.gz

Does

  mark_as_command ("pkg")
  pkg install -verbose io-1.0.5.tar.gz

work?

If so, you need to find out why this is not happening automatically.
Normally, there would be a PKG_ADD file in the same directory as the
pkg.m file that contains does the mark_as_command thing for pkg.  Did
your build and install finish properly?

jwe
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: syntax error when pkg install io-xxx.tar.gz package

by pauljoseph :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


John W. Eaton wrote:
Does

  mark_as_command ("pkg")
  pkg install -verbose io-1.0.5.tar.gz

work?

If so, you need to find out why this is not happening automatically.
Normally, there would be a PKG_ADD file in the same directory as the
pkg.m file that contains does the mark_as_command thing for pkg.  Did
your build and install finish properly?

jwe
This what I got

octave:2> mark_as_command("pkg")
octave:3> pkg install -verbose io-1.0.5.tar.gz
error: `pkg' undefined near line 3 column 1

I checked in "share/octave/3.0.1/m/pkg" and found pkg.m, as well as PKG_ADD which contains this line:
mark_as_command pkg

I tried to rebuild it, so I did make distclean, and typed
./configure --prefix=/myinstalldir/

I think configure works fine. It gives me this
--------
Octave is now configured for i686-pc-linux-gnu

  Source directory:     .
  Installation prefix:  /home/kurniawano/Programs/Octave3.0.1/
  C compiler:           gcc  -mieee-fp  -Wall -W -Wshadow -g -O2
  C++ compiler:         g++  -mieee-fp  -Wall -W -Wshadow -Wold-style-cast -g -O2
  Fortran compiler:     g77 -O -mieee-fp
  Fortran libraries:     -L/usr/lib/gcc/i486-linux-gnu/3.4.6 -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../.. -L/lib/../lib -L/usr/lib/../lib -lz -lfrtbegin -lg2c -lm
  BLAS libraries:       -llapack -lblas
  FFTW libraries:       -lfftw3
  GLPK libraries:       -lglpk
  UMFPACK libraries:    -lumfpack
  AMD libraries:        -lamd
  CAMD libraries:       -lcamd
  COLAMD libraries:     -lcolamd
  CCOLAMD libraries:    -lccolamd
  CHOLMOD libraries:    -lcholmod
  CXSPARSE libraries:   -lcxsparse
  HDF5 libraries:
  CURL libraries:
  REGEX libraries:
  QHULL libraries:      -lqhull
  LIBS:                 -lreadline  -lncurses -ldl -lz -lm
  Default pager:        less
  gnuplot:              gnuplot

  Do internal array bounds checking:  false
  Build static libraries:             false
  Build shared libraries:             true
  Dynamic Linking:                    true (dlopen)
  Include support for GNU readline:   true
  64-bit array dims and indexing:     false

configure: WARNING: I didn't find gperf, but it's only a problem if you need to reconstruct oct-gperf.h
configure: WARNING: HDF5 library not found.  Octave will not be able to save or load HDF5 data files.
configure: WARNING: PCRE library not found.  This will result in some loss of functionality for the regular expression matching functions.
configure:

NOTE: libraries may be skipped if a library is not found OR
      if the library on your system is missing required features.

-----------
and then I typed "make" and it seems ok. it gives me this

---------
Octave successfully built.  Now choose from the following:

   ./run-octave    - to run in place to test before installing
   make check      - to run the tests
   make install    - to install

make[1]: Leaving directory `/home/kurniawano/Download/NumericalComputation/Octave/octave-3.0.1'
-----------

and if I typed "make check" it gives me

------------
Summary:

  PASS   3721
  FAIL      2

There were 3 expected failures (see fntests.log for details).

Expected failures are known bugs. Please help improve
Octave by contributing fixes for them.

There were 175 skipped tests (see fntest.log for details).
Skipped tests are features that are disabled in this version
of Octave as the needed libraries were not present when Octave
was built

1508 (of 1671) files have no tests.  Please help improve Octave by
contributing tests for these files (see the list in the file fntests.log).

make[2]: Leaving directory `/home/kurniawano/Download/NumericalComputation/Octave/octave-3.0.1/test'
make[1]: Leaving directory `/home/kurniawano/Download/NumericalComputation/Octave/octave-3.0.1'
-----------

And I couldn't find any error also after make install. But I still have the same error.


Re: syntax error when pkg install io-xxx.tar.gz package

by pauljoseph :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

John W. Eaton wrote:
Did your build and install finish properly?

jwe
I have rebuild my Octave 3.0.1 and it finishes successfuly, I did a make check as well. But I still couldn't get pkg install. the function pkg is undefined.

I couldn't do
% help pkg

if I type
%pkg
error: `pkg' undefined near line 3 column 1

please help. Thanks.

Re: syntax error when pkg install io-xxx.tar.gz package

by pauljoseph :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


pauljoseph wrote:
I have rebuild my Octave 3.0.1 and it finishes successfuly, I did a make check as well. But I still couldn't get pkg install. the function pkg is undefined.

I couldn't do
% help pkg

if I type
%pkg
error: `pkg' undefined near line 3 column 1
I have managed to solve my problem. The problem is that I previously installed Octave 3.0.0 in a non-standard directory and so I set OCTAVE_HOME to my Octave 3.0.0 installation directory.

When I installed Octave 3.0.1, it successfully built. And when I ran

./run-octave

from the installation directory I can get some result when typing "pkg". But after I did a make install, the same error occurs.

The cause of the problem is that I didn't set my OCTAVE_HOME to the new installation directory. After I set this variable to the new installation directory, it works fine.

Thanks.