Gnuplot错误:未定义的符号:FT_Property_Set [英] Gnuplot Error: undefined symbol: FT_Property_Set
问题描述
我在台式机(Ubuntu 18.04)上运行gnuplot 5.2遇到麻烦.我收到以下错误:
I'm having trouble running gnuplot 5.2 on my desktop (Ubuntu 18.04). I get the following error:
$ gnuplot
G N U P L O T
Version 5.2 patchlevel 2 last modified 2017-11-01
Copyright (C) 1986-1993, 1998, 2004, 2007-2017
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Terminal type is now 'qt'
gnuplot> test
/usr/lib/gnuplot/gnuplot_qt: symbol lookup error: /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5: undefined symbol: FT_Property_Set
Warning: slow font initializationgnuplot>
gnuplot>
我尝试使用apt
来upgrade
-ing gnuplot无济于事,我不确定还可以尝试什么.
I have tried upgrade
-ing gnuplot using apt
to no avail, and I'm not sure what else to try.
我在这里找到了类似的问题,没有答案: libQt5XcbQpa.so .5:未定义符号:FT_Property_Set
I found a similar question with no answers here: libQt5XcbQpa.so.5: undefined symbol: FT_Property_Set
我的gnuplot依赖于libfreetype6,它已安装但显然不正确.安装的libfreetype是:
My gnuplot depends on libfreetype6, which is installed but apparently incorrectly. The installed libfreetype is:
$ apt-file list libfreetype6
libfreetype6: /usr/lib/x86_64-linux-gnu/libfreetype.so.6
...
根据nm
,该库不包含任何符号:
According to nm
that library contains no symbols:
$ nm /usr/lib/x86_64-linux-gnu/libfreetype.so.6
nm: /usr/lib/x86_64-linux-gnu/libfreetype.so.6: no symbols
但是使用strings
确实包含缺少的内容:
But using strings
it does contain what's missing:
$ strings /usr/lib/x86_64-linux-gnu/libfreetype.so.6 | grep FT_Property_Set
FT_Property_Set
所以看来我只需要将gnuplot指向包含libfreetype
的正确位置?最好的方法是什么?
So it seems like I just need to point gnuplot to the correct location containing libfreetype
? What is the best way to do that?
推荐答案
在此处发布答案,以便其他人将来可以找到它.问题是与Tecplot安装中的libfreetype
的其他版本冲突.
Posting an answer here so others can find it in the future. The issue was a conflicting other version of libfreetype
from a Tecplot installation.
该版本略有不同(至少不包括FT_Property_Set
),并且已首先加载.
That version was slightly different (does not include FT_Property_Set
, at least) and was getting loaded first. Unloading Tecplot, or unsetting that portion of my $LD_LIBRARY_PATH
, worked for me.
这篇关于Gnuplot错误:未定义的符号:FT_Property_Set的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!