problem running Version 17.0

For Raspberry Pi specific issues .. more general issues will appear in UNIX and Linux
Post Reply
User avatar
ray
Posts: 238
Joined: Wed Feb 24, 2010 12:24 am
Location: Blackwater, Camberley. UK

problem running Version 17.0

Post by ray »

Hi

I have Dyalog 16 on my RPi ZERO, and today tried to upgrade to 17.

The upgrade to (17.0.35466) appears to be OK and I can run it with

Code: Select all

/opt/mdyalog/17.0/32/unicode/mapl

and I see 17.0.35466 start up.

However, starting up Dyalog via the command

Code: Select all

dyalog

still starts up version 16.0.35315

How can I get the command "dyalog" to run 17.0?

Thanks
Ray
Ray Cannon
Please excuse any smelling pisstakes.
User avatar
AndyS|Dyalog
Posts: 263
Joined: Tue May 12, 2009 6:06 pm

Re: problem running Version 17.0

Post by AndyS|Dyalog »

Hi Ray

What command(s) did you run to update from 16.0 to 17.0 ?
Had you altered /usr/bin/dyalog at all ?
User avatar
ray
Posts: 238
Joined: Wed Feb 24, 2010 12:24 am
Location: Blackwater, Camberley. UK

Re: problem running Version 17.0

Post by ray »

Hi Andy,
I have now (just before you replied) got round the problem.

I have modified the line in /etc/alternatives/dyalog

Code: Select all

export DYALOG=/opt/mdyalog/16.0/32/unicode

to read

Code: Select all

export DYALOG=/opt/mdyalog/17.0/32/unicode

and this seems to have done the trick.

I assume part of the upgrade to 17.0 on my Pi ZERO failed. There were some error messages relating to Miserver 4.1 displayed during the

Code: Select all

sudo apt-get dist-upgrade


I have NOT altered /usr/bin/dyalog.

Do you want any more information, and do I need to do any thing else?

Thanks
Ray
Ray Cannon
Please excuse any smelling pisstakes.
User avatar
AndyS|Dyalog
Posts: 263
Joined: Tue May 12, 2009 6:06 pm

Re: problem running Version 17.0

Post by AndyS|Dyalog »

Ray and I have corresponded further about this. We're not entirely sure what happened, but I have learned that you should never edit /usr/bin/dyalog on Linux/Pi. Linux has a system which allows you to select which of several different versions of selected files you want to use - the update-alternatives system.

If on Linux/Pi you wish to alter which version /usr/bin/dyalog points to, simply run
      sudo update-alternatives --config dyalog
and select the version that you wish to run.

It is never a good idea to edit the mapl script in the Dyalog installation directory .. we recommend either taking a copy of mapl editing that, or writing your own script and pointing to $DYALOG/mapl .. actually, it's never a good idea to edit any file in any Dyalog installation .. we might overwrite it in the next patch (and this is likely to be true of Dyalog on Windows in the not too distant future too).
Post Reply