标签: libraries

apt 安装后在 /usr/lib 或 /lib 中找不到 Libpcap

我安装了jnetpcap,但显示libpcap.so未找到错误,所以我使用

sudo apt-get install libpcap-dev
Run Code Online (Sandbox Code Playgroud)

但当我grep libpcap进去/lib/usr/lib它不在那里,我是否错过了什么?

java libraries libpcap

2
推荐指数
1
解决办法
8889
查看次数

错误:未找到 pcap 库!

我想安装 reaver 并且我得到的错误是:

checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for pcap_open_live in -lpcap... no
error: pcap library not found!
Run Code Online (Sandbox Code Playgroud)

我已经尝试过以下命令: …

apt libraries libpcap software-installation

2
推荐指数
1
解决办法
5万
查看次数

在 pkg-config 搜索路径中找不到包

我正在尝试安装WaoN。当我运行时,sudo make -f Makefile.waon它给我以下错误:

gcc -Wall -march=pentium -O3 -ffast-math `pkg-config --cflags fftw3` `pkg-config --cflags sndfile`   -c -o main.o main.c
Package fftw3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `fftw3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fftw3' found
Package sndfile was not found in the pkg-config search path.
Perhaps you should add the directory containing `sndfile.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sndfile' found
main.c:31:19: fatal error: …
Run Code Online (Sandbox Code Playgroud)

compiling error-handling makefile libraries make

2
推荐指数
1
解决办法
2万
查看次数

sudo:/usr/share/doc/libdvdread4/install-css.sh:找不到命令

sudo apt-get install kubuntu-restricted-extras
Run Code Online (Sandbox Code Playgroud)

似乎运行良好

sudo /usr/share/doc/libdvdread4/install-css.sh
Run Code Online (Sandbox Code Playgroud)

给出:

sudo: /usr/share/doc/libdvdread4/install-css.sh: command not found
Run Code Online (Sandbox Code Playgroud)

已运行 sudo apt-get update 多次

怎么修?如何安装 libdvdread4?

michaeleric@michaeleric-Inspiron-1750:~$ sudo apt-get install libdvdread4  
[sudo] password for michaeleric:   
Reading package lists... Done  
Building dependency tree          
Reading state information... Done  
libdvdread4 is already the newest version (5.0.3-1).  
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.  
michaeleric@michaeleric-Inspiron-1750:~$ sudo /usr/share/doc/libdvdread4/install-css.sh  
sudo: /usr/share/doc/libdvdread4/install-css.sh: command not found  
michaeleric@michaeleric-Inspiron-1750:~$   
Run Code Online (Sandbox Code Playgroud)

===========================================

sudo apt install libdvdcss2 libdvdread4 libdvdnav4 ubuntu-restricted-extras
Run Code Online (Sandbox Code Playgroud)

似乎安装

michaeleric@michaeleric-Inspiron-1750:~$ sudo /usr/share/doc/libdvdread4/install-css.shsudo: …
Run Code Online (Sandbox Code Playgroud)

kubuntu libraries

2
推荐指数
1
解决办法
4936
查看次数

PyGObject、venv 和 Ubuntu 20.10:导入错误:libffi.so.7:无法打开共享对象文件:没有这样的文件或目录

从 Ubuntu 20.04 更新到 Ubuntu 20.10 后,我无法在 Python 虚拟环境上运行 PyGObject 应用程序。

我可以按照以下简单步骤重现该问题:

sudo apt-get install python3-venv
python3 -m venv venv
source env/bin/activate
pip install PyGObject==3.38.0
python3 hw.py
Run Code Online (Sandbox Code Playgroud)

hw.py标准的 PyGObject Hello World 在哪里:

#!/usr/bin/env python3

import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk

window = Gtk.Window(title="Hello World")
window.show()
window.connect("destroy", Gtk.main_quit)
Gtk.main()
Run Code Online (Sandbox Code Playgroud)

当我尝试运行它时,它会抛出以下错误:

$ python3 hw.py 
Traceback (most recent call last):
  File "hw.py", line 3, in <module>
    import gi
  File "/home/leinardi/temp/hw/venv/lib/python3.8/site-packages/gi/__init__.py", line 40, in <module>
    from . import _gi
ImportError: libffi.so.7: …
Run Code Online (Sandbox Code Playgroud)

libraries gobject python3 20.10

2
推荐指数
1
解决办法
1万
查看次数

将 glibc 升级到 2.2 是否安全?

我一直在考虑从Torque购买 MarbleBlast Gold和一款名为 Orbz 的游戏,其中一个要求是 glibc2.2+

我已经围绕这个问题做了一些研究,并注意到 Ubuntu 使用 eglibc,并且 glibc 在全新安装中仍为 2.11 版。然而,鉴于 C 库是操作系统的一个非常重要的部分,我一直在推迟这样做。

在不搞乱操作系统的情况下这样做是否安全?如果是这样,我会怎么做?

upgrade games libraries

1
推荐指数
1
解决办法
975
查看次数

如何创建桌面环境

我想为 Ubuntu 和 Linux 创建一个桌面环境,你能告诉我如何做到这一点,我想要最简单的方法来做到这一点。我可以使用嵌入式 qt Linux 来做到这一点,如果是,那么我想使用它只告诉我哪个库如何使用 python 完成哪些包要下载和导入我想在主要事情上做更多的工作,而不是我可以做的其他事情也使用 c++,但是将库添加到 c++ 是一个很大的痛苦,尤其是对于 eclipse、net bean 等 ide,如果我可以用 qt 轻松地告诉系统包

development desktop-environments libraries

1
推荐指数
1
解决办法
1437
查看次数

“pkg-config --modversion glib-2.0”报告旧版本

我有 Ubuntu 14.04 32 位。我正在尝试从源代码编译应用程序。它使我在联系过程中的错误信息make,虽然过程./autogen.sh./configure没有错误传递。我收到了这个错误,undefined reference to g_variant_parse_error_quark我读到该函数g_variant_parse_error_quark在 2.39 中添加到 glib2 中。我检查了已安装的软件包,发现系统中的 libglib 版本是 2.40.0。然而

 pkg-config --modversion glib-2.0
Run Code Online (Sandbox Code Playgroud)

报告 2.38.2

看来我至少安装了两个不同的 glib2。我过去可能从源代码手动安装了 glib2。

如何解决该问题并让我的系统使用正确的最新库?

pkg-config libraries configure

1
推荐指数
1
解决办法
3839
查看次数

如果 LTS 版本包含过时的软件包,它们的意义何在?

正如标题所说。如果我必须至少每 2 年更新一次,那么 LTS 有什么意义,因为这些软件包没有更新到新版本,因此很快就会包含不受支持的版本?

lts libraries

-5
推荐指数
1
解决办法
132
查看次数