Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libfreetype.6.dylib cannot be called rightly using command-line on Mac #81

Closed
qiuzhu opened this issue Feb 28, 2018 · 6 comments
Closed
Assignees
Milestone

Comments

@qiuzhu
Copy link

qiuzhu commented Feb 28, 2018

I call the pdflatex in commad-line on Mac and then output error:

dyld: Library not loaded: @executable_path/../lib/libfreetype.6.dylib
  Referenced from: /Applications/MiKTeX Console.app/Contents/lib/libMiKTeX209-poppler.1.25.106.dylib
  Reason: Incompatible library version: libMiKTeX209-poppler.1.dylib requires version 23.0.0 or later, but libfreetype.6.dylib provides version 15.0.0
[1]    27786 abort      pdflatex

and I use locate command to find all libfreetype.6.dyli files:

/Applications/MiKTeX Console.app/Contents/lib/libfreetype.6.dylib
/Applications/texstudio.app/Contents/Frameworks/libfreetype.6.dylib
/opt/X11/lib/libfreetype.6.dylib
/usr/local/Cellar/freetype/2.9/lib/libfreetype.6.dylib
/usr/local/lib/libfreetype.6.dylib

and check the version:

otool -L /usr/local/Cellar/freetype/2.9/lib/libfreetype.6.dylib

> /usr/local/Cellar/freetype/2.9/lib/libfreetype.6.dylib:
> 	/usr/local/opt/freetype/lib/libfreetype.6.dylib (compatibility version 23.0.0, current version 23.0.0)

otool -L /opt/X11/lib/libfreetype.6.dylib

> /opt/X11/lib/libfreetype.6.dylib:
> 	/opt/X11/lib/libfreetype.6.dylib (compatibility version 19.0.0, current version 19.6.0)

and

 otool -L /usr/local/lib/libfreetype.6.dylib
/usr/local/lib/libfreetype.6.dylib:
	/usr/local/opt/freetype/lib/libfreetype.6.dylib (compatibility version 23.0.0, current version 23.0.0)

it works with IDE like texstudio , but only occurs in comand-line , I dont know why miktex call otherlibfreetype.6.dylib

@edocevoli
Copy link
Member

Obviously this is a system-dependent issue (I cannot reproduce it at the moment).

Please check the versions of /Applications/MiKTeX Console.app/Contents/lib/libfreetype.6.dylib and /Applications/texstudio.app/Contents/Frameworks/libfreetype.6.dylib.

@qiuzhu
Copy link
Author

qiuzhu commented Feb 28, 2018

otool -L /Applications/texstudio.app/Contents/Frameworks/libfreetype.6.dylib
/Applications/texstudio.app/Contents/Frameworks/libfreetype.6.dylib:
	@executable_path/../Frameworks/libfreetype.6.dylib (compatibility version 17.0.0, current version 17.0.0)

and

otool -L /Applications/MiKTeX\ Console.app/Contents/lib/libfreetype.6.dylib
/Applications/MiKTeX Console.app/Contents/lib/libfreetype.6.dylib:
	@executable_path/../lib/libfreetype.6.dylib (compatibility version 23.0.0, current version 23.0.0)

@edocevoli
Copy link
Member

Thank you. But I wonder where version 15.0.0 is coming from.

@edocevoli
Copy link
Member

In order to find out what libraries are loaded by miktex-pdftex, you can run:

otool -L /Applications/MiKTeX\ Console.app/Contents/bin/miktex-pdftex

@qiuzhu
Copy link
Author

qiuzhu commented Feb 28, 2018

this is the output:

otool -L /Applications/MiKTeX\ Console.app/Contents/bin/miktex-pdftex

/Applications/MiKTeX Console.app/Contents/bin/miktex-pdftex:
	@executable_path/../lib/libjpeg.9.dylib (compatibility version 12.0.0, current version 12.0.0)
	@executable_path/../lib/libpng16.16.dylib (compatibility version 51.0.0, current version 51.0.0)
	@executable_path/../lib/libMiKTeX209-poppler.1.dylib (compatibility version 1.0.0, current version 1.25.106)
	@executable_path/../lib/libMiKTeX209-web2c.1.dylib (compatibility version 1.0.0, current version 1.25.40)
	@executable_path/../lib/libMiKTeX209-texmf.2.dylib (compatibility version 2.0.0, current version 2.25.101)
	@executable_path/../lib/libMiKTeX209-app.2.dylib (compatibility version 2.0.0, current version 2.25.192)
	@executable_path/../lib/libMiKTeX209-packagemanager.1.dylib (compatibility version 1.0.0, current version 1.25.184)
	@executable_path/../lib/libMiKTeX209-core.5.dylib (compatibility version 5.0.0, current version 5.25.212)
	@executable_path/../lib/libMiKTeX209-md5.1.dylib (compatibility version 1.0.0, current version 1.24.156)
	@executable_path/../lib/libMiKTeX209-trace.1.dylib (compatibility version 1.0.0, current version 1.24.156)
	@executable_path/../lib/libMiKTeX209-util.1.dylib (compatibility version 1.0.0, current version 1.25.63)
	@executable_path/../lib/libpopt.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	@executable_path/../lib/libMiKTeX209-kpathsea.1.dylib (compatibility version 1.0.0, current version 1.25.115)
	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.0.0)

@edocevoli edocevoli added this to the 2.9.6630 milestone Feb 28, 2018
@edocevoli edocevoli self-assigned this Mar 2, 2018
@edocevoli
Copy link
Member

This has been fixed with MiKTeX 2.9.6650.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants