configure problem

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

configure problem

michaelschmid1@bluewin.ch
Hi all

I try to compile octave 2.9.4 on ubuntu-linux ...
but I get some errors in ./configure ...

configure:25031: result: no
configure:25050: WARNING: I couldn't find -ltermcap, -lterminfo,
-lncurses, -lcurses, or -ltermlib!
configure:25066: checking for rl_set_keyboard_input_timeout in -lreadline
configure:25104: gcc -o conftest -g -O2   conftest.c -lreadline  -ldl
-lm  >&5
/usr/local/lib/libreadline.so: undefined reference to `tgetnum'
/usr/local/lib/libreadline.so: undefined reference to `tgoto'
/usr/local/lib/libreadline.so: undefined reference to `tgetflag'
/usr/local/lib/libreadline.so: undefined reference to `BC'
/usr/local/lib/libreadline.so: undefined reference to `tputs'
/usr/local/lib/libreadline.so: undefined reference to `PC'
/usr/local/lib/libreadline.so: undefined reference to `tgetent'
/usr/local/lib/libreadline.so: undefined reference to `UP'
/usr/local/lib/libreadline.so: undefined reference to `tgetstr'
collect2: ld returned 1 exit status
configure:25110: $? = 1
configure: failed program was:
| /* confdefs.h.  */

I don't know what is -ltermcap, -lterminfo, -lncurses ....
I have installed the ncurses libraries .. libncurses.so.5 or so ...
also installed is readline 4.3 and readline 5.xx

I have no idea what is missing on the system ...

thanks

Michael



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

Re: configure problem

michaelschmid1@bluewin.ch
sorry for answering on my own mail..

./configure runs if I add following option:
--disable-readline ...
readline are "only" libraries, or not? on gnu readline homepage I can
donwload only libraries and
I have already installed them ... waht's wrong with the installation?

thanks again
Michael

Michael Schmid wrote:

> Hi all
>
> I try to compile octave 2.9.4 on ubuntu-linux ...
> but I get some errors in ./configure ...
>
> configure:25031: result: no
> configure:25050: WARNING: I couldn't find -ltermcap, -lterminfo,
> -lncurses, -lcurses, or -ltermlib!
> configure:25066: checking for rl_set_keyboard_input_timeout in -lreadline
> configure:25104: gcc -o conftest -g -O2   conftest.c -lreadline  -ldl
> -lm  >&5
> /usr/local/lib/libreadline.so: undefined reference to `tgetnum'
> /usr/local/lib/libreadline.so: undefined reference to `tgoto'
> /usr/local/lib/libreadline.so: undefined reference to `tgetflag'
> /usr/local/lib/libreadline.so: undefined reference to `BC'
> /usr/local/lib/libreadline.so: undefined reference to `tputs'
> /usr/local/lib/libreadline.so: undefined reference to `PC'
> /usr/local/lib/libreadline.so: undefined reference to `tgetent'
> /usr/local/lib/libreadline.so: undefined reference to `UP'
> /usr/local/lib/libreadline.so: undefined reference to `tgetstr'
> collect2: ld returned 1 exit status
> configure:25110: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
>
> I don't know what is -ltermcap, -lterminfo, -lncurses ....
> I have installed the ncurses libraries .. libncurses.so.5 or so ...
> also installed is readline 4.3 and readline 5.xx
>
> I have no idea what is missing on the system ...
>
> thanks
>
> Michael
>
>
>
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
>
> Octave's home on the web:  http://www.octave.org
> How to fund new projects:  http://www.octave.org/funding.html
> Subscription information:  http://www.octave.org/archive.html
> -------------------------------------------------------------
>
>



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

Re: configure problem

Quentin Spencer
In reply to this post by michaelschmid1@bluewin.ch
Michael Schmid wrote:

> Hi all
>
> I try to compile octave 2.9.4 on ubuntu-linux ...
> but I get some errors in ./configure ...
>
> configure:25031: result: no
> configure:25050: WARNING: I couldn't find -ltermcap, -lterminfo,
> -lncurses, -lcurses, or -ltermlib!
> configure:25066: checking for rl_set_keyboard_input_timeout in -lreadline
> configure:25104: gcc -o conftest -g -O2   conftest.c -lreadline  -ldl
> -lm  >&5
> /usr/local/lib/libreadline.so: undefined reference to `tgetnum'
> /usr/local/lib/libreadline.so: undefined reference to `tgoto'
> /usr/local/lib/libreadline.so: undefined reference to `tgetflag'
> /usr/local/lib/libreadline.so: undefined reference to `BC'
> /usr/local/lib/libreadline.so: undefined reference to `tputs'
> /usr/local/lib/libreadline.so: undefined reference to `PC'
> /usr/local/lib/libreadline.so: undefined reference to `tgetent'
> /usr/local/lib/libreadline.so: undefined reference to `UP'
> /usr/local/lib/libreadline.so: undefined reference to `tgetstr'
> collect2: ld returned 1 exit status
> configure:25110: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
>
> I don't know what is -ltermcap, -lterminfo, -lncurses ....
> I have installed the ncurses libraries .. libncurses.so.5 or so ...
> also installed is readline 4.3 and readline 5.xx


In addition to the libraries themselves you need to install the
development headers associated with them. Since Ubuntu is basically
Debian, I assume they all have -dev extensions, so you need to install
termcap-dev, etc.

-Quentin



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

Re: configure problem

James R. Phillips-2


--- Quentin Spencer <[hidden email]> wrote:

> Michael Schmid wrote:
>
> > Hi all
> >
> > I try to compile octave 2.9.4 on ubuntu-linux ...
> > but I get some errors in ./configure ...
> >
> > configure:25031: result: no
> > configure:25050: WARNING: I couldn't find -ltermcap, -lterminfo,
> > -lncurses, -lcurses, or -ltermlib!
> > configure:25066: checking for rl_set_keyboard_input_timeout in -lreadline
> > configure:25104: gcc -o conftest -g -O2   conftest.c -lreadline  -ldl
> > -lm  >&5
> > /usr/local/lib/libreadline.so: undefined reference to `tgetnum'
> > /usr/local/lib/libreadline.so: undefined reference to `tgoto'
> > /usr/local/lib/libreadline.so: undefined reference to `tgetflag'
> > /usr/local/lib/libreadline.so: undefined reference to `BC'
> > /usr/local/lib/libreadline.so: undefined reference to `tputs'
> > /usr/local/lib/libreadline.so: undefined reference to `PC'
> > /usr/local/lib/libreadline.so: undefined reference to `tgetent'
> > /usr/local/lib/libreadline.so: undefined reference to `UP'
> > /usr/local/lib/libreadline.so: undefined reference to `tgetstr'
> > collect2: ld returned 1 exit status
> > configure:25110: $? = 1
> > configure: failed program was:
> > | /* confdefs.h.  */
> >
> > I don't know what is -ltermcap, -lterminfo, -lncurses ....
> > I have installed the ncurses libraries .. libncurses.so.5 or so ...
> > also installed is readline 4.3 and readline 5.xx
>
>
> In addition to the libraries themselves you need to install the
> development headers associated with them. Since Ubuntu is basically
> Debian, I assume they all have -dev extensions, so you need to install
> termcap-dev, etc.
>
> -Quentin
>
>

I have found that the easiest way to identify necessary development libraries
on Debian/Ubuntu is to download the source package for a version of octave
already available in the repositories.  For example, "apt-get source octave2.1"
will download the source package for octave2.1 in your current directory.
Check the file with the ".dsc" extension, as this gives all the prerequisites
to build the package.

Another approach is "sudo apt-get build-depends octave2.1".  This automates the
installation of the build dependencies for the octave2.1 package.  Most likely
this will pick up the build dependencies (or at least most of them) for your
octave 2.9.4 build as well.




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

sockets and C#

dastew
I have C# talking through a socket to Octave and getting the results
back to C#.
If any one wants it send me an Email.

I am now going to use it to add interactive graphics for root locus
design problems.

the steps are :
!) from C# sent the transfer function to Octave.
2) Have Octave do a root locus.
3) bring the data back to c#.
4) plot the data in C#
5) use the mouse to find the gain at a point on the curve
 or move a pole or a zero
6) send the new data to Octave
repeat until the user is satisfied with the results.

I hope to make it similar to the way Matlab does it.

I am doing this for my students and thought I would see what ideas the
list folks might have.
Comments are welcome.

Doug Stewart



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

getting info about diary command

Corbin Champion
Is there a way to determine if diary is currently on and if so what file it
is writing to?
Also is there a way to do a command, but not have it show up in the diary,
like evalc in Matlab?
Thanks!
Corbin




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

RE: getting info about diary command

Corbin Champion

Did anyone have any thoughts about this?  Are there environment variables
set up that can be checked to see if the diary is on and what file it is
writing to?  Is there a way to run a command, but not have it recorded into
diary even if it is on?
Thanks in advance!
Corbin

>From: "Corbin Champion" <[hidden email]>
>To: [hidden email]
>Subject: getting info about diary command
>Date: Fri, 24 Mar 2006 16:58:29 +0000
>
>Is there a way to determine if diary is currently on and if so what file it
>is writing to?
>Also is there a way to do a command, but not have it show up in the diary,
>like evalc in Matlab?
>Thanks!
>Corbin
>
>
>
>
>-------------------------------------------------------------
>Octave is freely available under the terms of the GNU GPL.
>
>Octave's home on the web:  http://www.octave.org
>How to fund new projects:  http://www.octave.org/funding.html
>Subscription information:  http://www.octave.org/archive.html
>-------------------------------------------------------------
>




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

RE: getting info about diary command

Miquel Cabanas
I think octave's diary() is fully compatible with m's diary, which means
it has the same functionalities and limitations, including that there is
now way to know the associated filename, and whether it's on or off. A
way around is to search the history of commands for "diary" and deduce
from the reported list of commands whether it's on or off, and whether a
filename was passed as argument when diary was called.

evalc() is not available in octave/octave-forge.

On Mon, 2006-03-27 at 04:11 +0000, Corbin Champion wrote:

> Did anyone have any thoughts about this?  Are there environment variables
> set up that can be checked to see if the diary is on and what file it is
> writing to?  Is there a way to run a command, but not have it recorded into
> diary even if it is on?
> Thanks in advance!
> Corbin
>
> >From: "Corbin Champion" <[hidden email]>
> >To: [hidden email]
> >Subject: getting info about diary command
> >Date: Fri, 24 Mar 2006 16:58:29 +0000
> >
> >Is there a way to determine if diary is currently on and if so what file it
> >is writing to?
> >Also is there a way to do a command, but not have it show up in the diary,
> >like evalc in Matlab?
> >Thanks!
> >Corbin




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

Re: getting info about diary command

Stéfan van der Walt
In reply to this post by Corbin Champion
It should be trivial to modify the diary command to allow a query,
with something like

octave:1> diary("status")

The gist of it would be something like this (from the top of my head,
not compiled or tested):

--- pager.cc.old        2006-03-27 11:26:26.000000000 +0200
+++ pager.cc    2006-03-27 11:28:57.000000000 +0200
@@ -445,6 +445,12 @@
            close_diary_file ();
            write_to_diary_file = false;
          }
+       else if (arg == "status")
+          {
+             octave_stdout << "Diary is " << (write_to_diary file ? "on" : "off") << std::endl;
+             if (write_to_diary_file)
+               octave_stdout << "Diary output is sent to " << diary_file << std::endl;
+          }
        else
          {
            diary_file = arg;

Cheers
Stéfan

On Mon, Mar 27, 2006 at 04:11:20AM +0000, Corbin Champion wrote:

>
> Did anyone have any thoughts about this?  Are there environment variables
> set up that can be checked to see if the diary is on and what file it is
> writing to?  Is there a way to run a command, but not have it recorded into
> diary even if it is on?
> Thanks in advance!
> Corbin
>
> >From: "Corbin Champion" <[hidden email]>
> >To: [hidden email]
> >Subject: getting info about diary command
> >Date: Fri, 24 Mar 2006 16:58:29 +0000
> >
> >Is there a way to determine if diary is currently on and if so what file
> >it is writing to?
> >Also is there a way to do a command, but not have it show up in the diary,
> >like evalc in Matlab?
> >Thanks!
> >Corbin



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

Re: getting info about diary command

Keith Goodman
On 3/27/06, Stefan van der Walt <[hidden email]> wrote:

> It should be trivial to modify the diary command to allow a query,
> with something like
>
> octave:1> diary("status")
>
> The gist of it would be something like this (from the top of my head,
> not compiled or tested):
>
> --- pager.cc.old        2006-03-27 11:26:26.000000000 +0200
> +++ pager.cc    2006-03-27 11:28:57.000000000 +0200
> @@ -445,6 +445,12 @@
>             close_diary_file ();
>             write_to_diary_file = false;
>           }
> +       else if (arg == "status")
> +          {
> +             octave_stdout << "Diary is " << (write_to_diary file ? "on" : "off") << std::endl;
> +             if (write_to_diary_file)
> +               octave_stdout << "Diary output is sent to " << diary_file << std::endl;
> +          }
>         else
>           {
>             diary_file = arg;

That would be a nice feature. But if you don't know how to compile
Octave you can try

system('lsof | grep octave')

Or if you know the diary file name

system('lsof | grep octave.*diaryfile')



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------