On Fri, Dec 14, 2018 at 11:29 AM E. Madison Bray <erik.m.b...@gmail.com> wrote:
>
> On Fri, Dec 14, 2018 at 4:04 AM Amir Zia <knowledge2...@hotmail.com> wrote:
> >
> >
> >
> > On Thursday, December 13, 2018 at 9:05:51 PM UTC-5, Amir Zia wrote:
> >>
> >>
> >>
> >> On Thursday, December 13, 2018 at 8:38:45 PM UTC-5, Samuel Lelievre wrote:
> >>>
> >>> Fri 2018-12-14 01:53 UTC+1, Amir Zia:
> >>> >
> >>> > Ubuntu 18.04
> >>> > Sagemath 8.1-7
> >>> > Texmacs 1.99.8
> >>> > the plugin is downloaded from this page around 3 hours ago:
> >>> > https://wiki.sagemath.org/TeXmacs?action=AttachFile&do=view&target=texmacs-sage.tar.gz
> >>>
> >>> Oh, that wiki page is very out of date (we should add a
> >>> warning there about that). Get the up-to-date plugin from
> >>>
> >>>     https://github.com/texmacs/SageMath.tm
> >>
> >>
> >>
> >>
> >>
> >> I downloaded the bin & doc & progs then put them in a folder called sage 
> >> and then copies the folder into $HOME/.TeXmacs/plugins/ ... I did this 
> >> because git would give me errors...
> >>
> >> I still get the second error mentioned in the first post....
> >>
> >> Did I install it properly ?
> >
> >
> >
> >
> > OK I found a solution.... Here is what I did to get it to work, Hopefully 
> > others with the same problem can be helped:
> >
> > (1) Install sagemath.
> >
> > (2) Install Texmacs.
> >
> > (3) Find where sage is : "which sage"  usually it is at /usr/bin/sage
> >
> > (4) sudo ln -s /usr/bin/sage /usr/local/bin/
> >
> > (5) sudo -H nautilus
> >
> > (6) go to /usr/share/sagemath/bin/ and copy the content into /usr/local/bin/
>
> Just for the record, in case anyone else finds this, that all sounds
> like a bad idea to be honest.  Without being able to see your system
> or know exactly what you did, it's hard to say what the "right"
> solution would be, but there's no *good* reason to be copying files
> around your filesystem like this without really knowing why.
>
> This sounds like more of a configuration issue, and not "some file
> needs to be some specific place".
>
> (As an aside, you don't need to run nautilus just to copy files; you
> can do this from the command-line shell with the `cp -R` command :)
>
> I don't know anything about texmacs so I regret that I can't offer a
> "better" solution.  All I'm saying is please don't do this, as it's
> just likely to break more things for you later.

FWIW, I made an Ubuntu 18.04 container just to see what's going on
with the sagemath 8.1-7 package on there.  I can't install Texmacs
since I don't have an X server.  But it occurs to me from your
original message that you were getting some error from some
/usr/local/bin/sage, and I think that's your problem in the first
place.

The directory /usr/local/ is reserved for software that has been
manually installed system-wide, without management from your system's
package manager.  The Ubuntu package for sagemath 8.1 doesn't put
anything there (nor should it).  The only way you would have some
/usr/local/bin/sage is if you or someone else put it there yourself at
some point.  And it's broken because it's looking for a
/usr/local/bin/sage-env (the sage launcher script typically looks for
this file relative to its own location) which doesn't exist.

So the problem here--however it occurred--is that you should not have
had some /usr/local/bin/sage in the first place.  Rather than copying
random files into /usr/local/ to try to force it to work, you should
just delete that /usr/local/bin/sage if you're not sure why it was
there in the first place, along with anything else you manually copied
to /usr/local.

Then follow the directions as normal (from
https://github.com/texmacs/SageMath.tm) to install the plugin for
Texmacs.

You also mentioned something about "I did this because git would give
me errors...".   What errors were you getting from git?  Please be
specific :)

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to