Error "Too many open files" in pdflatex

When compiling a latex document with 15 or so packages and about five includes, pdflatex throws a "too many open files"-error. All includes are ended with endinput. Any ideas what might cause the error?

The error seems to depend on how many packages are used (no surprise...); however, this is not the first time I use this many packages, while I've never encountered such an error before.

@axel_c: This is not about linux. As you may or may not know, LaTeX is also available on windows (which just happens to be what I'm using right now).


Try inserting

letmypdfximagepdfximage
defpdfximage{immediatemypdfximage}

before documentclass .

See also these threads from the pdftex mailing list:

  • Error message: Too many open files.
  • Too many files open

  • Type

    ulimit -n
    

    to get the maximum number of open files. To change it to eg 2048, type

    ulimit -S -n 2048
    

    This could be caused by a low value in your 'max open file descriptors' kernel configuration. Assuming you're using Linux, you can run this command to find out current limit:

    cat /proc/sys/fs/file-max 
    

    If the limit is low (say, 1024 or so, which is the default in some Linux distros), you could try raising it by editing /etc/sysctl.conf:

      fs.file-max = 65536
    

    Details may differ depending on your Linux distribution, but a quick google search will let you fix it easily.

    链接地址: http://www.djcxy.com/p/5704.html

    上一篇: LaTeX编译错误

    下一篇: 错误“pdflatex中的打开的文件过多”