Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: limeblack on September 19, 2015, 02:03:14 PM

Title: install mathics (libgmp3-dev needed)
Post by: limeblack on September 19, 2015, 02:03:14 PM
Is it possible to install mathics?  It mathematica alternative?
Title: Re: install mathics
Post by: limeblack 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.
Title: Re: install mathics
Post by: limeblack 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"
Title: Re: install mathics (libgmp3-dev needed)
Post by: sn6uv 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
Title: Re: install mathics
Post by: Juanito 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...
Title: Re: install mathics
Post by: Juanito 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
Title: Re: install mathics (libgmp3-dev needed)
Post by: limeblack 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
Title: Re: install mathics (libgmp3-dev needed)
Post by: limeblack 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.