[tex-live] [texhax] ! LaTeX error: File 'rcs.sty' not found.

Vladimir Lomov lomov.vl at gmail.com
Mon Mar 15 08:20:31 CET 2010


Please, don't drop mailing list from your reply. It will be much faster
and easier to track down you problem.

** John H Harris [2010-03-14 15:19:50 -0400]:

> Hello Vladimir,

> You wrote:

>    This "Cannot open rcs.sty/ls-R to write" is strange. You should open
>    command line (cmd) as administrator and run in it
>    C:\> mktexlsr
>    Here 'C:' is path, i.e. you should run with command from top level of
>    C drive.

> I use a Thompson Automation Bourne shell. I don't think pwd matters. I
> tried it again from c:/ The output was the same:
Sorry, I don't familiar with this tool, could you try usual cmd.exe?

>    mktexlsr: Updating C:/TeXLive/2009/texmf/ls-R...
>    mktexlsr: Updated C:/TeXLive/2009/texmf/ls-R.
>    Cannot open  C:/TeXLive/2009/texmf-config/ls-R to write.
>    mktexlsr: Updating C:/TeXLive/2009/texmf-dist/ls-R...
>    mktexlsr: Updated C:/TeXLive/2009/texmf-dist/ls-R.
>    mktexlsr: Updating 
> C:/TeXLive/2009/texmf-dist/doc/context/manuals/reference/en/ls-R...
>    mktexlsr: Updated 
> C:/TeXLive/2009/texmf-dist/doc/context/manuals/reference/en/ls-R.
>    mktexlsr: Updating C:/TeXLive/2009/texmf-var/ls-R...
>    mktexlsr: Updated C:/TeXLive/2009/texmf-var/ls-R.
>    Cannot open  C:/TeXLive/texmf-local/ls-R to write.
>    mktexlsr: Done.
And again, this is strange. Why 'texmf-dist/doc/context/manuals/...' has

Check environment variables (Windows and your tool): run in cmd.exe and
in your tool 'set' command.

May be you don't have permission to write onto file

> and I still get the rcs.sty-not-found error from latex.exe.
Always use
prompt$ kpsewhich rcs.sty
to check if there is such file (read: could be found by texlive).
If file exists (on disk) that doesn't mean that texlive could find it.
If you curious why that read tds and texlive manual.

> I did the TeX Live installation, from the FIG installation DVD, default
> installation, as I have done with previous TeX Live releases for the past
> ten years or so.

> You wrote:

>    you could check TeX Live variables of your installation:

> I have attached a file generated by a script that executes
> "kpsewhich -var-value=" for the various variables you mentioned. I note
> that the two paths TEXMFHOME="C:/Documents and Settings/jhharris/texmf"
> and "TEXMFVAR=C:/Documents and Settings/jhharris/.texlive2009/texmf-var"
> do not exist. TEXMFDBS looks like what I set in the global environment.

> Seeing TeX Live using C:/Documents and Settings/ makes me nervous. I
> have found it best to completely avoid using any unnecessary Microsoft
> operating system directories or convenience features. A designer can not
> rely on anything left in Microsoft's domain. If Windows is managing a
> directory, one should expect that anything in it may be damaged by the
> OS, another application, or a virus. I suspect either that, or that
> there is something about my Windows configuration for which the TeX Live
> developers did not test.
You could redefine TEXMFHOME, in TEXMFMAIN/web2c/texmf.cnf.

>   {C:/Documents and Settings/jhharris/.texlive2009/texmf-config,C:/Documents and Settings/jhharris/.texlive2009/texmf-var,C:/Documents and Settings/jhharris/texmf,!!C:/TeXLive/2009/texmf-config,!!C:/TeXLive/2009/texmf-var,!!C:/TeXLive/2009/texmf,!!C:/TeXLive/2009/../texmf-local,!!C:/TeXLive/2009/texmf-dist}

>   C:/TeXLive/2009/texmf-dist

>   C:/TeXLive/2009/texmf

>   C:/TeXLive/2009/../texmf-local

>   C:/TeXLive/2009/texmf-var

>   C:/TeXLive/2009/texmf-config

>   C:/Documents and Settings/jhharris/texmf

>   C:/Documents and Settings/jhharris/.texlive2009/texmf-var

>   C:/TeXLive/2009/texmf; C:/TeXLive/2009/texmf-config;C:/TeXLive/2009/texmf-dist;C:/TeXLive/2009/texmf-dist/doc/context/manuals/reference/en;C:/TeXLive/2009/texmf-var; C:/TeXLive/texmf-local

These variables look good (expect last one: why
'texmf-dist/doc/context/...' here?). Check your

Check if you have permissions to write to these directories.
And run mktexlsr (or texhash) from cmd.exe.

A truly great man will neither trample on a worm nor sneak to an emperor.
		-- B. Franklin

More information about the tex-live mailing list