Skip to content →

Tag: PPC

sage

SAGE
(which stands for ‘Software for Algebra and Geometry
Experimentation’) includes and offers an interface to GAP, Singular,
Maxima and even PARI as
well as an interface to other packages such as Maple, Magma and
Mathematica (see here
for a full list of its features). More importantly, Sage offers a binary
for both PPC and Intel-Macs! I did check this out and it runs without
problems, in fact, after this initial check I installed from the sources
on my MacBook Pro and after one hour of compiling I did have working
(though not full) versions of GAP, Maxima and Singular. At first I
was a bit worried that only small subsets of the three systems were
installed, but it is quite easy to extend your Sage with additional
packages. From the Unix-prompt do a sage -optional
and you will get a list of all (additional) packages you have already
installed and those available for installation. SAGE is pretty well
documented with tutorials and reference manual to be found here a>. Even if you do not want to learn (yet) the Sage-commands but just
want to continue using the programs under its hood, this is pretty easy.
For example, to get to Maxima, you only have to type
!maxima from the sage-prompt to open up a maxima-session
(and similarly for Gap and Singular).

Bill
Schelter’s Affine-package is not included, but you can load and install
it from the maxima-prompt by load("affine.lisp"); but some
commands such as ‘fast_central_elements’ do not seem to
work as expected (or maybe I forgot the drill over the years, I’ll try
it out again).

Leave a Comment

hold on to those PPC macs

On my
return from O a brand new 15inch MacBook Pro lie waiting in
my office. By that evening I had wrecked the system to the extend that I
could no longer login and had to reinstall from scratch… I was
about to trow it away but tried it out for a few more days and
eventually began to understand it a bit. In short : the new Intel Macs
promise to be really good hardware, unfortunately some essential
software lags behind, so if you want a stress-free Mac-life… hold
on to your PPC mac a few months longer. If you are impatient and want to
learn some of the pitfalls, read on… I’m ashamed to admit this
but the first thing I did on my new machine was to create a WindowsXP
partition… BootCamp does what it
promises to do and is extremely easy to use once you can start it. The
installation guide does tell that you jave to update your systems
software and firmware, but that’s what you do anyway after a new
install, right? Wrong! You update the software but _not_ the
firmware and it took me some time to come to this simple conclusion. How
to check whether your firmware is up to date? Go under the apple to
‘About this Mac’, click on ‘More Info’ and look at your
‘ Boot ROM Version:’ if it says MBP11.0055.B03 you’re ok, if not
you have to install the newest firmware which is a slightly terrifying experience
with soundsignals included, but works fine. Once this is done, you can
start BootCamp and have a Windows partition in no time. At a certain
moment you have to decide on possible partition-formats for the Windows
part, I choose the ‘Fat’ option to be able to swap files across
the partitions. Next, what does a mathematician wants from a
computer? To run LaTeX! I’ve installed LaTeX on more Macs than I
remember so I continued on automatic pilot, getting Gerben Wierda’s i-Installer, startd it up and
… my machine froze! Nothing, not even a ‘Force Quit’, was
possible any more. Today, there is a clear warning message as the
i-Installer page (i don’t recall seeing it there last week, but then it
is a recent problem. Things broke down on May 11th when I was still in
O)

WARNING: i-Installer on Mac OS X 10.4.6 may trigger
the Mac OS X 10.4.6 bug that partially freezes your system. May 2006:
i-Installer did work perfectly on Mac OS X 10.4.3, the version of Tiger
that was shipped with the Developer Transition Kit. When the first intel
machines were sold by Apple, these contained 10.4.4 and on that system,
i-Installer experiences troubles because of problems deep inside Apple’s
Frameworks. The only way I could solve this was to make i-Installer a
PowerPC-only application again and ask for Apple’s help to determine
where the problem was. So far, this has been s slow process without any
noticeable results. The PowerPC-only version worked fine until Apple
released 10.4.6 and especially the latest upgrades (Security Upgrade
2006-003 and maybe QuickTime). As I am writing this (May 21) a
completely updated Mac OS X 10.4.6 on intel will partially freeze in
various circumstances, triggered by various applications (MatLab,
i-Installer, etc.). Sadly, the just released MacBook (successor of the
iBook) is shipping with this broken version of the OS. Hence, there is
now no i-Installer that reliably works on intel machines with recent OS
versions and even worse, i-Installer may trigger a nasty bug in recent
Mac OS X intel versions.

Scary isn’t it? You have a
brand new expensive machine but cannot typeset a single paper…
Fortunately, the TeXShop
page
not only mentions the problem, but also a workaround

On May 11, 2006, Apple provided security updates for Mac OS
X. These updates broke i-Installer on Intel (it continues to work on
PowerPC). If you have an Intel Mac and you have installed this update,
you must use the MacTeX install package until this problem is fixed.
Once TeX is installed, it works fine.

The first
assertion is true : installing the MacTeX package gives you a working
TeX-installation, with TeXShop, Excalibur, BibTeX and i-Installer coming
for free. But don’t think the i-Installer problem has been solved, I
tried it out and voila another ice-age… So far so good but
sometimes we like to compute things, don’t we? Like some commutative
algebra or algebraic geometry things via Singular? I remembered to
install this via the Fink
project
but already their news-items are not very promissing

A preliminary version of Fink for the Intel architecture is
now ready. No binary packages are available, and things are still rough
around the edges, but it should be usable if you are patient! To
install it, you need to install the XCode compiler and SDK packages (at
minimum). Then you need to get the file fink-0.24.14.tar.gz from the
Sourceforge file release page for Fink, expand the file, and run the
command ./bootstrap.sh . At the end of the bootstrap process, run fink
selfupdate and you’ll get the currently available packages. At last
check, there were about 1750 packages in the “stable” tree,
but about 150 of those did not build. When things are truly stable,
another annoucement will be made here.

The normal
FinkCommander didn’t work either but then I found a version which does
at Charles K. C. Lo’s
Homepage
. I verified it by having the fink-TeTeX package installed
(which works!) and then I wanted to do a Singular-install… Things
seemed to start off well (once you change the freferences to install
also unstable packages) but then the installation procedure halted with
the message

Failed: phase compiling: singular-3.0.1-1013
failed Before reporting any errors, please run “fink
selfupdate” and try again. If you continue to have issues, please
check to see if the FAQ on fink’s website solves the problem. If not,
ask on the fink-users or fink-beginners mailing lists. As a last
resort, you can try e-mailing the maintainer directly: Michael
Brickenstein bricken at mathematik.uni-kl.de Note that many
fink package maintainers do not (yet) have access to OS X on Intel
hardware, so you may have better luck on the mailing lists.

So, maybe I should just donate my MacBook Pro to the
Fink-project? A similar problem with installing Maxima… I didn’t
even try out GAP via Fink but went for a niversal Unix-installation for
GAP and this WORKED! even with all packages and tables and the whole I
dont know what. Thank you, GAPpers, perhaps all algebraists on Intel
Macs should shift to GroupTheory? But hey! My Intel-Mac does have a
WindowsXP partition… So, I did a binary Windows install of
Singular and Maxima and both work without problems. Still, it is a
strange situation. Fortunately, I did resolve these issues but that will
have to wait until tomorrow…

Leave a Comment

some smaller steps

It
always amazes me how much time I have to waste in trying to get
tech-stuff (such as this weblog) working the way I want. You will barely
notice it but again I spend too much time delving in PHP-scripts,
sometimes with minor success, most of the time almost wrecking this
weblog…

An example : it took me a day to figure out why
this page said there was just 1 visitor online whereas log files showed
otherwise. The PHP-script I used checked this by looking at the
IP-address via _REMOTE_ADDR_ which is perfectly OK on an ordinary
Mac OS 10.3 machine, but _not_ on an OS X-Server! For some reason
it gives as the REMOTE_ADDR just the IP address of the Server (that
is, lievenlb.local in this case) so whoever came by this page got
tagged as 143.129.75.209 and so the script thought there was just one
person around… The trivial way around it is changing every
occurence of REMOTE_ADDR by _HTTP_PC_REMOTE_ADDR_.
Easy enough but it took me a while to figure it out.

Another
example : over the week-end this weblog got a stalker! There were over
100 hits from 38.113.198.9, so whoever that is really liked this site
but didn't have time to read a thing… Again, the standard
solution is to ban the IP-address and most weblog-packages have such a
tool on their admin-page. But whathever I tried and Googled WordPress doesn't seem to have it
on board. There were a few hacks and plugins around claiming to do
something about it but none of them worked! So, I tried more drastic
actions such as editing .htaccess files which I thought would solve
everything (again, no problem under 10.3 but _not_ under
10.3-Server!). Once more, a couple of hours lost trying to figure out
how to get the firewall of a Mac-Server do what I needed. The upshot is
that I know now all dark secrets of the _ipfw_ command, so no
more stalking around this site…

In the process of
grounding my stalker, I decided that I needed better site-stats than my
homemade log-file provided. Fortunetely, this time I picked a package
that worked without too much hassle (one more time I had to make the
REMOTE_ADDR substitution but apart from that all went well). You will
see not too much of the power of this stats-package on the page (apart
from the global counter), I feel that such things are best forgotten
until something strange occurs (like stalkers, spammers and other
weirdos). A nice side-effect though was that for the first time I had a
look at _referring pages_, that is the URL leading to this weblog.
Lots of Google searches (some strange ones) but today there were also a
number of referrals from a Chinese blog. I checked it out and it turned
out to be the brand new Math is Math! Life is Life! weblog…

Another time
consuming thing was getting the BBC-news RSS feeds working in the
sidebar, so that you still get _some_ feel for reality while
being trapped here. I am not yet satisfied with the layout under
Explorer, but then everyone should move on to Safari (so I did give up
trying to work out the PHP-script).

But most time I wasted on
something that so far has left no trace whatsoever here. A plugin that
allows specific posts to be read only by registered users (of a certain
'level', that is WordPress can give users a level from 0 to 10
with specific degrees of freedom). But clearly at the same time I wanted
the rest of the world to have at least some indication of what they were
missing (such as a title with a nice padlock next to it) but so far I
didn't get it working. The only trace of a closed posting would be
in the sidebar-listing of the ten last posts but gives an error message
when an unauthorized user clicks on it. So, still a lot of
headache-sensitive work left to do, but it is about time to get back to
mathematics…

update (febr. 2007) : the
padlock-idea is abandoned.

Leave a Comment