Discussion:
MikTeX and perltex
(too old to reply)
Andrei Alexandrescu (See Website for Email)
2004-08-06 09:42:11 UTC
Permalink
I'm trying to install perltex under MikTeX and I don't know what's going on.
The perl file won't compile!

Here's the test file:

\documentclass{article}

\usepackage{perlmacros}
%\usepackage{inferrules}

\perlnewcommand\a[1]{b}

\begin{document}

\end{document}


and here's the output:

This is e-TeX, Version 3.141592-2.1 (MiKTeX 2.4)
entering extended mode
LaTeX2e <2003/12/01>
Babel <v3.8a> and hyphenation patterns for english, french, german, ngerman,
du
mylang, nohyphenation, loaded.
(test.tex (C:\texmf\tex\latex\base\article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(C:\texmf\tex\latex\base\size10.clo))
(C:\texmf\tex\latex\perltex\perlmacros.sty)Use of uninitialized value in
substit
ution (s///) at C:\texmf\tex\latex\perltex\perltex.pl line 127.
Use of uninitialized value in substitution (s///) at
C:\texmf\tex\latex\perltex\
perltex.pl line 128.
Use of uninitialized value in concatenation (.) or string at
C:\texmf\tex\latex\
perltex\perltex.pl line 129.
(test.frpl

! Package perlmacros Error: Undefined subroutine &main::latex_ called .

See the perlmacros package documentation for explanation.
Type H <return> for immediate help.
...

l.3 out in your document and re-run perltex.}
\endinput
? q
OK, entering \batchmode


---------------------------
Any help would be helpful!


Andrei
Hans Fredrik Nordhaug
2004-08-06 11:10:11 UTC
Permalink
Post by Andrei Alexandrescu (See Website for Email)
I'm trying to install perltex under MikTeX and I don't know what's going on.
The perl file won't compile!
\documentclass{article}
\usepackage{perlmacros}
\perlnewcommand\a[1]{b}
\begin{document}
\end{document}
[cut]
Post by Andrei Alexandrescu (See Website for Email)
Use of uninitialized value in substitution (s///) at
C:\texmf\tex\latex\perltex\perltex.pl line 127.
Use of uninitialized value in substitution (s///) at
C:\texmf\tex\latex\perltex\perltex.pl line 128.
Use of uninitialized value in concatenation (.) or string at
C:\texmf\tex\latex\perltex\perltex.pl line 129.
[cut]

The big question here is what version of perl you are using.
I'm using ActiveState Perl with MiKTeX and perltex works like a charm.

Regards,
Hans
Scott Pakin
2004-08-06 16:18:30 UTC
Permalink
Post by Andrei Alexandrescu (See Website for Email)
I'm trying to install perltex under MikTeX and I don't know what's going on.
The perl file won't compile!
Do other test files give the same error message? For example, does the
following complain?

\documentclass{article}
\usepackage{perlmacros}

\begin{document}

\perlnewcommand{\perlversion}{$]}
You are running Perl version \perlversion.

\end{document}

Also, related to Hans's question, what version number does the command
"perl --version" output?

-- Scott
Andrei Alexandrescu (See Website for Email)
2004-08-06 18:10:41 UTC
Permalink
Post by Scott Pakin
Post by Andrei Alexandrescu (See Website for Email)
I'm trying to install perltex under MikTeX and I don't know what's going on.
The perl file won't compile!
Do other test files give the same error message? For example, does the
following complain?
\documentclass{article}
\usepackage{perlmacros}
\begin{document}
\perlnewcommand{\perlversion}{$]}
You are running Perl version \perlversion.
\end{document}
I will get the same exact error.
Post by Scott Pakin
Also, related to Hans's question, what version number does the command
"perl --version" output?
C:\dox\brava>perl --version

This is perl, v5.8.2 built for cygwin-thread-multi-64int

Copyright 1987-2003, Larry Wall

Perl may be copied only under the terms of either the Artistic License or
the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

--------------
Could this be a path separator problem? MikTeX is a Windows program and I
have cygwin's perl.


Andrei
Hans Fredrik Nordhaug
2004-08-06 20:30:05 UTC
Permalink
Post by Andrei Alexandrescu (See Website for Email)
Post by Scott Pakin
Also, related to Hans's question, what version number does the command
"perl --version" output?
C:\dox\brava>perl --version
This is perl, v5.8.2 built for cygwin-thread-multi-64int
I think you need a real Windows Perl. I get the same error as you if I
use the perl coming with MSYS. If I use ActiveState Perl the example works.

Hans
Andrei Alexandrescu (See Website for Email)
2004-08-07 02:58:01 UTC
Permalink
Post by Hans Fredrik Nordhaug
Post by Andrei Alexandrescu (See Website for Email)
Post by Scott Pakin
Also, related to Hans's question, what version number does the command
"perl --version" output?
C:\dox\brava>perl --version
This is perl, v5.8.2 built for cygwin-thread-multi-64int
I think you need a real Windows Perl. I get the same error as you if I
use the perl coming with MSYS. If I use ActiveState Perl the example works.
Aha. Installed ActiveState and it works. Thanks!

Andrei

Loading...