gnu

dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

五迷三道 提交于 2020-01-25 02:49:55
问题现象 sudo apt install nvidia-340 Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libargtable2-0 libass5 libavcodec-ffmpeg56 libavdevice-ffmpeg56 libavfilter-ffmpeg5 libavformat-ffmpeg56 libavresample-ffmpeg2 libavutil-ffmpeg54 libbluray1 libboost-random1.58.0 libboost-regex1.58.0 libboost-thread1.58.0 libcryptopp-dev libethereum libfdk-aac0 libjsoncpp1 libjsonrpccpp-client0 libjsonrpccpp-common0 libjsonrpccpp-server0 libleveldb1v5 libmicrohttpd10 libmicrohttpd12 libnvidia

Unable to build GNU automake

余生颓废 提交于 2020-01-24 04:15:31
问题 Installed automake using wget http://ftp.gnu.org/gnu/automake/automake-1.15.tar.gz ./configure --prefix=$HOME/local works fine for me. After this step, I ran make and it fails: GEN bin/automake GEN bin/aclocal GEN t/ax/shell-no-trail-bslash GEN t/ax/cc-no-c-o GEN runtest GEN lib/Automake/Config.pm GEN doc/aclocal-1.15.1 GEN doc/automake-1.15.1 help2man: can't get `--help' info from automake-1.15 Try `--no-discard-stderr' if option outputs to stderr make: *** [doc/automake-1.15.1] Error 2 I do

Should I still define _GNU_SOURCE when I compile with -std=gnu99?

独自空忆成欢 提交于 2020-01-23 13:19:06
问题 I use some GNU extensions and realized that if I set gnu99 as C-standard to use, I can omit #define _GNU_SOURCE. Does gnu99 imply the _GNU_SOURCE or is it still safer to use it or mandatory to avoid problems? 回答1: You should differentiate between language and library features; -std=gnu99 enables GNU language features, _GNU_SOURCE enables GNU library features. I suggest you to define _GNU_SOURCE if you use any library features, so it's clear for readers of your code. Also, this might make

CVE-2014-6271“破壳”漏洞

北慕城南 提交于 2020-01-22 13:13:07
文章目录 简介 检测 解决办法 简介 CVE-2014-6271(即“破壳”漏洞)广泛存在与GNU Bash 版本小于等于4.3的*inux的系统之中,只要目标服务器开放着与Bash相交互的应用与服务,就有可能成功触发漏洞,获取目标系统当前Bash运行用户相同权限的shell接口。 该漏洞可以通过构造环境变量的值来执行想要执行的攻击代码脚本,会影响到与Bash交互的多种应用,包括HTTP、OpenSSH、DHCP等。 检测 有漏洞 [scutech@localhost ~]$ bash --version GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> [scutech@localhost ~]$ env x='() { :;}; echo vulnerable' bash -c "echo This is a test" vulnerable This is a test 无漏洞 scutech@Yao:~$ bash --version GNU bash

GNU Global and GTAGS can't find class definitions

社会主义新天地 提交于 2020-01-22 12:40:06
问题 I'm having trouble getting global to find class/struct definitions. I can find them with exuberant ctags and with cscope. All tag files are built from the same source file list. I configured and built global, et.al., only specifying --prefix. configure did find exhuberant and is using it. I've been trying global periodically over the years and it's always had this problem. Any ideas? thanks, davep 回答1: Just export this variable and that should pretty much do. From the man page for gtags -

Could someone help me configure MinGW in SublimeText 3? (Newbie)

∥☆過路亽.° 提交于 2020-01-22 10:33:43
问题 I downloaded MinGW following the first link here https://isocpp.org/get-started and now I need to configure it in SubimeText 3. I know I should go to Tools > Build System > New Build System... But what should I specify there? I use Win7x64. And MinGW is in C:\MinGW 回答1: The complete reference for build systems is here. The first thing you need to do is make sure that the C:\MinGW\bin directory is in your PATH , then restart Sublime so the change gets picked up. Once you've done that, create a

sed use: expected context address

放肆的年华 提交于 2020-01-22 05:32:40
问题 I use the sed command on macOS with the following text: $ cat pets.txt This is my cat my cat's name is betty This is your dog your dog's name is frank This is your fish your fish's name is george This is my goat my goat's name is adam When I run BSD sed it shows an error: $ sed '/dog/,+3s/^/# /g' pets.txt sed: 1: "/dog/,+3s/^/# /g": expected context address What's wrong with it? When I use gsed (GNU sed), it works well: This is my cat my cat's name is betty # This is your dog # your dog's

linux性能监控命令

空扰寡人 提交于 2020-01-21 03:43:18
1, Top命令: 用于按一定的顺序显示所有正在运行而且处于活动状态的实时进程,而且会定期更新显示结果。这条命令显示了CPU的使用率、内存使用率、交换内存使用大小、高速缓存使用大小、缓冲区使用大小,进程PID、所使用命令以及其他。它还可以显示正在运行进程的内存和CPU占用多的情况。 derek@ubox:~$ top -H top - 22:00:25 up 1 min, 1 user, load average: 1.08, 0.37, 0.13 Threads: 222 total, 1 running, 221 sleeping, 0 stopped, 0 zombie %Cpu(s): 3.9 us, 0.4 sy, 0.0 ni, 93.7 id, 0.0 wa, 0.0 hi, 2.1 si, 0.0 st KiB Mem : 1016124 total, 250380 free, 193484 used, 572260 buff/cache KiB Swap: 1046524 total, 1046524 free, 0 used. 655092 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1410 _apt 20 0 47084 5856 5416 S 7.6 0.6 0:01.61

What does printf (_(“hello, world\n”)) mean? [duplicate]

*爱你&永不变心* 提交于 2020-01-20 08:06:32
问题 This question already has answers here : Underscore `_` before the format string (3 answers) Closed 19 days ago . What's the role of the _("hello, world\n") argument to printf/puts etc ? I often find it while reading GNU source code. 回答1: See GNU Gettext -- it ( _(...) ) is used as a "binding site" for translation. 回答2: This is the gettext internationalization system. 回答3: it is a macro that replaces the gettext translation function. For a thorough explanation on gettext, check out this write

What does printf (_(“hello, world\n”)) mean? [duplicate]

ぐ巨炮叔叔 提交于 2020-01-20 08:00:06
问题 This question already has answers here : Underscore `_` before the format string (3 answers) Closed 19 days ago . What's the role of the _("hello, world\n") argument to printf/puts etc ? I often find it while reading GNU source code. 回答1: See GNU Gettext -- it ( _(...) ) is used as a "binding site" for translation. 回答2: This is the gettext internationalization system. 回答3: it is a macro that replaces the gettext translation function. For a thorough explanation on gettext, check out this write