You are not logged in.

#1 2017-03-24 17:05:27

mich_arch
Member
From: Naples (Italy, Campania)
Registered: 2017-03-17
Posts: 8
Website

[SOLVED] Octave installation old version issue

Hi guys,
I am having a problem with the installation of an old version of Octave (octave-4.2.0-1-x86_64). After installing, if I try to run octave in a terminal I get tho following error:

/usr/lib/octave/4.2.1/exec/x86_64-pc-linux-gnu/octave-gui: error while loading shared libraries: libqscintilla2-qt5.so.12: cannot open shared object file: No such file or directory

.

Why? Can you help me, please? I wasn't able to figure out the problem.

(With the last version of Octave, when I tried to install the communications package, I got the following error related to base-lu.h file:

In file included from galois-def.cc:21:0:
galois.h:25:28: fatal error: octave/base-lu.h: File o directory non esistente
 #include <octave/base-lu.h>
                            ^
compilation terminated.
make: *** [Makefile:45: galois-def.o] Error 1
make: leaving directory "/tmp/oct-GWNDSI/communications-1.2.1/src"

It seems to be a known bug and, reading something on web, many users suggest to install an old version with base-lu.h file included).

Thanks in advance.

Last edited by mich_arch (2017-03-25 18:28:21)


MB
Regards

Offline

#2 2017-03-24 18:14:17

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] Octave installation old version issue

If you really need an older version of octave, that is, if you can't patch whatever is buggy then you'll have to rebuild that old version of octave with your current system libraries.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2017-03-24 18:37:56

mich_arch
Member
From: Naples (Italy, Campania)
Registered: 2017-03-17
Posts: 8
Website

Re: [SOLVED] Octave installation old version issue

R00KIE wrote:

If you really need an older version of octave, that is, if you can't patch whatever is buggy then you'll have to rebuild that old version of octave with your current system libraries.

Well, the best thing, obviously, would be to solve the problem I mentioned about the last version. You have an idea? Any suggestion?

In case of old version installation, can you, please, tell me how to rebuild octave?
A step by step procedure would be better, I am not an expert.
I downloaded octave from
https://archive.archlinux.org/packages/o/octave/.


MB
Regards

Offline

#4 2017-03-24 21:42:59

loqs
Member
Registered: 2014-03-06
Posts: 17,372

Re: [SOLVED] Octave installation old version issue

I would recomend using the 4.03-1 PKGBUILD https://git.archlinux.org/svntogit/pack … b85bdc8cfb
Change qscintilla to qscintilla-qt5 and build the package as normal as the package you are having issues with octave-communications is in AUR you should already be familiar with package building.
Rebuild and update the dependant AUR packages octave-control then octave-signal then octave-communications should build.  Only tested that builds successfully.

Offline

#5 2017-03-24 22:29:17

mich_arch
Member
From: Naples (Italy, Campania)
Registered: 2017-03-17
Posts: 8
Website

Re: [SOLVED] Octave installation old version issue

loqs wrote:

I would recomend using the 4.03-1 PKGBUILD https://git.archlinux.org/svntogit/pack … b85bdc8cfb
Change qscintilla to qscintilla-qt5 and build the package as normal as the package you are having issues with octave-communications is in AUR you should already be familiar with package building.
Rebuild and update the dependant AUR packages octave-control then octave-signal then octave-communications should build.  Only tested that builds successfully.

Sorry loqs I am new of archlinux. For clarity:

What I should do is:
1) git clone https://git.archlinux.org/svntogit/pack … b85bdc8cfb  local directory (I tried but I got: fatal: repository 'https://git.archlinux.org/svntogit/pack … es/octave/' not found )

2) makepkg PKGBUILD in the local directory (as written in https://wiki.archlinux.org/index.php/PKGBUILD

3) After getting the pkgname.pkg.tar.xz archive, I have to type pacman -U pkg.tar.gz

Is right? If not, please tell me the steps to follow. Thanks.


MB
Regards

Offline

#6 2017-03-24 22:53:01

loqs
Member
Registered: 2014-03-06
Posts: 17,372

Re: [SOLVED] Octave installation old version issue

In step 1 you should follow the link for the two files then the plain version for each file and download that then adjust qscintilla to qscintilla-qt5.

$ mkdir octave
$ cd octave
$ curl 'https://git.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/octave&id=f86a9c1e61b09b73c2b4230cd02671b85bdc8cfb' -o PKGBUILD
$ curl 'https://git.archlinux.org/svntogit/packages.git/plain/trunk/octave-gcc6.patch?h=packages/octave&id=f86a9c1e61b09b73c2b4230cd02671b85bdc8cfb' -o octave-gcc6.patch
$ sed -i 's/qscintilla/qscintilla-qt5/' PKGBUILD

See also Makepkg#Signature_checking for step 2.
After step 3 then rebuild the octave packages from AUR as I mentioned previously.
Edit:
grammar

Last edited by loqs (2017-03-24 22:53:56)

Offline

#7 2017-03-25 17:46:40

mich_arch
Member
From: Naples (Italy, Campania)
Registered: 2017-03-17
Posts: 8
Website

Re: [SOLVED] Octave installation old version issue

loqs wrote:

In step 1 you should follow the link for the two files then the plain version for each file and download that then adjust qscintilla to qscintilla-qt5.

$ mkdir octave
$ cd octave
$ curl 'https://git.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/octave&id=f86a9c1e61b09b73c2b4230cd02671b85bdc8cfb' -o PKGBUILD
$ curl 'https://git.archlinux.org/svntogit/packages.git/plain/trunk/octave-gcc6.patch?h=packages/octave&id=f86a9c1e61b09b73c2b4230cd02671b85bdc8cfb' -o octave-gcc6.patch
$ sed -i 's/qscintilla/qscintilla-qt5/' PKGBUILD

See also Makepkg#Signature_checking for step 2.
After step 3 then rebuild the octave packages from AUR as I mentioned previously.
Edit:
grammar

Thanks a lot loqs, the solution you proposed works perfectly. I was able to install the communications package big_smile
How can I make this thread solved?

Last edited by mich_arch (2017-03-25 18:10:33)


MB
Regards

Offline

#8 2017-03-25 18:25:56

loqs
Member
Registered: 2014-03-06
Posts: 17,372

Re: [SOLVED] Octave installation old version issue

mich_arch wrote:

How can I make this thread solved?

By editing your first post you can edit the thread title and prepend it with [Solved]

Offline

Board footer

Powered by FluxBB