![无法在 Ubuntu 18.04 中安装 DroidCam](https://linux22.com/image/1172564/%E6%97%A0%E6%B3%95%E5%9C%A8%20Ubuntu%2018.04%20%E4%B8%AD%E5%AE%89%E8%A3%85%20DroidCam.png)
终端提示如下:
arunava@arunava-H110M-S2:~$ gcc make linux-headers-`uname -r`
Command 'gcc' not found, but can be installed with:
sudo apt install gcc
arunava@arunava-H110M-S2:~$
arunava@arunava-H110M-S2:~$ sudo apt install gcc
[sudo] password for arunava:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
gcc-7 libasan4 libatomic1 libc-dev-bin libc6-dev libcilkrts5 libgcc-7-dev
libitm1 liblsan0 libmpx2 libquadmath0 libtsan0 libubsan0 linux-libc-dev
manpages-dev
Suggested packages:
gcc-multilib make autoconf automake libtool flex bison gcc-doc ............
..................
arunava@arunava-H110M-S2:/tmp$ # OK?
arunava@arunava-H110M-S2:/tmp$ unzip droidcam_latest.zip -d droidcam && cd droidcam
Archive: droidcam_latest.zip
inflating: droidcam/LICENCE
inflating: droidcam/Makefile
inflating: droidcam/README.md
inflating: droidcam/droidcam
inflating: droidcam/droidcam-cli
inflating: droidcam/install
creating: droidcam/src/
inflating: droidcam/uninstall
creating: droidcam/v4l2loopback/
inflating: droidcam/v4l2loopback/v4l2loopback-dc.c
inflating: droidcam/v4l2loopback/Makefile
inflating: droidcam/v4l2loopback/test-mmap.c
inflating: droidcam/v4l2loopback/test.c
arunava@arunava-H110M-S2:/tmp/droidcam$ sudo ./install
Webcam parameters: '640' and '480'
Building v4l2loopback-dc.ko
./install: line 36: make: command not found
arunava@arunava-H110M-S2:/tmp/droidcam$
如何解决这个问题?
答案1
打开终端并输入:
sudo apt install build-essential make
cd /tmp/droidcam/
sudo ./install