mailing-list for TeXmacs Users

Text archives Help


BINGOOOO!!!!! (fwd; TeXmacs on Cygwin)


Chronological Thread 
  • From: Joris van der Hoeven <address@hidden>
  • To: address@hidden
  • Subject: BINGOOOO!!!!! (fwd; TeXmacs on Cygwin)
  • Date: Fri, 22 Mar 2002 00:00:59 +0100 (MET)


Just to let everybody know that TeXmacs now runs on Cygwin
thanks (very, *very* much) to Marciano Siniscalchi.
We will try to support Cygwin by default in one of
the next versions of TeXmacs.

<Joris>


---------- Forwarded message ----------
Date: Thu, 21 Mar 2002 12:59:01 -0500
From: Marciano Siniscalchi <address@hidden>
To: Joris van der Hoeven <address@hidden>
Subject: BINGOOOO!!!!!

IT WORKS!!!!! Sorry for the caps, but I'm really excited!

Here's what happened. Of course, I should have thought about it... the init
file is called Init.scm, *with a capital I*. I suppose you chose this on
purpose, so Guile would not load it on startup; Guile loads ice-9/boot.scm
AND any file called init.scm on its path.

So, under Linux, we're OK---Init.scm and init.scm are NOT the same thing.
But, of course, Windows cannot distinguish between capital and lowercase
letters in file names. So, Guile was attempting to load Init.scm, and of
course failing in the attempt, because it was NOT meant to load the file at
startup!!!

I merely renamed Init.scm to tmInit.scm and adjusted your code accordingly
(in tmserver.gen.cc and dir.gen.cc), and was good to go.

Actually, almost good to go: I tried to use MikTeX (a win32 tex distro),
which involved creating soft links to stuff like kpsewhich etc. in
/usr/bin. Unfortunately the counterparts to mktextfm and mktexpk do not
accept the same parameters. So, I think I'm going to try and install tetex,
which was ported to cygwin. Alternatively, of course, I could modify
TeXmacs so as to invoke the right programs.

BUT, for the time being, let's savor success: TeXmacs launches and runs.
Due to the above problems, font generation fails, and e.g. subscripts use
the default font. However, these issues are easy to track and fix.

Let me briefly summarize the steps I've taken, for future reference.

1. Grab texmacs-1.0 and guile-1.4 sources (both stable).
2. untar'ing guile-1.4 yields an error, because one file is called
and-let*.scm; Win32 rejects it. Thus, one must obtain the file from
somewhere (I found it using Google, but of course one could just copy it
from a Linux installation).
3. Compile guile-1.4. No problems here (that I have noticed so far).
4. Modify texmacs sources as above to change references to Init.scm to
tmInit.scm or something like that.
5. Modify gencc sources so that the default stack size is, say, 8M: add
-Wl,-stack,8388608 to the linker flags (can't remember exactly where---I'll
be more specific later).
6. Build gencc/gendep: the general Makefile somehow does not do this
automatically (I suspect there are file naming issues, but I'm not sure).
Just cd into gencc/src and type make.
7. Finally, make STATIC_TEXMACS.
8. Before running the binary, make sure to set GUILE_LOAD_PATH,
TEXMACS_PATH, TEX_TFM_PATH and TEX_PK_PATH.

I ran the program from the TeXmacs-1.0-src/TeXmacs-1.0/bin directory, i.e.
without installing the program. That, too should be easy to do later.

BTW: there may be a bug in install_tex(), file "dir.gen.cc", lines 497ff:

use_kpsewhich= file_exists ("$PATH", "kpsewhich");
>>> if (use_kpsepath) {
cerr << "TeXmacs] kpsewhich works with your TeX distribution\n";
buffer << "KPSEWHICH= TRUE\n";
}
else {
cerr << "TeXmacs] kpsewhich does not work with your TeX
distribution\n";
buffer << "KPSEWHICH= FALSE\n";
}
I believe the line marked with ">>>" should read
if (use_kpsewhich) {
Under TeTeX, this is not an issue because kpsepath exists; MikTex has
kpsewhich, so it was necessary (I think) to change the line as above.

Ciao,
Marciano.



Marciano Siniscalchi Department of Economics, 309 Fisher Hall
tel: (609) 258-4024 Princeton University, Princeton, NJ 08544-1021
fax: (609) 258-6419 http://www.princeton.edu/~marciano



  • BINGOOOO!!!!! (fwd; TeXmacs on Cygwin), Joris van der Hoeven, 03/22/2002

Archive powered by MHonArc 2.6.19.

Top of page