CentOS: how to fix error: Encoding file `eu1enc.def’ not found


Here is an example:

[root@tutorialspots ~]# pandoc -f epub --pdf-engine=xelatex  1.epub -o 1.pdf
Error producing PDF.
! Package fontenc Error: Encoding file `eu1enc.def' not found.
(fontenc)                You might have misspelt the name of the encoding.

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

l.99 \ProcessOptions*

How to fix this error?

Install package texlive-euenc

yum install -y texlive-euenc

Result:

[root@tutorialspots convert]# yum install -y texlive-euenc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: repos-tx.psychz.net
 * epel: kdeforge2.unl.edu
 * extras: mirror.genesisadaptive.com
 * ius: dfw.mirror.rackspace.com
 * nux-dextop: mirror.li.nux.ro
 * remi-safe: mirror.bebout.net
 * updates: mirror.mobap.edu
Resolving Dependencies
--> Running transaction check
---> Package texlive-euenc.noarch 2:svn19795.0.1h-43.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package             Arch         Version                      Repository  Size
================================================================================
Installing:
 texlive-euenc       noarch       2:svn19795.0.1h-43.el7       base        23 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 23 k
Installed size: 21 k
Downloading packages:
texlive-euenc-svn19795.0.1h-43.el7.noarch.rpm              |  23 kB   00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 2:texlive-euenc-svn19795.0.1h-43.el7.noarch                  1/1
  Verifying  : 2:texlive-euenc-svn19795.0.1h-43.el7.noarch                  1/1

Installed:
  texlive-euenc.noarch 2:svn19795.0.1h-43.el7

Complete!

Done!

You can install more

yum install texlive-xetexfontinfo texlive-fontaxes texlive-fontware texlive-fontwrap

Result:

[root@tutorialspots ~]# yum install texlive-xetexfontinfo texlive-fontaxes texlive-fontware  texlive-fontwrap
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: repos-tx.psychz.net
 * epel: kdeforge2.unl.edu
 * extras: mirror.genesisadaptive.com
 * ius: dfw.mirror.rackspace.com
 * nux-dextop: mirror.li.nux.ro
 * remi-safe: mirror.bebout.net
 * updates: mirror.mobap.edu
Resolving Dependencies
--> Running transaction check
---> Package texlive-fontaxes.noarch 0:svn24880.1.0c-55.el7 will be installed
---> Package texlive-fontware.noarch 2:svn26689.0-43.el7 will be installed
--> Processing Dependency: texlive-fontware-bin for package: 2:texlive-fontware-svn26689.0-43.el7.noarch
---> Package texlive-fontwrap.noarch 2:svn15878.0-43.el7 will be installed
---> Package texlive-xetexfontinfo.noarch 2:svn15878.0-43.el7 will be installed
--> Running transaction check
---> Package texlive-fontware-bin.x86_64 2:svn26509.0-43.20130427_r30134.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package               Arch   Version                                Repository
                                                                           Size
================================================================================
Installing:
 texlive-fontaxes      noarch svn24880.1.0c-55.el7                   epel  16 k
 texlive-fontware      noarch 2:svn26689.0-43.el7                    base  23 k
 texlive-fontwrap      noarch 2:svn15878.0-43.el7                    base  31 k
 texlive-xetexfontinfo noarch 2:svn15878.0-43.el7                    base  20 k
Installing for dependencies:
 texlive-fontware-bin  x86_64 2:svn26509.0-43.20130427_r30134.el7    base  87 k

Transaction Summary
================================================================================
Install  4 Packages (+1 Dependent package)

Total download size: 176 k
Installed size: 308 k
Is this ok [y/d/N]: y
Downloading packages:
(1/5): texlive-fontware-bin-svn26509.0-43.20130427_r30134. |  87 kB   00:00
(2/5): texlive-fontware-svn26689.0-43.el7.noarch.rpm       |  23 kB   00:00
(3/5): texlive-fontwrap-svn15878.0-43.el7.noarch.rpm       |  31 kB   00:00
(4/5): texlive-xetexfontinfo-svn15878.0-43.el7.noarch.rpm  |  20 kB   00:00
(5/5): texlive-fontaxes-svn24880.1.0c-55.el7.noarch.rpm    |  16 kB   00:00
--------------------------------------------------------------------------------
Total                                              355 kB/s | 176 kB  00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 2:texlive-fontware-bin-svn26509.0-43.20130427_r30134.el7.x   1/5
  Installing : 2:texlive-fontware-svn26689.0-43.el7.noarch                  2/5
  Installing : 2:texlive-fontwrap-svn15878.0-43.el7.noarch                  3/5
  Installing : texlive-fontaxes-svn24880.1.0c-55.el7.noarch                 4/5
  Installing : 2:texlive-xetexfontinfo-svn15878.0-43.el7.noarch             5/5
  Verifying  : 2:texlive-fontware-svn26689.0-43.el7.noarch                  1/5
  Verifying  : 2:texlive-xetexfontinfo-svn15878.0-43.el7.noarch             2/5
  Verifying  : 2:texlive-fontware-bin-svn26509.0-43.20130427_r30134.el7.x   3/5
  Verifying  : texlive-fontaxes-svn24880.1.0c-55.el7.noarch                 4/5
  Verifying  : 2:texlive-fontwrap-svn15878.0-43.el7.noarch                  5/5

Installed:
  texlive-fontaxes.noarch 0:svn24880.1.0c-55.el7
  texlive-fontware.noarch 2:svn26689.0-43.el7
  texlive-fontwrap.noarch 2:svn15878.0-43.el7
  texlive-xetexfontinfo.noarch 2:svn15878.0-43.el7

Dependency Installed:
  texlive-fontware-bin.x86_64 2:svn26509.0-43.20130427_r30134.el7

Complete!

Leave a Reply