系统为: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的安装。
求问有知道怎么回事的吗?感谢。
离线
你是不是装了 freetype2-infinality 之类的包?
离线
用 如下命令查找安装的包:
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 之类的包?
离线
刚才又尝试了一下:
$ 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 之类的包?
离线
重新下载了个不同版本的,matlab2021b,相同的方式处理了一下。
现在可以使用了。暂时看起来能用。
感谢。
刚才又尝试了一下:
$ 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 之类的包?
离线
哦,原来是它自己带了一个 freetype2 的库,但是没带 harfbuzz 的。这俩是姐妹包,相互依赖并且需要版本匹配的。
离线
matlab 你其实可以从 pacman.ltd 装的(或者用 aur 的 PKGBUILD 构建),还能够用pacman 管理与更新。
离线
感谢,这个源我还是第一次。非常感谢您的推荐。非常有帮助,我可以用它安装其他我需要的软件。
matlab装好最新的b版,一般我就不动了。除非之后的大版本更新了不错的特性。
matlab 你其实可以从 pacman.ltd 装的(或者用 aur 的 PKGBUILD 构建),还能够用pacman 管理与更新。
离线
感谢,这个源我还是第一次。非常感谢您的推荐。非常有帮助,我可以用它安装其他我需要的软件。
matlab装好最新的b版,一般我就不动了。除非之后的大版本更新了不错的特性。
源里面的 matlab目前是2022b,每半年会更新一次,下次更新就是2023a
离线