I have used Mathematica 9 for long time. Recently I have upgraded my operating system to Ubuntu 18.04 and tried to reinstall Mathematica 9. It did not give any error while installing. However when i try to open Mathematica to complete registration, it give the output

/usr/local/Wolfram/Mathematica/9.0/SystemFiles/FrontEnd/Binaries/Linux-x86-64/Mathematica: /usr/local/Wolfram/Mathematica/9.0/SystemFiles/Libraries/Linux-x86-64/libz.so.1: version `ZLIB_1.2.9' not found (required by /usr/lib/x86_64-linux-gnu/libpng16.so.16)

I don't understand what is wrong, as the same machine with Ubuntu 17.04 it installed perfectly and never gave a problem. Any suggestions?

  • 3
    $\begingroup$ "Any suggestions?" install MMA 11.3? $\endgroup$ Nov 30 '18 at 4:17
  • $\begingroup$ Mathematica 9 came out almost a decade ago. Ubuntu 18.04, this year. It is expected that very old software might be incompatible with very new software. Sucks when it happens, but that means it's time to upgrade! $\endgroup$
    – ktm
    Nov 30 '18 at 4:28
  • $\begingroup$ Mathematica 9 came out almost a decade ago Damn. Now I feel old. $\endgroup$ Nov 30 '18 at 6:31
  • $\begingroup$ @NikiEstner Actually, it came out in 2012 and they sold it until 2014. So it's only been four years since they stopped selling it, so don't feel too old :) $\endgroup$
    – C. E.
    Nov 30 '18 at 9:02
  • 1
    $\begingroup$ As a example from another OS, using Windows 7 Enterprise SP1, I have versions 6,7,8,9,10 installed and they all work fine. $\endgroup$
    – Somos
    Dec 1 '18 at 4:11

I ran into the same problem after having upgraded to Fedora 30. A similar issue has already been discussed here

Can't launch Mathematica 11 on Fedora 29

And the solution for this particular problem can be found e.g. in


Essentially, all you need to do is just copy libz.so.1 from your /usr/lib to the relevant Mathematica directory

sudo cp Mathematica9Path/SystemFiles/Libraries/Linux-x86-64/libz.so.1 Mathematica9Path/SystemFiles/Libraries/Linux-x86-64/libz.so.1.old
sudo cp /usr/lib/libz.so.1 Mathematica9Path/SystemFiles/Libraries/Linux-x86-64/ 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.