From: bill on
On 02/23/10 10:29 AM, David Kirkby wrote:
> On Feb 23, 12:00 am, bill<billg...(a)nyc.rr.com> wrote:
>> On 02/22/10 07:32 AM, David Kirkby wrote:
>>
>>> On Feb 22, 5:13 am, Raymond Toy<toy.raym...(a)gmail.com> wrote:
>>
>>>> I didn't say it would be easy. But you stated that Maxima "cover[s]
>>>> computer algebra only". I merely pointed out that it can do more than
>>>> just computer algebra, and since it has a programming language and also
>>>> includes Lisp, you can make it do whatever you want, if you were so
>>>> inclined.
>>
>>> Yes, I accept what you are saying.
>>
>>>>> I'd be keen to hear from anyone who either downloads the Solaris
>>>>> binary, or builds the source code on Solaris.
>>
>>>> I have a Sparc Solaris 10 machine and could build Sage, but since my
>>>> slow Solaris machine takes quite a long time to compile maxima, I'm not
>>>> inclined to compile Sage.
>>
>>> Fair enough. Sage does take a time to build.
>>
>>>> I could download and run Sage, but since I
>>>> don't know anything about it so that might be useful to anyone, unless
>>>> you want to know that it at least runs on my machine.
>>
>>>> Ray
>>
>>> That would be very useful to know if you have a Solaris 10 system. If
>>> it is running Solaris 9 or older, then it is doubtful it would run at
>>> all, so I would not bother.
>>
>>> Just check first if your system has the 'p7zip' command. If it does,
>>> then download
>>
>>> 'sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v.tar.7z'
>>
>>> from your nearest mirror athttp://www.sagemath.org/download-solaris.html
>>
>>> If your Solaris 10 system does not have 'p7zip' then the easiest
>>> solution is probably to download the .gz solution and decompress with
>>> gzip. Unfortunately, that is considerably larger, as p7zip is much
>>> better than bzip2 or gzip at compressing binary files. (For source
>>> files, the gains are far less significant).
>>
>>> Even if you can just type
>>
>>> sage: 1+1
>>
>>> it would be helpful to know. How to install the binary is documented
>>> athttp://wiki.sagemath.org/solaris-binaries
>>
>>> Since you know how to use Maxima, the following link explains briefly
>>> how Maxima's capabilities would be used inside Sage:
>>
>>> http://www.sagemath.org/doc/tutorial/interfaces.html
>>
>>> (It mentions there Maxima uses clisp, but it is in fact now using ecl
>>> for the lisp interpreter, not clisp as it used to do. I've asked that
>>> someone correct that).
>>
>>> BTW, you can try out Sage on a Solaris machine at
>>
>>> http://t2nb.math.washington.edu:8000/
>>
>>> but I would like to know if it works on other peoples machines.
>>
>>> It is more hassle running the notebook if you don't have a browser on
>>> the local host, as the default security settings will not allow the
>>> web based interface to work except on the local host. If you only have
>>> access to your Solaris machine via ssh, then don't worry about that.
>>
>>> Davedownloaded binary package.
>>
>> Added export LD_LIBRARY_PATH=/usr/sfw/lib
>> into ./sage
>>
>> uname -a =>
>> SunOS acc187 5.10 Generic_142900-04 sun4u sparc SUNW,Sun-Blade-100
>>
>> $ acc187:/var/tmp/sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v>
>> $> ./sage
>> ----------------------------------------------------------------------
>> | Sage Version 4.3.0.1, Release Date: 2010-01-28 |
>> | Type notebook() for the GUI, and license() for information. |
>> ----------------------------------------------------------------------
>> sage: import _hashlib
>> sage: notebook()
>> The notebook files are stored in: sage_notebook.sagenb
>> **************************************************
>> * *
>> * Open your web browser tohttp://localhost:8000*
>> * *
>> **************************************************
>> 2010-02-22 11:23:39-0500 [-] Log opened.
>> 2010-02-22 11:23:39-0500 [-] twistd 8.2.0
>> (/var/tmp/sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v/local/bin/python
>> 2.6.2) starting up.
>> 2010-02-22 11:23:39-0500 [-] reactor class:
>> twisted.internet.selectreactor.SelectReactor.
>> /var/tmp/sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v/local/bin/sage-native-execute:
>> xdg-open: not found
>>
>> ^^^^^^^^^^^^^^^^^^^^
>> 2010-02-22 11:23:39-0500 [-] twisted.web2.channel.http.HTTPFactory
>> starting on 8000
>> 2010-02-22 11:23:39-0500 [-] Starting factory
>> <twisted.web2.channel.http.HTTPFactory instance at 0x387a5f8>
>>
>> hangs
>> ^C does bring back the sage: prompt
>>
>> xdg-open is not part of solaris.
>>
>> Bill
>
> This is the 3rd time I've tried to reply to this. I'm not using
> another account. Perhaps I'll have more luck.
>
> I have seen this error message myself before, but thought it was
> fixed. It is in fact listed as an outstanding bug
>
> http://trac.sagemath.org/sage_trac/ticket/4979
>
> If you are running Sage on the localhost, then you may find the
> browser will work at that port, despite the error message.
>
> If Sage is running on a different machine to where your browser is
> then, assuming your network is secure from intruders, you can try:
>
> sage: notebook(address='', secure=False)
>
> then opening the browser at http://IP_ADDRESS_OF_SERVER_RUNNING_SAGE:8000
>
> not to localhost. I think that message to go to the local host is
> confusing, and hope to get that changed.
>
> Be aware, if port 8000 is open to the world, then anyone can connect
> to the server, which is not a good idea.
>
> It is possible to restrict who can access the server via IP address.
> By default, only the local host can connect. With the above syntax,
> anyone can.
>
> I'd be interested if you can get this to work.
>
> BTW, xdg-open does exist on Solaris 11 (OpenSolaris), but this code
> needs removing I feel.
>
> Dave
>

I was ssh ing in.

sage: notebook(address='', secure=False)

then opening the browser at http://IP_ADDRESS_OF_SERVER_RUNNING_SAGE:8000

did work

Will try from locally from the machine tomorrow


Bill





From: David Kirkby on
On Feb 24, 2:18 am, bill <billg...(a)nyc.rr.com> wrote:
> On 02/23/10 10:29 AM, David Kirkby wrote:

> > sage: notebook(address='', secure=False)
>
> > then opening the browser athttp://IP_ADDRESS_OF_SERVER_RUNNING_SAGE:8000
>
> > not to localhost. I think that message to go to the local host is
> > confusing, and hope to get that changed.
>
> > Be aware, if port 8000 is open to the world, then anyone can connect
> > to the server, which is not a good idea.
>
> > It is possible to restrict who can access the server via IP address.
> > By default, only the local host can connect. With the above syntax,
> > anyone can.
>
> > I'd be interested if you can get this to work.
>
> > BTW, xdg-open does exist on Solaris 11 (OpenSolaris), but this code
> > needs removing I feel.
>
> > Dave
>
> I was ssh ing  in.
>
> sage: notebook(address='', secure=False)
>
>   then opening the browser athttp://IP_ADDRESS_OF_SERVER_RUNNING_SAGE:8000
>
> did work
>
> Will try from locally from the machine tomorrow
>
> Bill


Thank you for that Bill. I think the output is quite confusing, as it
tells someone to look at the localhost, when often they are not on the
local host.

The notebook() appearing to hang is quite normal. Essentially the
input from Sage then comes from the web browser, not the command line.


Anyone keen to compile from source code? Be warned, it takes about a
day on Blade 1000 running at 900 MHz. The source code is here (It
consists of many compressed packages, so it is just a tar file, and
not compressed again.

http://boxen.math.washington.edu/sage/solaris/sage-4.3.0.1.tar

The binaries are below with two different compression programs.
Assuming you have p7zip on your machine (standard on later Solaris
releases), then the former binary will save you around 200 MB of
download (300 MB against 500 MB)

http://boxen.math.washington.edu/sage/solaris/sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v.tar.7z
http://boxen.math.washington.edu/sage/solaris/sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v.tar.gz

Dave