Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources

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

Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources

by Judd Storrs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The following describes how I successfully built octave-3.2.2 on a fresh install of Ubuntu 9.04. After I finished install from the CD, I used Synaptic to update all Ubuntu packages. I did not change any software sources from the defaults. Here's how I proceeded:

1) Install library dependencies
-------------------------------

First try:

$ sudo apt-get install libcurl4-dev libgraphicsmagick++1-dev libfltk-dev libarpack2-dev

If it succeeds proceed to step 2. Otherwise if it complains that there is more than one package that satisfies libcurl4-dev use

$ sudo apt-get install libcurl4-gnutls-dev

and then repeat the first command again.

libcurl4-dev is required for step 2, but it is a virtual package satisfied by two other packages--either libcurl4-gnutls-dev or libcurl4-openssl-dev. I used libcurl4-gnutls-dev but I assume you could use the openssl one. If the first command succeeds then you already have one of these.


2) Install packages needed to build octave
------------------------------------------

$ sudo apt-get build-dep octave3.0


3) Download libqrupdate packages from Karmic. (OPTIONAL)
--------------------------------------------------------

Get and install packages for your platform from:

http://packages.ubuntu.com/karmic/libqrupdate-dev
http://packages.ubuntu.com/karmic/libqrupdate1

Install them using gdebi or

$ dpkg -i libqrupdate1_1.0.1-1_i386.deb libqrupdate-dev_1.0.1-1_i386.deb


4) Download, extract, and build octave-3.2.2
----------------------------------------------

$ wget ftp://ftp.octave.org/pub/octave/octave-3.2.2.tar.bz2
$ tar xf octave-3.2.2.tar.bz2
$ cd octave-3.2.2
$ ./configure --prefix=/usr/local
$ make
$ make check
$ sudo make install


Hope this helps.

--judd


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

RE: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources

by dastew :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.



Date: Sat, 19 Sep 2009 16:27:03 -0400
Subject: Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources
From: storrsjm@...
To: udippel@...
CC: Help-octave@...

The following describes how I successfully built octave-3.2.2 on a fresh install of Ubuntu 9.04. After I finished install from the CD, I used Synaptic to update all Ubuntu packages. I did not change any software sources from the defaults. Here's how I proceeded:

1) Install library dependencies
-------------------------------

First try:

$ sudo apt-get install libcurl4-dev libgraphicsmagick++1-dev libfltk-dev libarpack2-dev

If it succeeds proceed to step 2. Otherwise if it complains that there is more than one package that satisfies libcurl4-dev use

$ sudo apt-get install libcurl4-gnutls-dev

and then repeat the first command again.

libcurl4-dev is required for step 2, but it is a virtual package satisfied by two other packages--either libcurl4-gnutls-dev or libcurl4-openssl-dev. I used libcurl4-gnutls-dev but I assume you could use the openssl one. If the first command succeeds then you already have one of these.


2) Install packages needed to build octave
------------------------------------------

$ sudo apt-get build-dep octave3.0


3) Download libqrupdate packages from Karmic. (OPTIONAL)
--------------------------------------------------------

Get and install packages for your platform from:

http://packages.ubuntu.com/karmic/libqrupdate-dev
http://packages.ubuntu.com/karmic/libqrupdate1

Install them using gdebi or

$ dpkg -i libqrupdate1_1.0.1-1_i386.deb libqrupdate-dev_1.0.1-1_i386.deb


4) Download, extract, and build octave-3.2.2
----------------------------------------------

$ wget ftp://ftp.octave.org/pub/octave/octave-3.2.2.tar.bz2
$ tar xf octave-3.2.2.tar.bz2
$ cd octave-3.2.2
$ ./configure --prefix=/usr/local
$ make
$ make check
$ sudo make install


Hope this helps.

--judd

I tried this and it worked!!

Now How do you add all the packages from source forge?

Doug



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

Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources

by Uwe Dippel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Judd Storrs wrote:
> I really don't think it's that hard to compile from sources on Ubuntu.

> The following describes how I successfully built octave-3.2.2 on a
> fresh install of Ubuntu 9.04. After I finished install from the CD, I
> used Synaptic to update all Ubuntu packages. I did not change any
> software sources from the defaults. Here's how I proceeded:
>
> [...]
>
> Hope this helps.

I hope so, too!

Actually, I'm a FOSS-person myself; a Linux user for 10 years. No,
difficult to do it is not. The thing that's absolutely difficult is the
How To! How should, how could, anyone guess which packages are
necessary; which commands are necessary?? I at least couldn't.

And still, it doesn't go through here:

$ sudo apt-get install libcurl4-dev libgraphicsmagick++1-dev libfltk-dev
libarpack2-dev
Package libcurl4-dev is a virtual package provided by:
  libcurl4-gnutls-dev 7.18.2-8ubuntu4.1
You should explicitly select one to install.
E: Package libcurl4-dev has no installation candidate
$ sudo apt-get install libcurl4-gnutls-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
  comerr-dev libgcrypt11-dev libgnutls-dev libgpg-error-dev libidn11-dev
  libkadm55 libkrb5-dev libldap2-dev libtasn1-3-dev
Suggested packages:
  libcurl3-dbg libgcrypt11-doc gnutls-doc gnutls-bin guile-gnutls krb5-doc
The following NEW packages will be installed:
  comerr-dev libcurl4-gnutls-dev libgcrypt11-dev libgnutls-dev
  libgpg-error-dev libidn11-dev libkadm55 libkrb5-dev libldap2-dev
  libtasn1-3-dev
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 3928kB of archives.
After this operation, 12.2MB of additional disk space will be used.
Do you want to continue [Y/n]? y
$ sudo apt-get install libcurl4-dev libgraphicsmagick++1-dev libfltk-dev
libarpack2-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package libcurl4-dev is a virtual package provided by:
  libcurl4-gnutls-dev 7.18.2-8ubuntu4.1
You should explicitly select one to install.
E: Package libcurl4-dev has no installation candidate
$

And that's the end already. No libcurl4-dev.

So I tried the other way:
$ sudo apt-get install libcurl4-openssl-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  libgpg-error-dev libtasn1-3-dev libgcrypt11-dev libgnutls-dev
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libssl-dev
Suggested packages:
  libcurl3-dbg
The following packages will be REMOVED:
  libcurl4-gnutls-dev
The following NEW packages will be installed:
  libcurl4-openssl-dev libssl-dev
0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
Need to get 3035kB of archives.
After this operation, 7029kB of additional disk space will be used.
Do you want to continue [Y/n]? y

$ sudo apt-get build-dep octave3.0
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package libcurl4-dev is a virtual package provided by:
  libcurl4-gnutls-dev 7.18.2-8ubuntu4.1
You should explicitly select one to install.
E: Package libcurl4-dev has no installation candidate
E: Failed to satisfy Build-Depends dependency for octave3.0: libcurl4-dev

Out of luck again, and the end of the line for me.

Thanks anyway,

Uwe


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

Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources

by Judd Storrs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've been pretty piecemeal in my use of octave-forge and I don't remember running into any problems by just following the instructions in the orange box on http://octave.sourceforge.net

Basically, I've always just downloaded the desired package.tar.gz from sourceforge and then I run octave inside the download directory and type:

pkg install package.tar.gz

And everything has magically worked for me. I think that if you've already built octave you should have everything that is needed (unless the package has additional requirements--none of the ones I use do).

I don't know if there's a way to build and install them all or to automatically download dependencies but I think I remember seeing something about the mentioned in the octave-forge website.

--judd



On Sat, Sep 19, 2009 at 7:31 PM, <dastew@...> wrote:



Date: Sat, 19 Sep 2009 16:27:03 -0400
Subject: Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources
From: storrsjm@...
To: udippel@...
CC: Help-octave@...


The following describes how I successfully built octave-3.2.2 on a fresh install of Ubuntu 9.04. After I finished install from the CD, I used Synaptic to update all Ubuntu packages. I did not change any software sources from the defaults. Here's how I proceeded:

1) Install library dependencies
-------------------------------

First try:

$ sudo apt-get install libcurl4-dev libgraphicsmagick++1-dev libfltk-dev libarpack2-dev

If it succeeds proceed to step 2. Otherwise if it complains that there is more than one package that satisfies libcurl4-dev use

$ sudo apt-get install libcurl4-gnutls-dev

and then repeat the first command again.

libcurl4-dev is required for step 2, but it is a virtual package satisfied by two other packages--either libcurl4-gnutls-dev or libcurl4-openssl-dev. I used libcurl4-gnutls-dev but I assume you could use the openssl one. If the first command succeeds then you already have one of these.


2) Install packages needed to build octave
------------------------------------------

$ sudo apt-get build-dep octave3.0


3) Download libqrupdate packages from Karmic. (OPTIONAL)
--------------------------------------------------------

Get and install packages for your platform from:

http://packages.ubuntu.com/karmic/libqrupdate-dev
http://packages.ubuntu.com/karmic/libqrupdate1

Install them using gdebi or

$ dpkg -i libqrupdate1_1.0.1-1_i386.deb libqrupdate-dev_1.0.1-1_i386.deb


4) Download, extract, and build octave-3.2.2
----------------------------------------------

$ wget ftp://ftp.octave.org/pub/octave/octave-3.2.2.tar.bz2
$ tar xf octave-3.2.2.tar.bz2
$ cd octave-3.2.2
$ ./configure --prefix=/usr/local
$ make
$ make check
$ sudo make install


Hope this helps.

--judd

I tried this and it worked!!

Now How do you add all the packages from source forge?

Doug




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

Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources

by Judd Storrs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

That's pretty weird. Are your packages up-to-date?

sudo apt-get update
sudo apt-get upgrade

--judd


On Sat, Sep 19, 2009 at 10:17 PM, Uwe Dippel <udippel@...> wrote:
Judd Storrs wrote:
I really don't think it's that hard to compile from sources on Ubuntu.

The following describes how I successfully built octave-3.2.2 on a
fresh install of Ubuntu 9.04. After I finished install from the CD, I
used Synaptic to update all Ubuntu packages. I did not change any
software sources from the defaults. Here's how I proceeded:

[...]

Hope this helps.

I hope so, too!

Actually, I'm a FOSS-person myself; a Linux user for 10 years. No,
difficult to do it is not. The thing that's absolutely difficult is the
How To! How should, how could, anyone guess which packages are
necessary; which commands are necessary?? I at least couldn't.

And still, it doesn't go through here:


$ sudo apt-get install libcurl4-dev libgraphicsmagick++1-dev libfltk-dev
libarpack2-dev
Package libcurl4-dev is a virtual package provided by:
 libcurl4-gnutls-dev 7.18.2-8ubuntu4.1
You should explicitly select one to install.
E: Package libcurl4-dev has no installation candidate

$ sudo apt-get install libcurl4-gnutls-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
 comerr-dev libgcrypt11-dev libgnutls-dev libgpg-error-dev libidn11-dev
 libkadm55 libkrb5-dev libldap2-dev libtasn1-3-dev
Suggested packages:
 libcurl3-dbg libgcrypt11-doc gnutls-doc gnutls-bin guile-gnutls krb5-doc
The following NEW packages will be installed:
 comerr-dev libcurl4-gnutls-dev libgcrypt11-dev libgnutls-dev
 libgpg-error-dev libidn11-dev libkadm55 libkrb5-dev libldap2-dev
 libtasn1-3-dev
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 3928kB of archives.
After this operation, 12.2MB of additional disk space will be used.
Do you want to continue [Y/n]? y

$ sudo apt-get install libcurl4-dev libgraphicsmagick++1-dev libfltk-dev
libarpack2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libcurl4-dev is a virtual package provided by:
 libcurl4-gnutls-dev 7.18.2-8ubuntu4.1
You should explicitly select one to install.
E: Package libcurl4-dev has no installation candidate
$

And that's the end already. No libcurl4-dev.

So I tried the other way:
$ sudo apt-get install libcurl4-openssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
 libgpg-error-dev libtasn1-3-dev libgcrypt11-dev libgnutls-dev
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
 libssl-dev
Suggested packages:
 libcurl3-dbg
The following packages will be REMOVED:
 libcurl4-gnutls-dev
The following NEW packages will be installed:
 libcurl4-openssl-dev libssl-dev
0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
Need to get 3035kB of archives.
After this operation, 7029kB of additional disk space will be used.
Do you want to continue [Y/n]? y


$ sudo apt-get build-dep octave3.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libcurl4-dev is a virtual package provided by:
 libcurl4-gnutls-dev 7.18.2-8ubuntu4.1
You should explicitly select one to install.
E: Package libcurl4-dev has no installation candidate
E: Failed to satisfy Build-Depends dependency for octave3.0: libcurl4-dev

Out of luck again, and the end of the line for me.

Thanks anyway,

Uwe




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

Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources

by Uwe Dippel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Judd Storrs wrote:
> That's pretty weird. Are your packages up-to-date?
>
> sudo apt-get update
> sudo apt-get upgrade

Of course! Daily! And without any errors!

Uwe


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

Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources

by Uwe Dippel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Uwe Dippel wrote:
> Judd Storrs wrote:
>> That's pretty weird. Are your packages up-to-date?
>>
>> sudo apt-get update
>> sudo apt-get upgrade
>
> Of course! Daily! And without any errors!

Oh, do we eventually run into an amd64-versus-i386 problem here?
$ uname -a
Linux mybox 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 19:25:34 UTC
2009 x86_64 GNU/Linux


Uwe

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

Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources

by Judd Storrs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What's your output for:

apt-cache showpkg libcurl4-gnutls-dev

and

apt-cache showpkg libcurl4-dev

--judd


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

Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources

by Judd Storrs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Sat, Sep 19, 2009 at 11:15 PM, Uwe Dippel <udippel@...> wrote:
Uwe Dippel wrote:
Judd Storrs wrote:
That's pretty weird. Are your packages up-to-date?

sudo apt-get update
sudo apt-get upgrade

Of course! Daily! And without any errors!

Oh, do we eventually run into an amd64-versus-i386 problem here?
$ uname -a
Linux mybox 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 19:25:34 UTC
2009 x86_64 GNU/Linux

It's possible, but I doubt it. I use two different x86_64 machines running 9.04 and on both of them have libcurl4-dev provided by libcurl4-gnutls-dev (but they were installed in March).

The virtual machine I created today was i386, though.

--judd

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

Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources

by Uwe Dippel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Judd Storrs wrote:
> What's your output for:
>
> apt-cache showpkg libcurl4-gnutls-dev

$ apt-cache showpkg libcurl4-gnutls-dev
Package: libcurl4-gnutls-dev
Versions:
7.18.2-8ubuntu4.1
(/var/lib/apt/lists/ubuntu-ashisuto.ubuntulinux.jp_ubuntu_dists_jaunty-updates_main_binary-amd64_Packages)
(/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_jaunty-security_main_binary-amd64_Packages)
(/var/lib/dpkg/status)
 Description Language:
                 File:
/var/lib/apt/lists/ubuntu-ashisuto.ubuntulinux.jp_ubuntu_dists_jaunty-updates_main_binary-amd64_Packages
                  MD5: 542a849fd833dd4aff3c38a8504ae2b7

7.18.2-8ubuntu4
(/var/lib/apt/lists/ubuntu-ashisuto.ubuntulinux.jp_ubuntu_dists_jaunty_main_binary-amd64_Packages)
 Description Language:
                 File:
/var/lib/apt/lists/ubuntu-ashisuto.ubuntulinux.jp_ubuntu_dists_jaunty_main_binary-amd64_Packages
                  MD5: 542a849fd833dd4aff3c38a8504ae2b7


Reverse Depends:
  tclcurl,libcurl4-gnutls-dev
  paintlib-dev,libcurl4-gnutls-dev
  libwfut-0.2-dev,libcurl4-gnutls-dev
  libopkele-dev,libcurl4-gnutls-dev
  libgmyth-dev,libcurl4-gnutls-dev
  libetpan-dev,libcurl4-gnutls-dev 7.16.4-5
  libcurl-ocaml-dev,libcurl4-gnutls-dev 7.15.0-2
  audacious-plugins-dev,libcurl4-gnutls-dev
  python-pycurl,libcurl4-gnutls-dev
  libtunepimp-dev,libcurl4-gnutls-dev
  libraptor1-dev,libcurl4-gnutls-dev
Dependencies:
7.18.2-8ubuntu4.1 - libcurl3-gnutls (5 7.18.2-8ubuntu4.1) libc6-dev (16
(null)) libc-dev (0 (null)) libgnutls-dev (0 (null)) zlib1g-dev (0
(null)) libidn11-dev (0 (null)) libkrb5-dev (16 (null)) hurd (0 (null))
libldap2-dev (0 (null)) libcurl3-dbg (0 (null)) libcurl-dev (0 (null))
libcurl-dev (0 (null)) libcurl-ssl-dev (0 (null)) libcurl3-gnutls-dev (0
(null)) libcurl4-dev (0 (null))
7.18.2-8ubuntu4 - libcurl3-gnutls (5 7.18.2-8ubuntu4) libc6-dev (16
(null)) libc-dev (0 (null)) libgnutls-dev (0 (null)) zlib1g-dev (0
(null)) libidn11-dev (0 (null)) libkrb5-dev (16 (null)) hurd (0 (null))
libldap2-dev (0 (null)) libcurl3-dbg (0 (null)) libcurl-dev (0 (null))
libcurl-dev (0 (null)) libcurl-ssl-dev (0 (null)) libcurl3-gnutls-dev (0
(null)) libcurl4-dev (0 (null))
Provides:
7.18.2-8ubuntu4.1 - libcurl4-dev libcurl3-gnutls-dev libcurl-ssl-dev
libcurl-dev
7.18.2-8ubuntu4 - libcurl4-dev libcurl3-gnutls-dev libcurl-ssl-dev
libcurl-dev
Reverse Provides:
$

>
> and
>
> apt-cache showpkg libcurl4-dev

$ apt-cache showpkg libcurl4-dev
Package: libcurl4-dev
Versions:

Reverse Depends:
  libcurl4-gnutls-dev,libcurl4-dev
  libnxml0-dev,libcurl4-dev
  libgdal1-dev,libcurl4-dev
  libcurl4-gnutls-dev,libcurl4-dev
Dependencies:
Provides:
Reverse Provides:
libcurl4-gnutls-dev 7.18.2-8ubuntu4.1
libcurl4-gnutls-dev 7.18.2-8ubuntu4
$


Uwe

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

Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources

by Judd Storrs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok, new approach since the libcurl4-dev virtual packge isn't working for you maybe if you manually install the build dependencies you can skip the build-dep step.

I got the octave3.0_3.0.1-6ubuntu2.dsc from ubuntu ("apt-get source octave3.0"). These are the packages listed as build dependencies:

g++-4.1
gcc-4.1
gfortran
debhelper
autoconf
texinfo
texlive-latex-base
texlive-generic-recommended
libreadline5-dev
libncurses5-dev
gperf
libhdf5-serial-dev
libhdf5-lam-dev
libhdf5-mpich-dev
libblas-dev
liblapack-dev
gnuplot-nox
libfftw3-dev
texi2html
less
dpatch
slice
libpcre3-dev
flex
libglpk-dev
libsuitesparse-dev
gawk
ghostscript
libqhull-dev
desktop-file-utils

Also install:

libcurl4-gnutls-dev
libgraphicsmagick++1-dev
libfltk-dev
libarpack2-dev

Then try continuing from step 3

--judd

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

Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources

by Thomas Weber-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Sep 20, 2009 at 10:17:19AM +0800, Uwe Dippel wrote:

> Judd Storrs wrote:
> > I really don't think it's that hard to compile from sources on Ubuntu.
>
> > The following describes how I successfully built octave-3.2.2 on a
> > fresh install of Ubuntu 9.04. After I finished install from the CD, I
> > used Synaptic to update all Ubuntu packages. I did not change any
> > software sources from the defaults. Here's how I proceeded:
> >
> > [...]
> >
> > Hope this helps.
>
> I hope so, too!
>
> Actually, I'm a FOSS-person myself; a Linux user for 10 years. No,
> difficult to do it is not. The thing that's absolutely difficult is the
> How To! How should, how could, anyone guess which packages are
> necessary; which commands are necessary?? I at least couldn't.
>
> And still, it doesn't go through here:
>
> $ sudo apt-get install libcurl4-dev libgraphicsmagick++1-dev libfltk-dev
> libarpack2-dev
> Package libcurl4-dev is a virtual package provided by:
>   libcurl4-gnutls-dev 7.18.2-8ubuntu4.1
             ^^^^^^
<snip>
> So I tried the other way:
> $ sudo apt-get install libcurl4-openssl-dev

If apt tells you it has the gnutls package, why do you try the openssl
one?

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

Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources

by Uwe Dippel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Judd Storrs wrote:

> Ok, new approach since the libcurl4-dev virtual packge isn't working
> for you maybe if you manually install the build dependencies you can
> skip the build-dep step.
>
> I got the octave3.0_3.0.1-6ubuntu2.dsc from ubuntu ("apt-get source
> octave3.0"). These are the packages listed as build dependencies:
>
> g++-4.1
> gcc-4.1
> gfortran
> debhelper
> autoconf
> texinfo
> texlive-latex-base
> texlive-generic-recommended
> libreadline5-dev
> libncurses5-dev
> gperf
> libhdf5-serial-dev
> libhdf5-lam-dev
> libhdf5-mpich-dev
> libblas-dev
> liblapack-dev
> gnuplot-nox
> libfftw3-dev
> texi2html
> less
> dpatch
> slice
> libpcre3-dev
> flex
> libglpk-dev
> libsuitesparse-dev
> gawk
> ghostscript
> libqhull-dev
> desktop-file-utils
>
> Also install:
>
> libcurl4-gnutls-dev
> libgraphicsmagick++1-dev
> libfltk-dev
> libarpack2-dev
>
> Then try continuing from step 3

Thanks so much, Judd!

I can confirm that Octave 3.2.2 compiles and installs with these
dependencies, with some minor modifications, also suggested by you:
leave out: libhdf5-lam-dev libhdf5-mpich-dev
add: libftgl-dev libfltk-dev

and it goes through.

Next, time to try Eidors.
octave:1> run /home/udippel/Sources/eidors-v3.3/startup.m
warning: you do not have a compiled mex file eidors_var_id.
Please compile it using: mex
/home/udippel/Sources/eidors-v3.3/arch/eidors_var_id.cpp

[exit]

This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(/home/udippel/Sources/eidors-v3.3/arch/eidors_var_id.cpp
This is MeX  Version 1.05  18 XII 1993  (B. Jackowski & M. Ry\'cko)
! Missing $ inserted.
<inserted text>
                $
<to be read again>
                   _
l.1 /* eidors_
              var.id: calculate the sha1 hash of variable in memory
?

What now?

At least, demo_real.m works.

Thanks a bunch!

Uwe

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

Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources

by Judd Storrs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok, I don't know eidors at all, but that error about a missing mex file looked simple enough. I downloaded eidors and extracted it to look around. It looks like startup.m expects to be running on octave in windows and doesn't set the path correctly to the mex file otherwise. Also they don't provied a linux version of the mex file so I needs to be compiled. I only found one mex file in there. This gets the startup working:

$ cd eidors-v3.3
$ cd arch
$ mkoctfile --mex eidors_var_id.cpp
$ cp eidors_var_id.mex ..
$ cd ..
$ octave
octave:1> startup
warning: isstr is obsolete and will be removed from a future version of Octave, please use ischar instead
EIDORS:[Completed setting up of EIDORS Version 3.3 ($Date: 2008/07/19 16:14:18 $)]
EIDORS:[Parameter: cache_size=100 MB]
EIDORS:[Parameter: mapped_colour=127]
EIDORS:[Default background colour: write]
EIDORS:[EIDORS mex folder: /home/judd/Desktop/eidors/eidors-v3.3]


--judd

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

Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources

by Hielos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>  leave out: libhdf5-lam-dev libhdf5-mpich-dev
Is this going to affect the performance of octave somehow?
How do I leave them out? (I guess it has something to do with the "./configure" command, but I would not know how to do it. I have tried leaving out or including libraries before without success)

>  add: libftgl-dev libfltk-dev
How do I add these? (do they also have to do with "./configure"?)

>   $ dpkg -i libqrupdate1_1.0.1-1_i386.deb libqrupdate-dev_1.0.1-1_i386.deb
I used the *amd64.deb version. I am guessing that there is no problem.

I got *Error*
After running 'make', I get the same "libcruft" error as before. By the way, I had already installed the 'libqrupdate.so' library (downloaded it from Karmic repositories, built it and copied to '/usr/lib/'), and I think that './configure' is using it (is this a problem?). I did this because I had already installed libqrupdate1 and libqrupdate-dev before, but it kept telling me that Octave would be slow with Cholesky.

Help please. I haven't been able to install Octave in Ubuntu. I already tried in Windows, but I reaaaaaally don't want to use Windows. Help, please

Judd Storrs wrote:
The following describes how I successfully built octave-3.2.2 on a fresh
install of Ubuntu 9.04. After I finished install from the CD, I used
Synaptic to update all Ubuntu packages. I did not change any software
sources from the defaults. Here's how I proceeded:

1) Install library dependencies
-------------------------------

First try:

$ sudo apt-get install libcurl4-dev libgraphicsmagick++1-dev libfltk-dev
libarpack2-dev

If it succeeds proceed to step 2. Otherwise if it complains that there is
more than one package that satisfies libcurl4-dev use

$ sudo apt-get install libcurl4-gnutls-dev

and then repeat the first command again.

libcurl4-dev is required for step 2, but it is a virtual package satisfied
by two other packages--either libcurl4-gnutls-dev or libcurl4-openssl-dev. I
used libcurl4-gnutls-dev but I assume you could use the openssl one. If the
first command succeeds then you already have one of these.


2) Install packages needed to build octave
------------------------------------------

$ sudo apt-get build-dep octave3.0


3) Download libqrupdate packages from Karmic. (OPTIONAL)
--------------------------------------------------------

Get and install packages for your platform from:

http://packages.ubuntu.com/karmic/libqrupdate-dev
http://packages.ubuntu.com/karmic/libqrupdate1

Install them using gdebi or

$ dpkg -i libqrupdate1_1.0.1-1_i386.deb libqrupdate-dev_1.0.1-1_i386.deb


4) Download, extract, and build octave-3.2.2
----------------------------------------------

$ wget ftp://ftp.octave.org/pub/octave/octave-3.2.2.tar.bz2
$ tar xf octave-3.2.2.tar.bz2
$ cd octave-3.2.2
$ ./configure --prefix=/usr/local
$ make
$ make check
$ sudo make install


Hope this helps.

--judd

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

Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources

by Judd Storrs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Does:

$ sudo apt-get install build-dep octave3.0

give any errors on your system?


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

Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources

by John W. Eaton-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 22-Oct-2009, Judd Storrs wrote:

| $ sudo apt-get install build-dep octave3.0
|
| give any errors on your system?

I expect it would, because it would try to install the packages
build-dep and octave3.0.  I think you mean

  $ sudo apt-get build-dep octave3.0

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

Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources

by Hielos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> sudo apt-get build-dep octave3.0
Runs ok.

>Can you send me the output of:
>
>$ dpkg --get-selections
Of course (sent them to your e-mail)

>Also it may help if you could run
>
>$ cd path_to_octave_sources
>$ make 2>&1 | tee build_error_log
Sent them to your e-mail as well

>I expect these files will be large so you can send it to me directly

Judd Storrs wrote:
Does:

$ sudo apt-get install build-dep octave3.0

give any errors on your system?


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

Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources

by Hielos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Before hand, thanks.

> I think this means ./configure was not able to figure out how to use f77 as a compiler
I uninstalled fort77

>Check the summary after ./configure to make sure gfortran was selected
I think it does:

  Installation prefix:  /usr/local
  C compiler:           gcc   -Wall -W -Wshadow -Wformat -g -O2
  C++ compiler:         g++  -I/usr/include/freetype2  -Wall -W -Wshadow -Wold-style-cast -Wformat -g -O2
  Fortran compiler:     gfortran -O
  Fortran libraries:     -L/usr/lib/gcc/x86_64-linux-gnu/4.3.3 -L/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../.. -lhdf5 -lz -lgfortranbegin -lgfortran -lm
  BLAS libraries:       -llapack -lcblas -lf77blas -latlas
  FFTW libraries:       -lfftw3 -lfftw3f
  GLPK libraries:       -lglpk
  UMFPACK libraries:    -lumfpack
  AMD libraries:        -lamd
  CAMD libraries:       -lcamd
  COLAMD libraries:     -lcolamd
  CCOLAMD libraries:    -lccolamd
  CHOLMOD libraries:    -lcholmod
  CXSPARSE libraries:   -lcxsparse
  ARPACK libraries:     -larpack
  QRUPDATE libraries: -lqrupdate
  HDF5 libraries:       -lhdf5
  CURL libraries:       -lcurl
  REGEX libraries:      -L/usr/lib -lpcre
  QHULL libraries: -lqhull
  OPENGL libraries:     -lftgl -lfreetype -lz -L/usr/X11R6/lib -lGL -lGLU
  FLTK backend libs:    -Wl,-Bsymbolic-functions -lfltk_gl -lfltk
  X11 include flags:    
  X11 libraries:        -lX11
  CARBON libraries:    
  LIBS:                 -lreadline  -lncurses -ldl -lhdf5 -lz -lm
  Default pager:        less
  gnuplot:              gnuplot
  Magick config:        GraphicsMagick++-config

  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

I sent the new build_error_log to your e-mail

Judd Storrs wrote:
Does:

$ sudo apt-get install build-dep octave3.0

give any errors on your system?


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

Re: Octave 3.2.2 for Ubuntu9.04 -- How to compile from sources

by Judd Storrs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In case anyone else if having this problem, off the list we found that
the fort77 package was causing trouble when building on Ubuntu 9.04.

When fort77 is installed then ./configure prefers f77 over gfortran.
In the config.log that was posted previously
(http://www.nabble.com/file/p25895104/config.log) we noticed this:

WARNING: cannot determine how to obtain linking information from f77

I'm not familiar with the fort77 package. Anyway, removing fort77
followed re-running ./confugure (and make clean) appears to have
solved the problem. It may be good enough to

F77=gfortran ./configure

instead of removing fort77 but I don't think that was tried.

--judd


On Thu, Oct 22, 2009 at 11:40 AM, John W. Eaton <jwe@...> wrote:

> On 22-Oct-2009, Judd Storrs wrote:
>
> | $ sudo apt-get install build-dep octave3.0
> |
> | give any errors on your system?
>
> I expect it would, because it would try to install the packages
> build-dep and octave3.0.  I think you mean
>
>  $ sudo apt-get build-dep octave3.0
>
> jwe
>

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