You are not logged in.

#1 2018-07-19 18:09:06

atroxent
Member
Registered: 2017-04-19
Posts: 2

Use old version of Pango with Matlab?

Hi,

I recently installed Matlab R2018a and it didn't work very well at first.
Then I followed some advice on using the system libraries instead of the ones bundled with Matlab, by removing the bundled ones and creating symlinks to the system libraries.
I then received some error about Pango, tried downgrading from 1.42 to 1.40 and now Matlab seems to work fine.

Now I'm afraid that doing

pacman -Syu

will upgrade Pango and break Matlab.

I was thinking that maybe I could make a copy of the old Pango library and have Matlab use that one instead of the one used by the rest of the system.
Is there a way this could be done? Any other options besides downgrading Matlab?

I tried searching for similar problems but didn't find any threads.

Offline

#2 2018-07-20 06:32:06

IrvineHimself
Member
From: Scotland
Registered: 2016-08-21
Posts: 275

Re: Use old version of Pango with Matlab?

If it is just a problem of the update cycle for a package and its dependency being out of sync, after running a full upgrade you can revert the dependency, (or, alternatively, the package,)  by running

sudo pacman -U /var/cache/pacman/pkg/<old-version>

The advantage of doing it this way is that it allows you to check whether the update has made the reversion un-necessary.

On the other hand, checking the Matlab page in the AUR, although currently out of date, the package appears to be actively maintained with a pending request for a new co-maintainer. So, unless there are pressing reasons to the contrary, I personally would stick with the outdated AUR package.

Irvine


Et voilà, elle arrive. La pièce, le sous, peut-être qu'il arrive avec vous!

Offline

#3 2018-07-20 12:18:48

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Use old version of Pango with Matlab?

IrvineHimself wrote:

If it is just a problem of the update cycle for a package and its dependency being out of sync, after running a full upgrade you can revert the dependency, (or, alternatively, the package,)  by running

sudo pacman -U /var/cache/pacman/pkg/<old-version>

The advantage of doing it this way is that it allows you to check whether the update has made the reversion un-necessary.

That may work as an absolute emergency temporary solution if a package from repos needs a rebuild. In this case, matlab needs to be fixed, and that's not going to just magically happen by itself.

Partial upgrades are unsupported for a reason, and sticking to outdated version is likely to break other things.

I'd imagine whatever was your original issue with matlab, is fixed in the AUR package. If you really need the latest version, AUR user petroux posted and updated PKGBUILD for latest matlab in the AUR comments, that you could try.

Offline

#4 2018-07-20 13:38:06

IrvineHimself
Member
From: Scotland
Registered: 2016-08-21
Posts: 275

Re: Use old version of Pango with Matlab?

ooo wrote:

...... Partial upgrades are unsupported for a reason, and sticking to outdated version is likely to break other things......

I agree 100%, that's why my preferred suggestion was to stick with the AUR package.

Irvine


Et voilà, elle arrive. La pièce, le sous, peut-être qu'il arrive avec vous!

Offline

#5 2018-07-21 22:16:48

atroxent
Member
Registered: 2017-04-19
Posts: 2

Re: Use old version of Pango with Matlab?

Thanks everyone!

The way I installed Matlab was from an  image .iso file. I did a full upgrade and Matlab still didn't work with the latest version of Pango.
What seems to be working so far is copying some library files from an old version of Pango as described here, in addition to the symlinks described here.

I will try using the AUR package next time I install Matlab.

Offline

Board footer

Powered by FluxBB