How can I install MikTex on CentOS 7?

Bomidi Lakshmi Madhavan madhavanbomidi at gmail.com
Mon Aug 31 08:11:54 CEST 2020


Hi,

Please check the attached *screenshot showcasing the texstudio
configuration*.

Following is the error I get when I run the pdflatex via the command
line:  *==>
It seems pdflatex.fmt file is not found*

[madhavan at localhost test_latexdiff]$ pdflatex version1.tex
warning: kpathsea: configuration file texmf.cnf not found in these
directories:
/home/madhavan/anaconda2/bin:/home/madhavan/anaconda2/bin/share/texmf-local/web2c:/home/madhavan/anaconda2/bin/share/texmf-dist/web2c:/home/madhavan/anaconda2/bin/share/texmf/web2c:/home/madhavan/anaconda2/bin/texmf-local/web2c:/home/madhavan/anaconda2/bin/texmf-dist/web2c:/home/madhavan/anaconda2/bin/texmf/web2c:/home/madhavan/anaconda2:/home/madhavan/anaconda2/share/texmf-local/web2c:/home/madhavan/anaconda2/share/texmf-dist/web2c:/home/madhavan/anaconda2/share/texmf/web2c:/home/madhavan/anaconda2/texmf-local/web2c:/home/madhavan/anaconda2/texmf-dist/web2c:/home/madhavan/anaconda2/texmf/web2c:/home/texmf-local/web2c:/home/madhavan:/home/madhavan/share/texmf-local/web2c:/home/madhavan/share/texmf-dist/web2c:/home/madhavan/share/texmf/web2c:/home/madhavan/texmf-local/web2c:/home/madhavan/texmf-dist/web2c:/home/madhavan/texmf/web2c.
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded
format=pdflatex)

kpathsea: Running mktexfmt pdflatex.fmt
warning: kpathsea: configuration file texmf.cnf not found in these
directories:
/home/madhavan/anaconda2/bin:/home/madhavan/anaconda2/bin/share/texmf-local/web2c:/home/madhavan/anaconda2/bin/share/texmf-dist/web2c:/home/madhavan/anaconda2/bin/share/texmf/web2c:/home/madhavan/anaconda2/bin/texmf-local/web2c:/home/madhavan/anaconda2/bin/texmf-dist/web2c:/home/madhavan/anaconda2/bin/texmf/web2c:/home/madhavan/anaconda2:/home/madhavan/anaconda2/share/texmf-local/web2c:/home/madhavan/anaconda2/share/texmf-dist/web2c:/home/madhavan/anaconda2/share/texmf/web2c:/home/madhavan/anaconda2/texmf-local/web2c:/home/madhavan/anaconda2/texmf-dist/web2c:/home/madhavan/anaconda2/texmf/web2c:/home/texmf-local/web2c:/home/madhavan:/home/madhavan/share/texmf-local/web2c:/home/madhavan/share/texmf-dist/web2c:/home/madhavan/share/texmf/web2c:/home/madhavan/texmf-local/web2c:/home/madhavan/texmf-dist/web2c:/home/madhavan/texmf/web2c.
/home/madhavan/anaconda2/bin/mktexfmt: kpsewhich -var-value=TEXMFROOT
failed, aborting early.
BEGIN failed--compilation aborted at /home/madhavan/anaconda2/bin/mktexfmt
line 25.
I can't find the format file `pdflatex.fmt'!

Look forward to your response and support.
Thanks and regards,
Madhavan

On Mon, Aug 31, 2020 at 11:13 AM Lars Madsen <daleif at math.au.dk> wrote:

> Then I don't understand the error message, it is the
> '/home/madhavan/anaconda2/bin/' that I do not understand
>
> Can you run pdflatex by hand via the commandline?
>
> How is pdflatex specified in the texstudio configuration?
>
>
> /Lars Madsen
> Institut for Matematik / Department of Mathematics
> Aarhus Universitet / Aarhus University
> Mere info: http://au.dk/daleif@math <http://au.dk/daleif@imf> / More
> information: http://au.dk/en/daleif@math <http://au.dk/en/daleif@imf>
>
> ------------------------------
> *From:* Bomidi Lakshmi Madhavan <madhavanbomidi at gmail.com>
> *Sent:* 31 August 2020 07:29
> *To:* Lars Madsen <daleif at math.au.dk>
> *Cc:* Bob Tennent <rdtennent at gmail.com>; texhax at tug.org <texhax at tug.org>
> *Subject:* Re: How can I install MikTex on CentOS 7?
>
> Hi,
>
> Yes. The location of pdflatex is obtained as below:
>
>
> *(base) [madhavan at localhost ~]$ which pdflatex *
> *~/anaconda2/bin/pdflatex*
>
> Look forward to your support.
> Thanks and regards,
> Madhavan
>
> On Mon, Aug 31, 2020 at 11:01 AM Lars Madsen <daleif at math.au.dk> wrote:
>
> Is pdflatex even at that specified location?
>
>
> /Lars Madsen
> Institut for Matematik / Department of Mathematics
> Aarhus Universitet / Aarhus University
> Mere info: http://au.dk/daleif@math <http://au.dk/daleif@imf> / More
> information: http://au.dk/en/daleif@math <http://au.dk/en/daleif@imf>
>
> ------------------------------
> *From:* texhax <texhax-bounces+daleif=imf.au.dk at tug.org> on behalf of
> Bomidi Lakshmi Madhavan <madhavanbomidi at gmail.com>
> *Sent:* 31 August 2020 06:23
> *To:* Bob Tennent <rdtennent at gmail.com>
> *Cc:* texhax at tug.org <texhax at tug.org>
> *Subject:* Re: How can I install MikTex on CentOS 7?
>
> Hi Bob,
>
> Greetings. I have a work computer with Centos 7 installed. On the
> 'downloads' section (https://miktex.org/download), Miktex is not
> available for installation on Centos 7. Though I tried to use the commands
> given for Centos 8, the installation is not happening. I am aware of
> tex-live as an alternative but I am well acquainted with Miktex for
> long-time. I have even installed tex-live along with TexStudio. When I
> click 'Build & view', I get the following error message:
>
> Could not start Build & View:PdfLaTeX:
>
> "/home/madhavan/anaconda2/bin/pdflatex" -synctex=1 -interaction=nonstopmode
>
>
> Look forward to your response.
>
> Thanks and regards,
> Madhavan
> ---------------------------------
> Dr. Bomidi Lakshmi Madhavan
> National Atmospheric Research Laboratory (NARL)
> Gadanki - 517 112, Chittoor (Dist.)
> Andhra Pradesh, INDIA
>
> On Thu, Aug 27, 2020 at 10:09 PM Bob Tennent <rdtennent at gmail.com> wrote:
>
>  >|
>  >|I have CentOS 7 on my working PC. I wanted to install
>  >|Miktex on the same but surprised to find that it is
>  >|available only for CentOS 8. Is there a way to get MikTex
>  >|compatible on CentOS 7?
>
> You'd be more likely to get a suitable response from the
> MikTeX support site but my advice would be to follow
> the suggested instructions for CentOS8. After all, the
> miktex.repo file has
>
> https://miktex.org/download/fedora/28/
>
> as the baseurl so I doubt there's anything CentOS8-specific.
>
> Bob T.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20200831/b5034cf9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2020-08-31 11-36-30.png
Type: image/png
Size: 338622 bytes
Desc: not available
URL: <https://tug.org/pipermail/texhax/attachments/20200831/b5034cf9/attachment-0001.png>


More information about the texhax mailing list.