随笔分类 - linux
摘要:是一个跨平台的网络协议库,支持http/https/ftp/gopher/telnet/dict/file和ldap协议。 官网: ubuntu平台下安装 : sudo apt-get install libcurl4-openssl-dev libcurl库的使用 1)初始化 curl_globa
阅读全文
摘要:Make Error at /usr/local/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): Could NOT find Doxygen (missing: dot) (found vers
阅读全文
摘要:https://blog.csdn.net/numberors/article/details/109765131 sudo apt-get install libgtest-dev sudo apt-get install cmake cd cd /usr/src/gtest sudo cmake
阅读全文
摘要:git://github.com/reagent/buffer.git 地址失效,使用代替地址可下载 git clone https://gitclone.com/github.com/reagent/buffer.git
阅读全文
摘要:iftqt5_la-moc__TQTcpServer.Tpo -c src/thrift/qt/moc__TQTcpServer.cpp -fPIC -DPIC -o src/thrift/qt/.libs/libthriftqt5_la-moc__TQTcpServer.osrc/thrift/q
阅读全文
摘要:错误:/bin/sh: 1: protoc: not found 使用muduo源码中的脚本build.sh进行到一半报错,解决办法: sudo apt-get install protobuf-compiler
阅读全文
摘要:#include <stdio.h> #define D(...) \ do { \ FILE *fp = fopen("/tmp/log.txt","a"); \ fprintf(fp,"%s:%s:%d:\t", __FILE__, __func__, __LINE__); \ fprintf(
阅读全文
摘要:/* usbreset -- send a USB port reset to a USB device */ /* * Copyright (c) 2014, JSK Robotics Lab, Inc. * Copyright (c) 2016, Orbbec Ltd. * All rights
阅读全文
摘要:如果使用Https 访问http启动的项目,会出现此错误, 改用http
阅读全文
摘要:编译gpiod文件时,遇到如下困难: checking for linux/gpio.h... noconfigure: error: linux/gpio.h header not found (needed to build the library) 有没有曾经遇到,解决过得, gpiod下载有
阅读全文
摘要:摘自知互 小林coding <<TCP的keepalive和HTTP的keepalive之间的关系>> TCP 的 Keepalive,是由 TCP 层(内核态) 实现的,称为 TCP 保活机制.
阅读全文
摘要:const char COLOR_RESET[] = "\033[0m"; const char COLOR_BLACK[] = "\033[30m"; /* Black */ const char COLOR_RED[] = "\033[31m"; /* Red */ const char COL
阅读全文
摘要:安装glibc-2.33时遇到如下错误: 解决办法: 更新文件 gawk 和 bison 命令为: sudo apt-get install gawk sudo apt-get install bison
阅读全文
摘要:由于tx2使用的python版本至少是3.7以上,而ubuntu16.04默认安装的为3.5. 因此使用命令 sudo apt --remove python3 后,卸载完后无法进入图形界面。(进入后不能执行右键动作,界面上无可执行程序)。 解决办法: 重新安装python3 步骤: 1)按ctrl
阅读全文
摘要:自己只做的QT视频播放器, mp4 rm rmvb avi格式都播放不行,报错 QMediaPlayer::FormatError Warning: "No decoder available for type 'video/x-pn-realvideo, rmversion=(int)2, for
阅读全文
GStreamer-WARNING **: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstlibav.so'
摘要:GStreamer-WARNING **: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstlibav.so', libimgproc.so.2.4: cannot open shared object fil
阅读全文
摘要:串口设备,如果启动时间晚于工控机,在工控机中(/etc/rc.local目录)添加的的添加权限命令会失效. 因此,写个循环脚本,添加到/etc/rc.local目录下,循环检测串口设备是否上线,上线后加入权限. 脚本内容如下: #! /bin/bash test(){ result=`ls /dev
阅读全文
摘要:操作系统 ubuntu16.04 由于记不清什么时候安装的python,当前系统中存在三个python版本,2.7 / 3.5 以及一个 3.0 使用python 2.7.12版本进行爬虫开发时,requests和lxml总是提示未安装. 使用命令 pip install requests pip
阅读全文
摘要:新建文件 requirements.txt 修改requirements.txt文件内容如下: # need to install module bs4 pymongo requests json 然后执行命令: sudo pip install -r requirements.txt
阅读全文
摘要:在目录下创建了Dockerfile,构建镜像时,出席如下错误: 解决办法: 修改名称为dockerfile, 添加指定文件参数-f
阅读全文