Group Abstract Group Abstract

Message Boards Message Boards

4
|
31.7K Views
|
37 Replies
|
14 Total Likes
View groups...
Share
Share this post:

Roadmap to Mathematica 12 on Raspberry Pi?

Posted 7 years ago

Great to see Mathematica 12 released and I can't wait to try the new functionality!

What is the timeline and roadmap to get Mathematica 12 to the Pi? – Thanks!

37 Replies

v.13 is available now on the repositories.

Posted 4 years ago

I was wrong, and spent about 3 hours last night proving it. Buster has Mathematica V12.3, Bullseye 12.3. Doubt crept into my mind about what versions of Mathematica appeared where, so I went through the slow process of building a Bullseye card on a Pi Zero 2 to check. After burning the image onto a card, booting the Pi and setting location, I skipped the updates and opened Mathematica, it was 12.2. Then I let it update (1.4 GB) and rebooted to find Mathematica 12.3, and for those who care I think it was arm-hf. As a reminder, I only got into the Raspberry Pi for Mathematica and try to ignore all the details that used to be such a delight on other systems. This usually works for me, as I've built Mathematica clusters with the Pi, but I also seriously stumble a lot with the complexities of an application like Mathematica.

POSTED BY: David Morton
Posted 4 years ago

Honestly, I'm not certain. I installed the full desktop image of Bullseye, and it had Mathematica and I thought it downloaded an upgrade to Mathematica 13. A lot of other OS images do not have Mathematica, and Buster only has Mathematica 12.something. I abandoned Bullseye after a couple of weeks so I can't check for you, sorry. Since then, I've been swamped so I may be wrong. The MagPi magazines may help (https://magpi.raspberrypi.com/issues), try 113 for starters.

POSTED BY: David Morton
Posted 4 years ago

Are you sure Mathematica 13 is out for Raspberry? All the download links I can find lead to 12.3.1, not to 13.x.y

Any hints welcome!

POSTED BY: Ronald Antony
Posted 4 years ago
POSTED BY: David Morton
POSTED BY: Stephen Wilkus
Posted 5 years ago
POSTED BY: David Morton
Posted 5 years ago

Hi thanks for answering...

From what I can tell, the license for Mathematica is tied to the Raspberry Pi hardware (see section: Permitted Uses and Installations), not to a particular type of operating system. Of course, what‘s officially supported is a different matter.

Both Raspberry Pi OS and Kali are based on Debian, although Kali has a rolling release policy, so it‘s always considerably more up to date (which is the main reason why I like it, aside from a slicker looking UI, and some nifty network/sysadmin security testing tools).

If you have a 64-bit or 32-bit version of Mathematica is fairly easy to establish, look at the output of this:

$ file /opt/Wolfram/WolframEngine/12.1/SystemFiles/Kernel/Binaries/*/*               
/opt/Wolfram/WolframEngine/12.1/SystemFiles/Kernel/Binaries/Linux-ARM/ELProver:      ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=e380f960723d748626a08893fa06331715488d51, stripped
/opt/Wolfram/WolframEngine/12.1/SystemFiles/Kernel/Binaries/Linux-ARM/WolframKernel: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=c0beadca4282b84bf648e231fd2d1e99c628170d, stripped

My results clearly show 32-bit executables, so even without having access to the install logs or whatever, it‘s pretty easy to see what‘s installed. In case you should have a newer version of Mathematica, like e.g. some sort of 12.2 beta or something, the path would differ in easily discoverable ways.

Being a 32-bit executable aside, Mathematica works just fine after jumping through the hoops described here Installing Mathematica under 64-bit Kali Linux on a Raspberry Pi Haven’t been able to test how much memory it can access, though...

POSTED BY: Ronald Antony
Posted 5 years ago
POSTED BY: David Morton
Posted 5 years ago

Sorry to bug you again: are you sure you’re actually talking about an arm64 version of Mathematica, and not about an armhf version that’s capable of running on a 64-kernel 64/32-bit Userland Linux?

The reason I ask, when I go to

http://archive.raspberrypi.org/debian/pool/main/w/wolfram-engine/

all I can find are armhf packages. Same if I go to

http://archive.raspberrypi.org/debian/pool/main/w/wolframscript/

There’s nowhere an arm64 package of these to be seen. Am I missing something?

POSTED BY: Ronald Antony
Posted 5 years ago

Thanks for the info, that's great! I got the armhf version working under a 64-bit OS install, by using the install script available from wolfram. Since I'm running Kali, and not Raspian, the apt install wolfram-engine won't work for me, I'll need to find a way to actually download the .deb file similar to the way the install script found at https://wolfr.am/wolfram-engine-raspi-install does.

Also, the install script installs two parts, wolfram-engine and wolframscript, I assume they are both 64-bit, otherwise it's still a mixed 32-bit/64-bit installation, which is somewhat less efficient when it comes to shared libraries being loaded twice into memory, once in a 32-bit and once in a 64-bit version. I guess I'll need to dig for the download URLs of these arm64 deb packages, unless someone here has them handy.

POSTED BY: Ronald Antony
Posted 5 years ago
POSTED BY: David Morton
Posted 5 years ago

Any plans to make an arm64 version of Mathematica for the RasPi? Or will that have to wait for Mathematica 13?

POSTED BY: Ronald Antony
Posted 6 years ago
POSTED BY: David Morton
POSTED BY: Pierre Albarede
Posted 6 years ago
POSTED BY: David Morton
POSTED BY: Szabolcs Horvát

V12 does run on Stretch and does not have any particular hardware requirements (of course, it may feel nicer to use on a faster device)

For now, you can download and install the two packages manually

wolframscript_1.3.0+2019062801_armhf.deb

wolfram-engine_12.0.1+2019062401_armhf.deb

or use the installation script from https://www.wolfram.com/raspberry-pi/

I will check into making this available through the apt repository for Stretch. (EDIT: Now available)

POSTED BY: Ilian Gachevski
Posted 6 years ago
POSTED BY: David Morton
Posted 6 years ago
POSTED BY: David Morton
Posted 6 years ago

I've spent much of the last few days exploring Mathematica on the PI, using archived versions of Jessie, Stretch, and the new Buster. I was looking at benchmarks across my 3Pis and versions. I learned Jessie runs Mathematica 10, Stretch runs Mathematica 11 & Buster runs Mathematica 12. I'm surprised at the trouble people are having, after burning a Buster card I just ran sudo apt-get update sudo apt-get upgrade sudo apt-get install wolfram-engine and it worked without a hitch.

POSTED BY: David Morton

Did you run the install script mentioned?

The install script downloads the package from a separate source (not the official Raspbian repos). Is it the case that the Raspbian repos simply do not yet carry M12.0?

That aside, I would still like to know the answer to the questions above regarding compatibility (preferably without having to try to install M12.0, then revert again to M11.3).


The reason why I want to stay with 11.3 until 12.0 are in the Raspbian repositories: I publish a package with binary components that also includes RPi support. Binaries built with 12.0 will not work with 11.3, but those built with 11.3 work fine with 12.0. I am reluctant to require 12.0 until it becomes simple enough for everyone to install it with a simple apt install.

POSTED BY: Szabolcs Horvát

Did you run the install script mentioned?

I have a Raspberry Pi 1 B with Stretch and I do not see the update.

Does M12 require Buster?

Does it require more recent Raspberry Pi hardware?

Is there a page listing system requirement?

(I assume it just needs Buster but could you please confirm before I go ahead and upgrade?)

POSTED BY: Szabolcs Horvát

Today I managed to install Mathematica 12 on Raspberry Pi 3B+ with Raspbian Buster. Thanks.

I used the installation script provided here https://www.wolfram.com/raspberry-pi/ and

sudo apt-get update sudo apt-get dist-upgrade sudo apt --fix-broken install.

There were some errors but eventually it worked.

POSTED BY: Pierre Albarede

Just got a Raspberry Pi and I'm looking forward to trying Mathematica on it :)

POSTED BY: Scott G Fischer
POSTED BY: Ilian Gachevski
Posted 7 years ago

It's a bit of an aside, but has anyone run the Mathematica internal benchmark on a 4GB Pi4 yet? I need to figure out if the is enough change to upgrade from a 3B+ when they ship here in about 10 days.

POSTED BY: David Morton

As mentioned at

https://twitter.com/WolframResearch/status/1143199129734193154

Mathematica 12 should be available in the coming days.

Currently the release candidate builds are undergoing final QA testing to make sure they work well on the just released Raspberry Pi 4, as well as on Raspbian Buster.

POSTED BY: Ilian Gachevski

Dear Ilian, Any news here, maybe anything to test for us? Thanks! Michael

That's great! Thank you. My girlfriend is an atmospheric chemist and we are working on automated gathering of time-series data on the concentrations of various gasses in the air using the Raspberry Pi + Mathematica.

POSTED BY: Nicholas Brunk

This example seems to work fine in the 12.0 builds currently under testing.

POSTED BY: Ilian Gachevski
POSTED BY: Nicholas Brunk

Yes, this and a couple of other dependencies will be ironed out for Buster compatibility.

POSTED BY: Ilian Gachevski

P.S.: It would be great if you could also look into the dependency libcurl3, which will no longer be available in Debian Buster.

Terrific, thank you!

Hopefully soon -- that is to say, in weeks rather than months.

POSTED BY: Ilian Gachevski
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard