我正在尝试在运行 GNU/Linux Debian Stretch 的 Raspberry pi 上安装git-it。
解压出来的文件夹没有configure文件,也没有binary文件夹。README 文件或网站中没有关于如何从源代码构建包的说明。
git-it-electron/
??? assets
??? CONTRIBUTING.md
??? docs.md
??? empty-data.json
??? empty-saved-dir.json
??? lib
??? LICENSE
??? main.js
??? menus
??? package.json
??? README.md
??? resources
??? tests
Run Code Online (Sandbox Code Playgroud) 我按照 GTK 上的教程使用此命令生成构建标志:
$ pkg-config --cflags --libs gtk+-3.0
Run Code Online (Sandbox Code Playgroud)
这将输出相干标志。从研究中,我发现在、、等价物以及变量指示的文件夹中pkg-config
搜索.pc
文件。/usr/lib/pkginfo
usr/share/pkgconfig
/local
PKG_CONFIG_PATH
没有一个文件夹包含 GTK 文件,并且没有设置环境变量。从哪里pkg-config
获得旗帜?
我的尝试是以本教程为蓝本的。
如果物理接口未分配给网桥,我可以从命名空间 ping 到网络。
# Create namespace
ip netns add namespace1
# Create veth pair.
ip link add veth1 type veth peer name br-veth1
# Associate the non `br-` side with the namespace.
ip link set veth1 netns namespace1
# Give namespace-side veth ip addresses.
ip netns exec namespace1 ip addr add 192.168.1.11/24 dev veth1
# Create a bridge device naming it `br1` and set it up.
ip link add name br1 type bridge
# Turn up the …
Run Code Online (Sandbox Code Playgroud) 我正在尝试在运行 GNU/Linux Debian Stretch 的 Raspberry Pi 上的 c++ 程序中使用 libcurl。
要查找所有已安装的 curl 软件包:
dpkg-query -l curl | grep '^.i'
返回
卷曲
libcurl3:armhf
libcurl3-gnutls:arm
跑步
curl-config --cflags
返回没有这样的命令。带有声明的程序:
#include "curl/curl.h"
Run Code Online (Sandbox Code Playgroud)
并编译和链接
g++ -o test test.cpp -lcurl
返回没有这样的“curl/curl.h”文件。所有教程都声称 curl-config 与 curl 一起安装。我没有安装 curl;它包含在发行版中。运行命令
curl -I http://www.any_site.com
返回正确的数据。