WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: install mathics (libgmp3-dev needed)  (Read 2882 times)

Offline limeblack

  • Jr. Member
  • **
  • Posts: 69
install mathics (libgmp3-dev needed)
« on: September 19, 2015, 02:03:14 PM »
Is it possible to install mathics?  It mathematica alternative?
« Last Edit: September 19, 2015, 02:31:37 PM by limeblack »

Offline limeblack

  • Jr. Member
  • **
  • Posts: 69
Re: install mathics
« Reply #1 on: September 19, 2015, 02:30:08 PM »
I'm now looking to install

libgmp3-dev

could someone add it to the repository?  From the list http://www.mathics.org/ here.

Offline limeblack

  • Jr. Member
  • **
  • Posts: 69
Re: install mathics
« Reply #2 on: September 19, 2015, 08:50:04 PM »
So install curl tar lzip compiletc tcz then run

curl https://gmplib.org/download/gmp/gmp-6.0.0a.tar.lz > gmp.tar.lz
tar --lzip -xvf gmp-6.0.0.tar.lz
cd gmp
./configure
make
make check
sudo make install
wget "http://limeblack.github.io/Mathics-0.8%20(1).zip"
unzip "Mathics-0.8%20(1).zip"
cd mathics
python setup.py install

"no module named setuptools"

Offline sn6uv

  • Newbie
  • *
  • Posts: 1
Re: install mathics (libgmp3-dev needed)
« Reply #3 on: September 19, 2015, 10:50:12 PM »
Mathics maintainer here.

The installation instructions on mathics.org are out of date (that page is maintained by the previous maintainer of Mathics).

There is a new guide here: https://github.com/mathics/Mathics/wiki/Installing

In particular you no longer need gmp. You do however need python-setuptools (which is why mathics isn't installing for you). Instructions for installing setuptools here https://pypi.python.org/pypi/setuptools

Let me know if you have any more questions

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14546
Re: install mathics
« Reply #4 on: September 19, 2015, 11:46:00 PM »
I'm now looking to install

libgmp3-dev

It's not obvious what is meant by libgmp3 - the gmp extension contains libgmp.so.10, libgmp.so.3 would be from the year +/- 2000...

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14546
Re: install mathics
« Reply #5 on: September 19, 2015, 11:47:52 PM »
"no module named setuptools"

use the python-setuptools extension

Code: [Select]
$ mathics

Mathics 0.8
on CPython 2.7.10 (default, Sep  4 2015, 16:16:17)
using SymPy 0.7.6, mpmath 0.19
« Last Edit: September 19, 2015, 11:58:53 PM by Juanito »

Offline limeblack

  • Jr. Member
  • **
  • Posts: 69
Re: install mathics (libgmp3-dev needed)
« Reply #6 on: September 20, 2015, 03:37:17 PM »
@sn6uv I'm unable to run mathicsserver. I run

sudo mathicsserver -p 314

and when visiting it with Firefox I get the following error.

http://i.stack.imgur.com/W7dOZ.png

This should fix the error but doesn't http://stackoverflow.com/questions/21129020/how-to-fix-unicodedecodeerror-ascii-codec-cant-decode-byte

Offline limeblack

  • Jr. Member
  • **
  • Posts: 69
Re: install mathics (libgmp3-dev needed)
« Reply #7 on: September 22, 2015, 01:44:04 PM »
In tinycorelinux you have to run the following 1st.

rm /usr/local/lib/python2.7/SocketServer.py
cp /tmp/tcloop/python/usr/local/lib/python2.7/SocketServer.py /usr/local/lib/python2.7/SocketSerever.py

Then you remove `import sys` from `/usr/local/lib/python2.7/SocketServer.py` and add the following to the top

import sys
reload(sys)
sys.setdefaultencoding('utf8')

I'm in the process of creating a tinycorelinux iso so people can run it on Windows through VirtualBox.