您尚未登录。

#1 2022-10-17 18:53:42

Kovalevskaya
会员
注册时间: 2022-10-05
帖子: 5

求助:arch安装matlab2021b遇到缺少libharfbuzz.so.0到问题

系统为:Arch
Kernel: 5.19.12-zen
DE: Plasma 5.26.0
WM: KWin

想要安装Matlab2021b,只是运行install脚本无反应
尝试运行
./bin/glnxa64/MATLABWindow
得到如下错误:
./bin/glnxa64/MATLABWindow: symbol lookup error: /usr/lib/libharfbuzz.so.0: undefined symbol: FT_Get_Transform

尝试参考了Arch的wiki,只有类似的。尝试后没有成功。还有谷歌的解决方案,都没有成功解决。
也用yay安装harbuzz包,显示已经安装了。也没成功完成matlab的安装。

求问有知道怎么回事的吗?感谢。

离线

#2 2022-10-17 19:20:05

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,919
个人网站

Re: 求助:arch安装matlab2021b遇到缺少libharfbuzz.so.0到问题

你是不是装了 freetype2-infinality 之类的包?

离线

#3 2022-10-17 20:09:33

Kovalevskaya
会员
注册时间: 2022-10-05
帖子: 5

Re: 求助:arch安装matlab2021b遇到缺少libharfbuzz.so.0到问题

用 如下命令查找安装的包:

yay- Qq | grep free
freeglut
freetype2
gnu-free-fonts
lib32-freetype2
libfreeaptx
sound-theme-freedesktop

可以看到有
freetyp2和lib32-freetype2
但是没找到freetype2-infinality.
尝试用
pacman -Rsn卸载
可以看到

:: 删除 lib32-freetype2 破坏依赖 'lib32-freetype2' (deepin-wine6-stable 需要)
:: 删除 lib32-freetype2 破坏依赖 'lib32-freetype2' (lib32-cairo 需要)
:: 删除 lib32-freetype2 破坏依赖 'libfreetype.so=6-32' (lib32-fontconfig 需要)
:: 删除 lib32-freetype2 破坏依赖 'lib32-freetype2' (lib32-harfbuzz 需要)
:: 删除 lib32-freetype2 破坏依赖 'libfreetype.so=6-32' (lib32-harfbuzz 需要)
:: 删除 lib32-freetype2 破坏依赖 'lib32-freetype2' (lib32-librsvg 需要)

:: 删除 freetype2 破坏依赖 'freetype2' (cairo 需要)
:: 删除 freetype2 破坏依赖 'freetype2' (deepin-wine6-stable 需要)
:: 删除 freetype2 破坏依赖 'libfreetype.so=6-64' (emacs 需要)
:: 删除 freetype2 破坏依赖 'libfreetype.so=6-64' (ffmpeg 需要)
:: 删除 freetype2 破坏依赖 'libfreetype.so=6-64' (ffmpeg4.4 需要)
:: 删除 freetype2 破坏依赖 'libfreetype.so=6-64' (fontconfig 需要)
:: 删除 freetype2 破坏依赖 'freetype2' (harfbuzz 需要)
:: 删除 freetype2 破坏依赖 'libfreetype.so=6-64' (harfbuzz 需要)
:: 删除 freetype2 破坏依赖 'freetype2' (lib32-freetype2 需要)
:: 删除 freetype2 破坏依赖 'libfreetype.so=6-64' (libass 需要)
:: 删除 freetype2 破坏依赖 'libfreetype.so=6-64' (libbluray 需要)
:: 删除 freetype2 破坏依赖 'freetype2' (libotf 需要):: 删除 freetype2 破坏依赖 'freetype2' (librsvg 需要)
:: 删除 freetype2 破坏依赖 'freetype2' (libxfont2 需要):: 删除 freetype2 破坏依赖 'freetype2' (vlc 需要)
:: 删除 freetype2 破坏依赖 'freetype2' (xorg-mkfontscale 需要)

所以需要把版本冲突的问题吗?需要把冲突的包卸载吗?
我对arch不太了解。才使用了不久,尽显了解用pacman和yay直接安装软件的地步。

非常感谢。不知道这种情况应当如何处理。

依云 说:

你是不是装了 freetype2-infinality 之类的包?

离线

#4 2022-10-17 20:31:26

Kovalevskaya
会员
注册时间: 2022-10-05
帖子: 5

Re: 求助:arch安装matlab2021b遇到缺少libharfbuzz.so.0到问题

刚才又尝试了一下:

$ rm ./bin/glnxa64/libfreetype.so*
$ export LD_PRELOAD=/usr/lib/libfreetype.so
$ ./install

居然能够成功安装了,但是问题是,第一无法设置成中文,第二打不开MATLAB的代码编辑器。
我再换几个不同版本的MATLAB试试,有点儿蒙。之前曾经在fedora中安装过MATLAB2020,可以正常使用。现在在arch,两次都没成功。
还不知道什么问题。sad。

Exception in thread "AWT-EventQueue-0": java.lang.AbstractMethodError: ice.pilots.html4.DocPaneXml.setCursorChangeable(Z)V
	at ice.pilots.html4.ThePilot.setCursorChangeable(ThePilot.java:703)
	at com.mathworks.mlwidgets.html.ICERenderer.setWaitCursor(ICERenderer.java:1813)
	at com.mathworks.mlwidgets.html.ICERenderer.access$2900(ICERenderer.java:107)
	at com.mathworks.mlwidgets.html.ICERenderer$CursorHandler.run(ICERenderer.java:1843)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Exception in thread "AWT-EventQueue-0": java.lang.AbstractMethodError: ice.pilots.html4.DocPaneXml.setCursorChangeable(Z)V
	at ice.pilots.html4.ThePilot.setCursorChangeable(ThePilot.java:703)
	at com.mathworks.mlwidgets.html.ICERenderer.setWaitCursor(ICERenderer.java:1813)
	at com.mathworks.mlwidgets.html.ICERenderer.finishedLoading(ICERenderer.java:1685)
	at com.mathworks.mlwidgets.html.ICERenderer.access$2400(ICERenderer.java:107)
	at com.mathworks.mlwidgets.html.ICERenderer$MyPropertyChangeListener.propertyChange(ICERenderer.java:1552)
	at ice.storm.StormBase.firePropertyChangeEvent(StormBase.java:528)
	at ice.storm.StormBase.sendViewportMessage(StormBase.java:511)
	at ice.storm.Pilot.firePropertyChange(Pilot.java:243)
	at ice.pilots.html4.ObjectPool.fireOutstandingImagesEvent(ObjectPool.java:68)
	at ice.pilots.html4.ObjectPool.fireOutstandingImagesEvent(ObjectPool.java:73)
	at ice.pilots.html4.ThePilot.onLoadingDone(ThePilot.java:959)
	at ice.storm.Viewport$3.run(Viewport.java:986)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Exception in thread "AWT-EventQueue-0": java.lang.AbstractMethodError: ice.pilots.html4.DocPaneXml.setCursorChangeable(Z)V
	at ice.pilots.html4.ThePilot.setCursorChangeable(ThePilot.java:703)
	at com.mathworks.mlwidgets.html.ICERenderer.setWaitCursor(ICERenderer.java:1813)
	at com.mathworks.mlwidgets.html.ICERenderer.access$2900(ICERenderer.java:107)
	at com.mathworks.mlwidgets.html.ICERenderer$CursorHandler.run(ICERenderer.java:1843)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Exception in thread "AWT-EventQueue-0": java.lang.AbstractMethodError: ice.pilots.html4.DocPaneXml.setCursorChangeable(Z)V
	at ice.pilots.html4.ThePilot.setCursorChangeable(ThePilot.java:703)
	at com.mathworks.mlwidgets.html.ICERenderer.setWaitCursor(ICERenderer.java:1813)
	at com.mathworks.mlwidgets.html.ICERenderer.access$2900(ICERenderer.java:107)
	at com.mathworks.mlwidgets.html.ICERenderer$CursorHandler.run(ICERenderer.java:1843)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
依云 说:

你是不是装了 freetype2-infinality 之类的包?

离线

#5 2022-10-17 21:30:20

Kovalevskaya
会员
注册时间: 2022-10-05
帖子: 5

Re: 求助:arch安装matlab2021b遇到缺少libharfbuzz.so.0到问题

重新下载了个不同版本的,matlab2021b,相同的方式处理了一下。
现在可以使用了。暂时看起来能用。
感谢。

Kovalevskaya 说:

刚才又尝试了一下:

$ rm ./bin/glnxa64/libfreetype.so*
$ export LD_PRELOAD=/usr/lib/libfreetype.so
$ ./install

居然能够成功安装了,但是问题是,第一无法设置成中文,第二打不开MATLAB的代码编辑器。
我再换几个不同版本的MATLAB试试,有点儿蒙。之前曾经在fedora中安装过MATLAB2020,可以正常使用。现在在arch,两次都没成功。
还不知道什么问题。sad。

Exception in thread "AWT-EventQueue-0": java.lang.AbstractMethodError: ice.pilots.html4.DocPaneXml.setCursorChangeable(Z)V
	at ice.pilots.html4.ThePilot.setCursorChangeable(ThePilot.java:703)
	at com.mathworks.mlwidgets.html.ICERenderer.setWaitCursor(ICERenderer.java:1813)
	at com.mathworks.mlwidgets.html.ICERenderer.access$2900(ICERenderer.java:107)
	at com.mathworks.mlwidgets.html.ICERenderer$CursorHandler.run(ICERenderer.java:1843)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Exception in thread "AWT-EventQueue-0": java.lang.AbstractMethodError: ice.pilots.html4.DocPaneXml.setCursorChangeable(Z)V
	at ice.pilots.html4.ThePilot.setCursorChangeable(ThePilot.java:703)
	at com.mathworks.mlwidgets.html.ICERenderer.setWaitCursor(ICERenderer.java:1813)
	at com.mathworks.mlwidgets.html.ICERenderer.finishedLoading(ICERenderer.java:1685)
	at com.mathworks.mlwidgets.html.ICERenderer.access$2400(ICERenderer.java:107)
	at com.mathworks.mlwidgets.html.ICERenderer$MyPropertyChangeListener.propertyChange(ICERenderer.java:1552)
	at ice.storm.StormBase.firePropertyChangeEvent(StormBase.java:528)
	at ice.storm.StormBase.sendViewportMessage(StormBase.java:511)
	at ice.storm.Pilot.firePropertyChange(Pilot.java:243)
	at ice.pilots.html4.ObjectPool.fireOutstandingImagesEvent(ObjectPool.java:68)
	at ice.pilots.html4.ObjectPool.fireOutstandingImagesEvent(ObjectPool.java:73)
	at ice.pilots.html4.ThePilot.onLoadingDone(ThePilot.java:959)
	at ice.storm.Viewport$3.run(Viewport.java:986)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Exception in thread "AWT-EventQueue-0": java.lang.AbstractMethodError: ice.pilots.html4.DocPaneXml.setCursorChangeable(Z)V
	at ice.pilots.html4.ThePilot.setCursorChangeable(ThePilot.java:703)
	at com.mathworks.mlwidgets.html.ICERenderer.setWaitCursor(ICERenderer.java:1813)
	at com.mathworks.mlwidgets.html.ICERenderer.access$2900(ICERenderer.java:107)
	at com.mathworks.mlwidgets.html.ICERenderer$CursorHandler.run(ICERenderer.java:1843)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Exception in thread "AWT-EventQueue-0": java.lang.AbstractMethodError: ice.pilots.html4.DocPaneXml.setCursorChangeable(Z)V
	at ice.pilots.html4.ThePilot.setCursorChangeable(ThePilot.java:703)
	at com.mathworks.mlwidgets.html.ICERenderer.setWaitCursor(ICERenderer.java:1813)
	at com.mathworks.mlwidgets.html.ICERenderer.access$2900(ICERenderer.java:107)
	at com.mathworks.mlwidgets.html.ICERenderer$CursorHandler.run(ICERenderer.java:1843)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
依云 说:

你是不是装了 freetype2-infinality 之类的包?

离线

#6 2022-10-17 21:38:47

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,919
个人网站

Re: 求助:arch安装matlab2021b遇到缺少libharfbuzz.so.0到问题

哦,原来是它自己带了一个 freetype2 的库,但是没带 harfbuzz 的。这俩是姐妹包,相互依赖并且需要版本匹配的。

离线

#7 2022-10-18 09:21:14

sukanka
会员
所在地: Amoy, China
注册时间: 2020-04-05
帖子: 172
个人网站

Re: 求助:arch安装matlab2021b遇到缺少libharfbuzz.so.0到问题

matlab 你其实可以从 pacman.ltd 装的(或者用 aur 的 PKGBUILD 构建),还能够用pacman 管理与更新。

离线

#8 2022-10-27 19:05:00

Kovalevskaya
会员
注册时间: 2022-10-05
帖子: 5

Re: 求助:arch安装matlab2021b遇到缺少libharfbuzz.so.0到问题

感谢,这个源我还是第一次。非常感谢您的推荐。非常有帮助,我可以用它安装其他我需要的软件。

matlab装好最新的b版,一般我就不动了。除非之后的大版本更新了不错的特性。


sukanka 说:

matlab 你其实可以从 pacman.ltd 装的(或者用 aur 的 PKGBUILD 构建),还能够用pacman 管理与更新。

离线

#9 2022-10-27 21:27:51

sukanka
会员
所在地: Amoy, China
注册时间: 2020-04-05
帖子: 172
个人网站

Re: 求助:arch安装matlab2021b遇到缺少libharfbuzz.so.0到问题

Kovalevskaya 说:

感谢,这个源我还是第一次。非常感谢您的推荐。非常有帮助,我可以用它安装其他我需要的软件。

matlab装好最新的b版,一般我就不动了。除非之后的大版本更新了不错的特性。

源里面的 matlab目前是2022b,每半年会更新一次,下次更新就是2023a

离线

页脚