Discussion:
[tex-k] Building standalone kpathsea
Norman Gray
2013-04-14 11:25:50 UTC
Permalink
Greetings.

Here (in case it's useful) are some instructions for building a standalone kpathsea library. I don't think many people want to do this, but I do, and I might as well share my how-to (google: come ye and fetch...).

Building from Subversion:

You can check out the entire tree (svn co svn://tug.org/texlive/trunk/Build/source) but that takes a _long_ while. Or you can check out just the required bits:

% svn co svn://tug.org/texlive/trunk/Build/source/m4
% svn export svn://tug.org/texlive/trunk/Build/source/version.ac
% svn co svn://tug.org/texlive/trunk/Build/source/texk/am texk/am
% svn co svn://tug.org/texlive/trunk/Build/source/texk/kpathsea texk/kpathsea
% svn co svn://tug.org/texlive/trunk/Build/source/texk/tests/texmf texk/tests/texmf
% cd texk/kpathsea

Then build:

% autoreconf --install --symlink
% ./configure
% make
% make check
% make install

Alternatively, snarf a copy of the base tree from eg <http://www.tex.ac.uk/tex-archive/graphics/metapost/base.zip>, unpack it, cd to base/source/texk/kpathsea, and build as above.

All the best,

Norman
--
Norman Gray : http://nxg.me.uk
SUPA School of Physics and Astronomy, University of Glasgow, UK
Karl Berry
2013-04-14 21:52:03 UTC
Permalink
Hi Norman,

You can check out the entire tree (svn co
svn://tug.org/texlive/trunk/Build/source) but that takes a _long_
while. Or you can check out just the required bits:

Or you can use rsync to extract whatever pieces are desired:
http://tug.org/texlive/svn/

http://www.tex.ac.uk/tex-archive/graphics/metapost/base.zip

That will get you the latest release (approximately). Quite different
from the current development sources retrieved by svn/rsync. If that's
what's wanted, you might as well get the *-source-* tarball we make as
part of the TL release, instead of MetaPost's version:
http://tug.org/texlive/acquire-tar.html

Thanks,
karl
Norman Gray
2013-04-15 15:53:28 UTC
Permalink
Karl and all, hello.
If that's what's wanted, you might as well get the *-source-* tarball we make as
http://tug.org/texlive/acquire-tar.html
A good point. Just for the archive, therefore, the procedure for building libkpathsea from this source is just to download, for example, <texlive-20120701-source.tar> then

cd texk/kpathsea
./configure
make
make install

Simplicity itself!

Best wishes,

Norman
--
Norman Gray : http://nxg.me.uk
SUPA School of Physics and Astronomy, University of Glasgow, UK
Norman Gray
2013-04-15 20:57:13 UTC
Permalink
Oleg, hello.
http://tug.org/pipermail/tex-k/2010-April/002153.html
http://uucode.com/blog/2010/04/28/running-tex-tools-from-non-standard-locations/
Aha! Thanks for that.

I have in fact been struggling with this very problem. I thought that all I had to do was to to invoke kpse_set_program_name with the path to a program which _does_ live in the 'standard' place (for example /usr/texbin/tex on my platform). That is, I 'lie' to the kpathsea library about where my program actually is. I'm sure that did work in an earlier version of my program, but it doesn't seem to quite work, now, and I've still got to get to the bottom of why not. I'm not quite stuck yet, but I'll bear in mind your trick of setting the environment variables.

Best wishes,

Norman
--
Norman Gray : http://nxg.me.uk
SUPA School of Physics and Astronomy, University of Glasgow, UK
Oleg Parashchenko
2013-04-15 20:47:52 UTC
Permalink
Hello Norman,

On Mon, 15 Apr 2013 16:53:28 +0100
Post by Norman Gray
...
cd texk/kpathsea
./configure
make
make install
Simplicity itself!
However, you might need additional setup:

http://tug.org/pipermail/tex-k/2010-April/002153.html
http://uucode.com/blog/2010/04/28/running-tex-tools-from-non-standard-locations/
Post by Norman Gray
Best wishes,
Norman
--
Norman Gray : http://nxg.me.uk
SUPA School of Physics and Astronomy, University of Glasgow, UK
--
Mit freundlichen Gr??en,

Oleg Parashchenko olpa@ http://uucode.com/
http://uucode.com/blog/ XML, TeX, Python, Mac, Chess
Oleg Parashchenko
2013-04-15 20:47:52 UTC
Permalink
Hello Norman,

On Mon, 15 Apr 2013 16:53:28 +0100
Post by Norman Gray
...
cd texk/kpathsea
./configure
make
make install
Simplicity itself!
However, you might need additional setup:

http://tug.org/pipermail/tex-k/2010-April/002153.html
http://uucode.com/blog/2010/04/28/running-tex-tools-from-non-standard-locations/
Post by Norman Gray
Best wishes,
Norman
--
Norman Gray : http://nxg.me.uk
SUPA School of Physics and Astronomy, University of Glasgow, UK
--
Mit freundlichen Gr??en,

Oleg Parashchenko olpa@ http://uucode.com/
http://uucode.com/blog/ XML, TeX, Python, Mac, Chess
Loading...