Skip to Content.
Sympa Menu

texmacs-users - Re: How to run on CygWin

Subject: mailing-list for TeXmacs Users

List archive

Re: How to run on CygWin


Chronological Thread 
  • From: Joris van der Hoeven <address@hidden>
  • To: address@hidden
  • Subject: Re: How to run on CygWin
  • Date: Mon, 21 Oct 2002 20:42:51 +0200 (MET DST)


> > Thanks a lot.

Yes, thanks a lot, also from me.

> > > 4) Adapt the TeXmacs installation files:
> > >
> > > Find the file named 'makefile' in the subdirectory 'src' of the
> > > TeXmacs source directory created in step 2. (Probable location:
> > > 'C:\cygwin\usr\src\TexMacs-1.0.0.18-src\src\makefile')
> > >
> > > locate the line:
> > > link_options:=-L $(tmsrc)/lib -lm $(LDBPATH) $(LDBXWINDOW)...
> > > $(LDBGUILE) $(LDBDL)
> > > change it to:
> > > link_options:=-L $(tmsrc)/lib -lm $(LDBPATH) $(LDBXWINDOW)...
> > > $(LDBGUILE) -lltdl $(LDBDL)
> > > (Note: these are one line each, and the three dots arn't there)
> [...]
>
> That modification is only required with some buggy versions of guile
> where libltdl is not linked with guile (though it is required) but the
> command 'guile-config link' command does not give the '-lltdl' flag.

So with guile 1.3.4 (the default we recommend for TeXmacs),
everything is fine?

> Joris: could you insert that information prominently in the
> texmacs.org website

Yes. Is there someone who can create an appropriate webpage.
Below is the Html translation of the original, but it should become
more self-contained (like the other installation pages) and
simplified.

----------------
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>

<HEAD>
<TITLE>Installation of GNU TeXmacs on Cygwin (FSF GNU project)</TITLE>
</HEAD>

<BODY BGCOLOR="#FFFFFF">

<BR><BR>

<P ALIGN=CENTER><B><FONT COLOR="#000050" SIZE=+4>
Installation of GNU TeXmacs on Cygwin
</FONT></B><BR></P>

<HR>

<BR>


<H3><b>1. Install Cygwin with <tt>setup.exe</tt></b></H3>

<p>
Appart from the default packages, make sure to install the following
extra packages. (They will install more packages that they need) I
haven't managed to get texmacs working with the Cygwin package of
Guile so i compiled guile my self.
</p>

<p>
Required extra packages:
<pre>
gcc
make
tetex
tetex-devel
texmf
XFree86-base
XFree86-prog
</pre>
</p>

<p>
Sugested extra packages: (install these if you have enough space)
<pre>
ghostscript-X11 required for print preview
openbox OR WindowMaker frendlier window manager
</pre>
</P>


<H3><b>2. Get the Guile and TeXmacs source</b></H3>

<p>
Place them in the <tt>/usr/src</tt> directory. This will be the windows
directory <tt>C:\cygwin\usr\src</tt> if you didn't change the default
install directory.
</p>

<p>
Unpack them there:
Start Cygwin and give these commands:
<pre>
cd /usr/src
tar -zxf &lt;name&gt;
</pre>
Where &lt;name&gt; is the name of the file.
</p>

<p>
Do this for both files. This will create two source directorys one for
TeXmacs and one for for Guile. I used guile-1.4.1, but other versions
might work too.
</p>


<H3><b>3. Compile Guile</b></H3>

<p>
Change to the guile source directory created in step 2
(using the <tt>cd</tt> command). Give these commands:
<pre>
./configure --disable-shared
make
make install
</pre>
</p>


<H3><b>4. Adapt the TeXmacs installation files</b></H3>

<p>
Find the file named <tt>makefile</tt> in the subdirectory
<tt>src</tt> of the TeXmacs source directory created in step 2
(probable location:
<tt>C:\cygwin\usr\src\TexMacs-1.0.0.19-src\src\makefile</tt>).
</p>

<p>
Locate the line:
<pre>
link_options:=-L $(tmsrc)/lib -lm $(LDBPATH) $(LDBXWINDOW)...
$(LDBGUILE) $(LDBDL)
</pre>
and change it to:
<pre>
link_options:=-L $(tmsrc)/lib -lm $(LDBPATH) $(LDBXWINDOW)...
$(LDBGUILE) -lltdl $(LDBDL)
</pre>
(Note: these are one line each, and the three dots aren't there).
</p>


<H3><b>5. Compile TeXmacs</b></H3>

<p>
In the Cygwin console change to the TeXmacs source directory created in
step 2. In the Cygwin window type these commands:
<pre>
./configure
make STATIC_TEXMACS
make install
</pre>
</p>


<H3><b>6. Run TeXmacs</b></H3>

<p>
First an environment variable need to be set. Locate the path that
guile got installed to. For me it's
<tt>/usr/local/share/guile/1.4.1</tt>
but that will change with the guile version.
Add the line (modified acording to your guile path):
<pre>
export GUILE_LOAD_PATH=/usr/local/share/guile/1.4.1
</pre>
to the file <tt>/etc/profile</tt> (<tt>C:\cygwin\etc\profile</tt>).
</p>

<p>
In the Cygwin window type:
<pre>
startx
</pre>
Start TeXmacs by typing
<pre>
texmacs
</pre>
in any of the windows appearing.
</p>


<H3><b>7. Finishing touches</b></H3>

<p>
Unless you have a a US keyboard you will nead a keyboard mapping file
for your keyboard layout. I found the one I use (swedish/finnish) on
the page <A
HREF="http://www-user.tu-chemnitz.de/~goal/";><tt>http://www-user.tu-chemnitz.de/~goal/</tt></A>.
</p>

<p>
The file is a text-file that should be named <tt>.xmodmap</tt>,
rename it to that if it's called something else
(This won't work in Windows, use the Cygwin command <tt>mv</tt> instead,
like <tt>mv &lt;old_name&gt; .xmodmap</tt>. The file should be placed in
your Cygwin home directory, located under <tt>/usr/home</tt>
(<tt>C:\cygwin\usr\home</tt>).
</p>

<HR>
<BR>

<P>
Copyright (C) 1999, 2000 by Joris van der Hoeven.
</P>

<P>
This webpage is part of
<A HREF="http://www.texmacs.org"; TARGET="_top">GNU TeXmacs</A>
and the larger <A HREF="http://www.gnu.org";>GNU project</A>.
Verbatim copying and distribution of it is permitted in any medium,
provided this notice is preserved. For more information or questions,
please contact
<A HREF="http://www.texmacs.org/Web/Mail.html";>Joris van der Hoeven</A>.
</P>

<P>
<A href="http://www.fsf.org/fsf/fsf.html";>Free Software Foundation</A>,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA
</P>

</BODY>
</HTML>





Archive powered by MHonArc 2.6.19.

Top of Page