dpkg -s libgtk-3-0|grep '^Version'
说 Version: 3.22.30-1ubuntu4
我现在必须做什么才能让 pspp 找到 gtk 4?我可以以某种方式在 sudo ./configure 命令中明确声明?
更新 - 不知道它是否有帮助......
我正在尝试安装 gtk+3.4(与 gtksource 有什么区别?)
然后发行 find /usr/ -iname "*glib*.pc"
它报告说:No glib 3 .....
/usr/local/lib/x86_64-linux-gnu/pkgconfig/glib-2.0.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/fso-glib-1.0.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/libpulse-mainloop-glib.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/glib-2.0.pc
/usr/lib/pkgconfig/glib-sharp-3.0.pc
/usr/lib/pkgconfig/glib-sharp-2.0.pc
注意:
elias@eliasc:$ echo $LD_LIBRARY_PATH
/usr/local/lib:/usr/local/lib/:/usr/lib/:/usr/lib64/
elias@eliasc:$ echo $PKG_CONFIG_PATH
/usr/local/lib/pkgconfig
请注意,对于 gtk+-3.4.2:
elias@eliasc:$ sudo ./configure --prefix=/usr --sysconfdir=/etc
*** 'pkg-config --modversion glib-2.0' returned 2.64.0, but GLIB (2.56.4)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error:
*** GLIB 2.32.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/pub/gtk/.
请注意,它已从源成功安装 gtksourceview-4.0.0(对于 PSPP v1.4)和从源成功安装 glib-2.64.4(对于 gtk+-3.4.2),但它们似乎没有被“发现”尊重需要它们的应用程序。
注意...
通过从软件和更新中选择,第一个选项卡中的源...并通过运行“sudo apt-get build-dep pspp”安装 libgtksourceview-3.0-dev....
然后...为 pspp v1.4 运行 sudo ./configure。正在工作中。它已成功安装!
您必须通过获取 18.04 LTS 版本的构建依赖项来开始编译过程:
通过访问软件和更新 ( )启用源代码存储库software-properties-gtk
然后确认列表Reload。
通过以下方式获取构建依赖项:
sudo apt-get build-dep pspp
按照您的计划继续编译:
mkdir -p ~/Downloads/pspp
cd ~/Downloads/pspp
wget http://archive.ubuntu.com/ubuntu/pool/universe/s/spread-sheet-widget/spread-sheet-widget_0.6.orig.tar.gz
tar -xf spread-sheet-widget_0.6.orig.tar.gz
cd spread-sheet-widget-0.6/
./configure
sudo make install
cd ~/Downloads/pspp
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pspp/pspp_1.4.0.orig.tar.gz
tar -xf pspp_1.4.0.orig.tar.gz
cd pspp-1.4.0/
./configure
make
sudo make install
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句