chu-ching huang | 6 Apr 2010 12:27
Picon

[TeXmacs] Bug in TeXmacs-1.0.7.4?

Hello all,

As using [Insert]-> [Image] -> Plot -> [...] to generate image, 
TeXmacs will terminate with "Segmentation fault" message in my box.

Here my system info:

Linux slax 2.6.27.8
guile-1.8.7
clisp-2.47
maxima-5.20.1
gnuplot-4.2.1
gcc-4.2.4

TeXmacs-1.0.7.14-src (w/o qt)

cch

Michael Lachmann | 6 Apr 2010 16:50
Picon

[TeXmacs] problem with maxima 5.19.2

Hi,

On my mac I have maxima 5.19.2 installed. When trying to start maxima  
inside TeXmacs, the process gets stuck.
It seems that the parameters that TeXmacs supplies the tm_maxima  
script are "5.6 gcl", even though the version is 5.19.2
I edited the tm_maxima script to ignore the "5.6" parameter, and  
instead execute the default, which is:
  exec maxima -u $1 -l $2 -p "$TEXMACS_MAXIMA_PATH/texmacs- 
maxima-5.11.0.lisp"

This seems to work well for me, though it is obviously a hack.

Michael

Michael Lachmann | 6 Apr 2010 16:56
Picon

Re: [TeXmacs] problem with maxima 5.19.2

Sorry, I should have done some more testing.

maxima seems to work well, but any of the "Maxima" menu items give the  
error:
plugin 'scheme' not defined

in the status line.

On 6 Apr 2010, at 16:50, Michael Lachmann wrote:

> Hi,
>
> On my mac I have maxima 5.19.2 installed. When trying to start  
> maxima inside TeXmacs, the process gets stuck.
> It seems that the parameters that TeXmacs supplies the tm_maxima  
> script are "5.6 gcl", even though the version is 5.19.2
> I edited the tm_maxima script to ignore the "5.6" parameter, and  
> instead execute the default, which is:
> exec maxima -u $1 -l $2 -p "$TEXMACS_MAXIMA_PATH/texmacs- 
> maxima-5.11.0.lisp"
>
> This seems to work well for me, though it is obviously a hack.
>
> Michael
>

Andrey G. Grozin | 10 Apr 2010 13:15
Picon
Favicon

Re: [TeXmacs] problem with maxima 5.19.2

On Tue, 6 Apr 2010, Michael Lachmann wrote:
> It seems that the parameters that TeXmacs supplies the tm_maxima script are 
> "5.6 gcl", even though the version is 5.19.2
What does the script maxima_detect print? It should produce the list of 
versions of maxima (and corresponding lisp implementations) found on your 
system. If it does not, I'd want to understand why.

By the way, what version of TeXmacs do you use? The latest change in 
maxima_detect was a fix for some mac-specific weirdness in sed (the 
native mac sed is incompatible with the GNU one). If your TeXmacs is 
really old, its maxima_detect does not work on mac (but this was fixed 
quite some time ago).

Andrey

Michael Lachmann | 12 Apr 2010 19:34
Picon

Re: [TeXmacs] problem with maxima 5.19.2

On 10 Apr 2010, at 13:15, Andrey G. Grozin wrote:

> On Tue, 6 Apr 2010, Michael Lachmann wrote:
>> It seems that the parameters that TeXmacs supplies the tm_maxima  
>> script are "5.6 gcl", even though the version is 5.19.2
> What does the script maxima_detect print? It should produce the list  
> of versions of maxima (and corresponding lisp implementations) found  
> on your system. If it does not, I'd want to understand why.

It prints 5.6 gcl

The problem is, I think, with the grep line:
---
     if grep -F list-avail $MAXIMA >/dev/null
     then
       # 5.9.0 or later
---
My maxima script does not contain "list-avail", and yet it accepts the  
--list-avail option
--
 > maxima --list-avail
Available versions:
version 5.19.2, lisp sbcl
--
I thought I have the latest texmacs installed. 1.0.7.2.

Below is my /usr/local/bin/maxima script.

Michael

(Continue reading)

Andrey G. Grozin | 12 Apr 2010 21:05
Picon
Favicon

Re: [TeXmacs] problem with maxima 5.19.2

On Mon, 12 Apr 2010, Michael Lachmann wrote:
> The problem is, I think, with the grep line:
> ---
>   if grep -F list-avail $MAXIMA >/dev/null
>   then
>     # 5.9.0 or later
> ---
> My maxima script does not contain "list-avail", and yet it accepts the 
> --list-avail option

This is really disturbing. Your maxima script looks quite different from 
what I have on Linux. It contains, near the end, after a long list of 
possible lisps with the corresponding "exec ..." lines, the following:

else
     echo "$0: lisp=\"$MAXIMA_LISP\" not known. Use --list-avail to see possible options." >&2
     exit 1

Your version contains just one possibility, "exec sbcl ...", and no 
"else".

Is this maxima script the standard one on macs? If so, maxima_detect 
should be re-written again, to take into account such possibility.

The history is following: in maxima-5.9.0 the option --list-avail 
appeared; it was implemented directly in the shell script, and, naturally, 
the string "list-avail" was present in it. Later, the functionality was 
moved to the lisp layer, but the string was still present in the script 
"maxima", so, the test in maxima_detect continued to work. If there is 
some widely used maxima package for mac which installs the script without 
(Continue reading)

Michael Lachmann | 12 Apr 2010 23:28
Picon

Re: [TeXmacs] problem with maxima 5.19.2


On 12 Apr 2010, at 21:05, Andrey G. Grozin wrote:
> On Mon, 12 Apr 2010, Michael Lachmann wrote:
>> The problem is, I think, with the grep line:
>> ---
>>  if grep -F list-avail $MAXIMA >/dev/null
>>  then
>>    # 5.9.0 or later
>> ---
>> My maxima script does not contain "list-avail", and yet it accepts  
>> the --list-avail option
>
> This is really disturbing. Your maxima script looks quite different  
> from what I have on Linux. It contains, near the end, after a long  
> list of possible lisps with the corresponding "exec ..." lines, the  
> following:
>
> else
>    echo "$0: lisp=\"$MAXIMA_LISP\" not known. Use --list-avail to  
> see possible options." >&2
>    exit 1
>
> Your version contains just one possibility, "exec sbcl ...", and no  
> "else".
>
> Is this maxima script the standard one on macs? If so, maxima_detect  
> should be re-written again, to take into account such possibility.

I downloaded mine from
http://sourceforge.net/projects/maxima/files/
(Continue reading)

richardetdave | 14 Apr 2010 19:52
Picon
Favicon

[TeXmacs] Problem with my new installation

Hello,
 
is it the good address to ask a question about a problem of installation of TeXmacs (with cygwin) ?
 
 
 
Here is my problem (with all details)
 
I have just installed cygwin. And it seems to work.
Then i have loaded TeXmacs-1.0.7-src from the GNU Website. I saved it in
  cygdrive/c/tmp/
 
The operation
 
 tar -zxvf TeXmacs-1.0;7-src.tar.gz
 
worked : it made a lot of files (flooding the cygwin window).
 
Then i type
 
cd TeXmacs-1.0.7-src
 
and it works : we are now in cygdrive/c/tmp/TeXmacs-1.0.7-src,   and i type
 
./configure
 
and here is the result :
<<
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in 'cygdrive/c/tmp/TeXmacs-1.0.7-src' :
configure: error: no acceptable C compiler found in $PATH
See 'config.log' for more details.
>>
 
I dont even know what $PATH means !
 
Thank you for helping !
 
Sincerly yours,
 
Richard
 
Khadga Karki | 14 Apr 2010 18:56
Picon
Favicon

Re: [TeXmacs] Problem with my new installation

richardetdave <at> aol.com wrote:
> Hello,
>  
> is it the good address to ask a question about a problem of 
> installation of TeXmacs (with cygwin) ?
>  
>  
>  
> Here is my problem (with all details)
>  
> I have just installed cygwin. And it seems to work.
> Then i have loaded TeXmacs-1.0.7-src from the GNU Website. I saved it in
>   cygdrive/c/tmp/
>  
> The operation
>  
>  tar -zxvf TeXmacs-1.0;7-src.tar.gz
>  
> worked : it made a lot of files (flooding the cygwin window).
>  
> Then i type
>  
> cd TeXmacs-1.0.7-src
>  
> and it works : we are now in cygdrive/c/tmp/TeXmacs-1.0.7-src,   and i 
> type
>  
> ./configure
>  
> and here is the result :
> <<
> checking build system type... i686-pc-cygwin
> checking host system type... i686-pc-cygwin
> checking for gcc... no
> checking for cc... no
> checking for cl.exe... no
> configure: error: in 'cygdrive/c/tmp/TeXmacs-1.0.7-src' :
> configure: error: no acceptable C compiler found in $PATH
> See 'config.log' for more details.
> >>
>  
> I dont even know what $PATH means !
>  
> Thank you for helping !
>  
> Sincerly yours,
>  
> Richard
>  
Try installing gcc first.
Attachment (kkarki.vcf): text/x-vcard, 206 bytes
Alfe | 14 Apr 2010 23:00
Picon
Favicon

Re: [TeXmacs] Problem with my new installation

Hi Richard,

TeXmacs is made for Unix-like systems; therefore, to get it running on Windows systems, we have to install
cygwin which is a kind of a Unix-Emulation for Windows.  This is the reason why the error messages you get are
not typical Windows-style but rather Unix style.  In detail:

> richardetdave <at> aol.com wrote:
>> I have just installed cygwin. And it seems to work.
>> Then i have loaded TeXmacs-1.0.7-src from the GNU Website. I saved it in
>>   cygdrive/c/tmp/
>>  
>> The operation
>>  
>>  tar -zxvf TeXmacs-1.0;7-src.tar.gz
>>  
>> worked : it made a lot of files (flooding the cygwin window).
>>  
>> Then i type
>>  
>> cd TeXmacs-1.0.7-src
>>  
>> and it works : we are now in cygdrive/c/tmp/TeXmacs-1.0.7-src,   and i 
>> type
>>  
>> ./configure

./configure tries to prepare the build scripts to the helpers you have installed.  Several helpers are
needed to build TeXmacs, most prominently a compiler, but it does not have to be one specific; it can be one
of several.  The ./configure tries to find out which helpers are installed and prepares the build scripts
so that they will deal with the installed helpers.

>> and here is the result :
>> <<
>> checking build system type... i686-pc-cygwin
>> checking host system type... i686-pc-cygwin

Just informational output:  Your system is a "Unix" of type i686-pc-cygwin ;-)

>> checking for gcc... no
>> checking for cc... no
>> checking for cl.exe... no
>> configure: error: in 'cygdrive/c/tmp/TeXmacs-1.0.7-src' :
>> configure: error: no acceptable C compiler found in $PATH

No such helper found (in this case the C compiler):  This is a reason for ./configure to abort.  The mentioned
$PATH is what Windows users call %PATH%; this is a list of directories in which executables are searched
for by the system.  In the cygwin window you can type 'echo $PATH' to find out what yours is set to (but this
won't help you).

But anyway, in none of these directories is a compiler ./configure can handle, so as
Khadga Karki wrote:
> Try installing gcc first.

Do that.  Try ./configure again then.  See what helper is missing next.  Come back here if you have no clue ;-) 
Good luck.

Alfe


Gmane