On 12 June 2012 14:29, Dan Drake <[email protected]> wrote:
> On Tue, 12 Jun 2012 at 09:57AM +0100, John Cremona wrote:
>> You are right: it shows
>>
>> (/usr/share/texmf-texlive/tex/latex/sagetex/sagetex.sty
>>
>> (which I should have noticed yesterday, sorry), despite this:
>>
>> jec%kpsewhich sagetex.sty
>> /home/jec/texmf/tex/generic/sagetex/sagetex.sty
>
> Aha! Once again I am bitten by TeXLive. Putting SageTeX into TeXLive was
> a big mistake.
>
> I am puzzled by kpsewhich returning the newer version, though -- I
> thought the very idea of that program was to return what TeX would find
> when typesetting. But it seems not.
>
>> I could get round this (as I have root access) by killing the old
>> texlive version, but there should be a better way.
>
> Removing the old version is actually a very good solution. If you want
> to be very cautious, just rename
> /usr/share/texmf-texlive/tex/latex/sagetex/sagetex.sty to
> "old-crappy-sagetex.sty" or whatever. You could also update to a newer
> version of TeXLive, but getting rid of the old sagetex.sty solves the
> immediate problem.

The second machine I tried (which I will not have access to until I go
home) had only just been upgraded to ubuntu 12.04, so it is surprising
that it's using an old texlive version.  I'll check.  On the machine I
first tried, and reported on earlier today, it's running Ubuntu
10.04.4 LTS (server) and all the texlive packages listed are dated
2009-*.

Now I have (following your instructions very carefully ;))

jec%ls -l /usr/share/texmf-texlive/tex/latex/sagetex
total 20
-rw-r--r-- 1 root root  5807 Jun 21  2009 old-crappy-sagetex.sty
-rw-r--r-- 1 root root 10487 Jun 12 14:44 sage-5.0-sagetex.sty
lrwxrwxrwx 1 root root    20 Jun 12 14:44 sagetex.sty -> sage-5.0-sagetex.sty

and all is well!

John

>
> Dan
>
> --
> ---  Dan Drake
> -----  http://mathsci.kaist.ac.kr/~drake
> -------

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to