#164 configure --prefix for LaTeX files

Default
closed
nobody
None
5
2016-02-24
2014-01-09
g-andr
No

Hello,

Using the current SVN head (rev 5578):

./configure --prefix=/data/src/asymptote.v/v2.25-svn20140109
......
configure: Using /usr/local/share/texmf/tex/latex/asymptote for LaTeX style file
configure: Using /usr/local/share/texmf/tex/context/third/asymptote for ConTeXT style file

and then "make install" does not work:

...
/usr/bin/install -c -d /usr/local/share/texmf/tex/latex/asymptote
/usr/bin/install: cannot create directory `/usr/local/share/texmf': Permission denied
make: [install-asy] Error 1 (ignored)
...

I suggest that if a --prefix option to configure is used, all installed files should go under the specified directory. Of course integration with LaTeX will be the responsibility of the person installing the package. It will be better than the current situation, when style files are not available after installation anywhere in the tree, and the installation errors are hard to notice as they scroll by.

Regards,
Andrei

Discussion

  • John Bowman

    John Bowman - 2014-04-16

    The situation is more complicated than that: TexLive unfortunately requires that the LaTeX path be autodetected with kpsewhich. If you don't have kpsewhich then it works just as you expected (see configure.ac). You can always use --with-latex= to specify another path.

     
  • John Bowman

    John Bowman - 2014-04-16
    • status: open --> closed
     
  • g-andr

    g-andr - 2014-06-24

    John, thank you for your reply. My system did have kpsewhich
    but I did not know I had to do somethign about it. After doing

    export TEXMFLOCAL=$HOME/texmf
    

    and re-running Asymptote build the LaTeX files were installed in my
    local directory. Does the --with-latex switch do the same?

    It would be nice to check that the LaTeX directory identified by
    configure is writable, and stop with a message suggesting how to fix
    the problem if it is not. Currently there are only "permission
    denied" messages, and even they are hard to see. The results is that
    one can easily end up with a broken installation where Asymptote is
    not usable from LaTeX, without any clues on how to fix that.
    Would it be possible to make this improvement?

    Andrei

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks