Unable to run casadi 3.2.0 with the octave 4.2.1 that it recommends:

197 views
Skip to first unread message

Dave Goel

unread,
Jul 25, 2017, 11:53:24 PM7/25/17
to CasADi

Following the bug I reported for 3.1.1, I'm trying to run 3.2.0 with octave 4.2.1. So, I upgraded my octave to 4.2.1 (from debian stretch backports.)

I downloaded the new casadi 3.2.0 which is meant to be run with 4.2.1. I upgraded my octave to 4.2.1. That is incompatible with liboctave3v5. Instead I now have liboctave4.


However, it seems that casadi is still looking for the old liboctinterp.so.3 (even though it recommends octave version 4.2.1):

octave:2> x=MX.sym
error: sym: /home/ .../ casadiMEX.mex: failed to load: liboctinterp.so.3: cannot open shared object file: No such file or directory
error: called from
    sym at line 243 column 27


apt-file  search  liboctinterp.so.3 
liboctave3v5: /usr/lib/x86_64-linux-gnu/liboctinterp.so.3
liboctave3v5: /usr/lib/x86_64-linux-gnu/liboctinterp.so.3.1.1

Joel Andersson

unread,
Jul 28, 2017, 10:28:16 AM7/28/17
to CasADi
Let's see what Joris has to say about this. I'm not sure how available he is at the moment, so please allow him a few days to answer. Joel

Joris Gillis

unread,
Jul 29, 2017, 8:54:44 AM7/29/17
to CasADi
Hi Dave,

You're right, looks like i forgot to bump the linux builds (osx and windows octave was bumped to 4.2.1, while linux was kept at 4.0.2). Thanks for reporting!

Best,
  Joris

Dave Goel

unread,
Jul 30, 2017, 2:03:00 PM7/30/17
to CasADi
Joris,


Ah, thanks for explaining.

Andres Codas Duarte

unread,
Dec 19, 2017, 9:11:09 AM12/19/17
to CasADi
Hi,

   I'm running the package casadi-octave-v3.3.0.tar.gz on octave 4.0.3-3 in a Debian machine.  I got the error:

error: sym: /root/mat_casadi/casadiMEX.mex: failed to load: liboctinterp.so.4: cannot open shared object file: No such file or directory

   Indeed there is no such a library:

find / -name "liboctinterp*"
/usr/lib/x86_64-linux-gnu/liboctinterp.so.3.1.1
/usr/lib/x86_64-linux-gnu/liboctinterp.so.3

   In OSX the package works for both octave 4.0.3 and 4.2.1

   Is this the similar issue as before?

   Thanks,
   Andres

Joris Gillis

unread,
Dec 19, 2017, 10:13:16 AM12/19/17
to CasADi
Hi Andres,

As of 3.3.0, our debian packages are set up to work with octave 4.2 and up. A separate package for lower octave version was dropped.
If there is a good need for them, I may restore it..

Best regards,
  Joris

Andres Codas Duarte

unread,
Dec 19, 2017, 10:20:36 AM12/19/17
to CasADi
Hi Joris,

   The reason is that it is the only options via apt:

apt-cache policy octave
octave:
  Installed: 4.0.3-3
  Candidate: 4.0.3-3
  Version table:
 *** 4.0.3-3 500
        500 http://deb.debian.org/debian stretch/main amd64 Packages
        100 /var/lib/dpkg/status

   If there is other simple way to install octave 4.2 that I'm missing please let me know, I have no constraint on using 4.2.1 instead of 4.0.3

   Andres

Joris Gillis

unread,
Dec 19, 2017, 10:25:57 AM12/19/17
to Andres Codas Duarte, CasADi

--
Sent from CasADi's user forum at http://forum.casadi.org.
---
You received this message because you are subscribed to the Google Groups "CasADi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to casadi-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/casadi-users/5c922a13-2d3f-473b-97db-fae352a33cd7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andres Codas Duarte

unread,
Dec 19, 2017, 10:57:25 AM12/19/17
to CasADi
Joris,

   I'm on "Debian GNU/Linux 9 (stretch)", are you suggesting that package for ubuntu anyway?

   I have been tried without success to follow your suggestion.

   First I installed `software-properties-common` to get add-apt-repository  However when running `add-apt-repository ppa:octave/stable I get `gpg: no valid OpenPGP data found.`  and I don't know how to get around it...

   Andres
To unsubscribe from this group and stop receiving emails from it, send an email to casadi-users...@googlegroups.com.

Andres Codas Duarte

unread,
Dec 19, 2017, 11:11:48 AM12/19/17
to CasADi
It seems I managed to include the key, however it seems there are a lot of dependencies that are not installable:

apt-get install octave
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 octave : Depends: libamd2.3.1 but it is not installable
          Depends: libccolamd2.8.0 but it is not installable
          Depends: libcholmod2.1.2 but it is not installable
          Depends: libcolamd2.8.0 but it is not installable
          Depends: libcxsparse3.1.2 but it is not installable
          Depends: libglpk36 (>= 4.51) but it is not installable
          Depends: liboctave4 (= 4.2.1-2~octave~trusty2) but it is not going to be installed
          Depends: libqhull6 but it is not installable
          Depends: libqscintilla2-11 but it is not installable
E: Unable to correct problems, you have held broken packages.

Please let me know if you will restore compatibility with octave 4.0.3 otherwise I need to find a workaround.

Regads,
Andres

Andres Codas Duarte

unread,
Dec 20, 2017, 9:20:24 AM12/20/17
to CasADi
Hi,

   For the record, the default version of octave in Ubuntu 16.04.3 LTS is 4.0.0 and with that the error reported here persists.

   I followed your suggestion to get octave 4.2.1.  I proceeded by:

   apt-get software-properties-common
   add-apt-repository ppa:octave/stable
   apt-get update
   apt-get install octave=4.2.1-2~octave~xenial1

   Then you get the right version of octave to run the casadi builds.  However, with the new version of octave we still need to do more work to install other octave packages such as 'octave-optim', because those available by apt are not compatible.

   Therefore, it would be nice if you could support the currently default/stable release of octave in your builds, so users can get started smoothly.

   Regards,
   Andres

Dave Goel

unread,
Dec 21, 2017, 2:17:47 AM12/21/17
to Andres Codas Duarte, CasADi
Andres, add backports to your sources.list and you should be able to get 4.2.1 

You received this message because you are subscribed to a topic in the Google Groups "CasADi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/casadi-users/iUkB9AsR_-o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to casadi-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/casadi-users/62abe40f-69d1-4f73-8be1-bdd2abf83893%40googlegroups.com.

Andres Codas Duarte

unread,
Dec 21, 2017, 10:01:59 AM12/21/17
to CasADi
Hi Dave and Joris,

   Thanks for the pointers, I finally managed to install for both Ubuntu and Debian.  This is what I did:

Ubuntu:

apt-get install -y software-properties-common
add-apt-repository -y ppa:octave/stable
apt-get update
apt-get install -y octave=4.2.1-2~octave~xenial1
apt-get install -y liboctave-dev
octave --no-window-system --eval "pkg install -forge struct"
octave --no-window-system --eval "pkg install -forge optim"

Debian:

echo "deb http://ftp.debian.org/debian stretch-backports main" >> /etc/apt/sources.list
apt-get update
apt-get install -y octave-common=4.2.1-2~bpo9+1
apt-get install -y octave=4.2.1-2~bpo9+1
apt-get install -y liboctave-dev=4.2.1-2~bpo9+1
octave --no-window-system --eval "pkg install -forge struct"
octave --no-window-system --eval "pkg install -forge optim"

   Those are compatible with the latest builds of casadi available in sourceforge

   Cheers,
   Andres
To unsubscribe from this group and all its topics, send an email to casadi-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages