help-octave
[Top][All Lists]
Advanced

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

Re: How can I compile Octave GUI from sources?


From: Pedro
Subject: Re: How can I compile Octave GUI from sources?
Date: Tue, 13 Nov 2012 14:49:33 +0100

On Tue, Nov 13, 2012 at 10:43 AM, Juan Pablo Carbajal
<address@hidden> wrote:
> On Tue, Nov 13, 2012 at 10:27 AM, Pedro <address@hidden> wrote:
>> On Mon, Nov 12, 2012 at 11:49 PM, Pedro <address@hidden> wrote:
>>> On Mon, Nov 12, 2012 at 9:36 PM, Juan Pablo Carbajal
>>> <address@hidden> wrote:
>>>>
>>>> On Mon, Nov 12, 2012 at 9:01 PM, Pedro <address@hidden> wrote:
>>>> > On Mon, Nov 12, 2012 at 8:55 PM, Juan Pablo Carbajal
>>>> > <address@hidden> wrote:
>>>> >> On Mon, Nov 12, 2012 at 8:51 PM, Pedro <address@hidden> wrote:
>>>> >>> On Mon, Nov 12, 2012 at 4:24 PM, Juan Pablo Carbajal
>>>> >>> <address@hidden> wrote:
>>>> >>>> On Sun, Nov 11, 2012 at 7:02 PM, Pedro <address@hidden> wrote:
>>>> >>>>> On Wed, Nov 7, 2012 at 2:50 PM, Juan Pablo Carbajal
>>>> >>>>> <address@hidden> wrote:
>>>> >>>>>> On Wed, Nov 7, 2012 at 2:42 PM, Pedro <address@hidden> wrote:
>>>> >>>>>>> Hi list,
>>>> >>>>>>>
>>>> >>>>>>> I would like to test Octave GUI but it's difficult to find a
>>>> >>>>>>> tutorial
>>>> >>>>>>> in google (GUI Octave, ... )
>>>> >>>>>>> Any help? References? Howto?
>>>> >>>>>>>
>>>> >>>>>>> I know that Octave GUI is unstable.
>>>> >>>>>>>
>>>> >>>>>>> Could be these included in FAQ?
>>>> >>>>>>> The response now is not enough for me :/
>>>> >>>>>>> http://wiki.octave.org/FAQ#GUI
>>>> >>>>>>>
>>>> >>>>>>> I'm in Lubuntu 12.10 and I have Octave version 3.6.2 from official
>>>> >>>>>>> repositories.
>>>> >>>>>>>
>>>> >>>>>>> Greetings,
>>>> >>>>>>> Pedro
>>>> >>>>>>
>>>> >>>>>> Hi Pedro,
>>>> >>>>>>
>>>> >>>>>> I think this mail should go to the help mailing list.
>>>> >>>>>>
>>>> >>>>>> You need to checkout the default repository and compile it from
>>>> >>>>>> source.
>>>> >>>>>> Follow the instructions here
>>>> >>>>>> http://www.gnu.org/software/octave/get-involved.html
>>>> >>>>>>
>>>> >>>>>> Once you go the code do
>>>> >>>>>> $ hg update default
>>>> >>>>>> $ ./bootstrap
>>>> >>>>>> $ ./configure
>>>> >>>>>> $ make
>>>> >>>>>> $ ./run-octave
>>>> >>>>>>
>>>> >>>>>> Make sure that ./configure tell that you are OK to compile. Also
>>>> >>>>>> when
>>>> >>>>>> making you can pass the -j<n> option, where <n> is the number of
>>>> >>>>>> processors/cores you have in your machine.
>>>> >>>>>> I do not know what kind of update system you have in Lubuntu, just
>>>> >>>>>> run
>>>> >>>>>> the equivalent to
>>>> >>>>>> $ sudo apt-get install buildessential
>>>> >>>>>> $ sudo apt-get builddep octave
>>>> >>>>>>
>>>> >>>>>> before you start compiling to get all the dependencies. You will
>>>> >>>>>> also need
>>>> >>>>>> libqscintilla2 and qt4
>>>> >>>>>
>>>> >>>>> Ok, I have an make error. But first, I make a description to arrive
>>>> >>>>> here:
>>>> >>>>>
>>>> >>>>> ./bootstrap
>>>> >>>>> says: "build-aux/bootstrap_gnulib: one of these is required:
>>>> >>>>> glibtoolize libtoolize"
>>>> >>>>> => you have to install "sudo apt-get install libtool"
>>>> >>>>> => (and) "sudo apt-get install automake autoconf"
>>>> >>>>>
>>>> >>>>> ./configure
>>>> >>>>> sudo apt-get install libpcre3-dev
>>>> >>>>> sudo apt-get install libblas-dev liblapack-dev
>>>> >>>>>
>>>> >>>>> make
>>>> >>>>> here's the error [1]
>>>> >>>>> I tried to resolve installing:
>>>> >>>>> sudo apt-get install flex flexc++ flexbackup libfl-dev flexloader
>>>> >>>>> flexml
>>>> >>>>> (also flex-old, and this remove flex and libfl-dev)
>>>> >>>>>
>>>> >>>>> information
>>>> >>>>> flex version: 2.5.35-10
>>>> >>>>> libfl-dev version: 2.5.35-10
>>>> >>>>> flex-old version: 2.5.4a-10
>>>> >>>>>
>>>> >>>>> [1] Error in make
>>>> >>>>>
>>>> >>>>> Making all in libinterp
>>>> >>>>> make[2]: Entering directory
>>>> >>>>> `/home/papatupf/Sources/octave/libinterp'
>>>> >>>>> /bin/bash ../build-aux/ylwrap parse-tree/lex.ll lex.octave_.c
>>>> >>>>> parse-tree/lex.cc -- ../build-aux/missing flex
>>>> >>>>> WARNING: `flex' is missing on your system.  You should only need it
>>>> >>>>> if
>>>> >>>>>          you modified a `.l' file.  You may need the `Flex' package
>>>> >>>>>          in order for those modifications to take effect.  You can
>>>> >>>>> get
>>>> >>>>>          `Flex' from any GNU archive site.
>>>> >>>>> make[2]: *** [parse-tree/lex.cc] Error 1
>>>> >>>>> make[2]: Leaving directory `/home/<user>/octave/libinterp'
>>>> >>>>> make[1]: *** [all-recursive] Error 1
>>>> >>>>> make[1]: Leaving directory `/home/<user>/Sources/octave'
>>>> >>>>> make: *** [all] Error 2
>>>> >>>>
>>>> >>>> Try first getting the dependencies
>>>> >>>>
>>>> >>>> $ sudo apt-get build-dep octave
>>>> >>>>
>>>> >>>> if you are in a Ubuntu older than 12.10 you need to do
>>>> >>>>
>>>> >>>> $ sudo apt-get build-dep octave3.2
>>>> >>>>
>>>> >>>> Also notice that bootstrap is telling you that there are some
>>>> >>>> programs missing.
>>>> >>>
>>>> >>> Thanks for your reply.
>>>> >>> About depmode. I was thinking that was a program... aplying
>>>> >>> incorrectly sudo apt-get install build-dep octave
>>>> >>>
>>>> >>> So I did:
>>>> >>> # sudo apt-get build-dep octave
>>>> >>> # make clean && ./bootstrap && ./configure && make
>>>> >>>
>>>> >>> and here's the ouput error:
>>>> >>> http://pastebin.com/yhm4NcmK
>>>> >>>
>>>> >>> Something bad with lex.cc & lex.ll
>>>> >>> Seems to be missing a library
>>>> >>>
>>>> >>> Now I will try a new hg clone of sources and try again (instead of
>>>> >>> using make clean)
>>>> >>
>>>> >> Try manually installing lex
>>>> >>
>>>> >> $ sudo apt-get install flex
>>>> >>
>>>> >> What GNU/Linux are you using?
>>>> >
>>>> > Lubuntu 12.10 (quantal)
>>>> >
>>>> > $ sudo apt-get install flex
>>>> > (...)
>>>> > flex is already the newest version.
>>>> >
>>>> > $ flex -V
>>>> > flex 2.5.35
>>>> >
>>>> > An alternative is to use:
>>>> > "flex-old" with: 2.5.4a-10
>>>> > but it will remove:
>>>> > libfl-dev version: 2.5.35-10
>>>> > don't know if affects
>>>>
>>>> Ok, I had to ask help to jwe for this one.
>>>>
>>>> Make sure bison is installed
>>>>
>>>> $ sudo apt-get install bison
>>>>
>>>> If that doesn't do the trick then
>>>>
>>>> 09:12:21 PM) jwe: what is in the generated
>>>> libinterp/parse-tree/oct-parse.h file?  That's where things like DO,
>>>> END, ELSE, etc. should be defined.
>>>
>>> $ sudo apt-get install bison
>>> It wasn't installed, thanks
>>>
>>> $ make clean && ./bootstrap && ./configure && make
>>>
>>> It seems that generate the same error:
>>> http://pastebin.com/4hRT6s73
>>>
>>> ./libinterp/parse-tree/oct-parse.h
>>> not found
>>
>> Sorry, it's found (i was in incorrect path, as you could see in ls
>> output), but is void (with no content)
>>
>> It doesn't matter... I do a compiling for all this night with a new
>> octave because I consider It suffer a lot of changes while compiling:
>> "not enough space", "installing more libraries", "make clean"...
>>
>> So I did:
>> $ rm -rf <where_was_the_octave_folder>
>> $ hg clone http://www.octave.org/hg/octave
>> $ cd octave
>> $ ./bootstrap && ./configure && make
>>
>> And here's the result :)
>>
>> I hope somebody with a Ubuntu/Lubuntu can guide with this steps
>> http://i.imgur.com/dVeeE.png
>>
>> Thanks for your pacience Juan,
>>
>> Greetings,
>> Pedro
>
> Pedro,
>
> Ok, as I understood you manage to compile it. I removed the maintainers list.
>
> What other problems are you experiencing?

Now it's all okay. I can run Octave GUI very well.

Seems to be a bug checksum around: "not enough space", "error because
of library dependence" and "make clean"
But I think that the bug is quite irreproducible to analyse it.


reply via email to

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