gnu

Ubuntu安装并使用emacs

时光怂恿深爱的人放手 提交于 2020-01-19 13:48:25
1、 sudo add-apt-repository ppa:kelleyk/emacs 2、 sudo apt update sudo apt install emacs26 3、安装完成,查看emasc版本 emacs --version GNU Emacs 26.2 Copyright (C) 2019 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GNU Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. 如果要删除, sudo apt remove --autoremove emacs26 emacs26-nox 开始使用! emacs -nw -Q 打开emacs C-h t 打开教程(同时按Ctrl+H,松开后按T),C-x k退出教程 C-v往后翻页,M-v往前翻页(Esc-v) C-x C-c 表示退出emacs会话 C-/ 表示撤销 四个方向键,C-n下一行,C-p上一行,C-f前进,C-b后退,M

Can I build gcc for ARM with an X64 one?

一曲冷凌霜 提交于 2020-01-16 04:10:07
问题 I need a definitive answer because this is still unclear to me and I can't find an explicit answer anywhere in the docs. Assuming that I have a working gcc toolchain where host x86_64-linux-gnu target x86_64-linux-gnu , the question is can I possibly configure and build gcc from sources with ? host x86_64-linux-gnu build x86_64-linux-gnu target arm-gnu-eabi The reason why I would like an answer on this is about whether or not I should spend time trying different configurations for my

hsearch_r overwrites hash table

让人想犯罪 __ 提交于 2020-01-16 01:10:27
问题 I'm trying to see if I can put a new feature into inotifywait that during the watching phase tracks the list of directories that did not receive any event on them, and before it quits, it prints the list. As of now, inotifywait is capable of showing on directories that received an event. What I'm looking for is for a list of directories that did not receive any event. To achieve this, I'm taking the following approach. While inotifywait is placing watches, generate an array of all the

什么是 C 和 C ++ 标准库?

佐手、 提交于 2020-01-15 22:26:58
简要介绍编写C/C ++应用程序的领域,标准库的作用以及它是如何在各种操作系统中实现的。 我已经接触C++一段时间了,一开始就让我感到疑惑的是其内部结构:我所使用的内核函数和类从何而来? 谁发明了它们? 他们是打包在我系统中的某个地方吗? 是否存在一份官方的C ++手册? 在本文中,我将通过从C和C ++语言的本质到实际实现来尝试回答这些问题。 C和C++是如何制订的 当我们谈论C和C++时,实际上是指一组定义(程序)语言应该做些什么,如何表现,应该提供哪些功能的规则。C/C++的编译器为了处理C/C++编写的源代码必须跟随着这些规则,并生成二进制应用程序。听起来非常接近于HTML:浏览器遵循着一组指令,所以它们可以以明确的方式来渲染网页。 与HTML一样,C和C++的规则都是理论上的。 国际标准化组织 (ISO)的一大群人每年都会聚集几次来讨论和定义语言规则。没错,C和C++是标准化的东西。他们最终都会得到一本官方的叫标准的书,你可以从他们的网站中购买。随着语言的发展新的papers(指官方的叫标准的书)会被发布,每一次都定义一个新的标准。这就是为什么我们会有不同的C和C++版本的原因:C99, C11, C++03, C++11, C++14等等,数字与出版/发布年份相符。 Tot_ziens 翻译于 4周前 2人顶 顶 翻译得不错哦! 这些标准都市非常详细和有技术新的文档

简明Python3教程 5.第一步

a 夏天 提交于 2020-01-15 05:38:08
介绍 我们现在来看看如何在Python中运行传统的”Hello world”程序。这会教你如何写、保存以及运行Python程序。 有两种办法来运行您的Python程序——使用交互式的解释器提示符或者源代码文件。我们现在来分别看一看这两种方法。 使用解释器提示符 在命令提示符中输入 python 来打开解释器。 那些在GNU/Linux与BSD上同时安装了Python 3.x与Python 2.x的用户可能需要输入 python3 。 而对于Windows用户而言,如果您在 PATH 环境变量里正确设置的话,也可以在命令行界面打开解释器。 要在Windws里打开命令行,在开始菜单中点击”运行”,在弹出的对话框中输入cmd并按回车。现在在DOS提示符下,你可以随时开始使用python。 如果您使用IDLE,依次点击 开始 菜单 → 程序 → Python 3.0 → IDLE (Python GUI) 。 现在请输入 print('Hello World') 并按下回车键。您应该能看到输入单词 Hello World 。 $ python Python 3.0b2 (r30b2:65106, Jul 18 2008, 18:44:17) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or

什么是Linux及其优点(什么是GNU 计划)

半城伤御伤魂 提交于 2020-01-13 22:30:59
什么是Linux Linux 是由芬兰人李纳斯·托瓦兹和众多爱好者共同开发出来一套免费使用和自由 传播的类 Unix 操作系统,是一个基于 POSIX 和 UNIX的多用户、多任务、支持多 线程和多 CPU 的操作系统。 Linux 能运行主要的 UNIX 工具软件、应用程序和网络协议。它支持 32 位和 64 位硬件。Linux 继承了 Unix 以网络为核心的设计思想,是一个性能稳定的多用 户网络操作系统。 Linux 优点: 稳定的系统 开源免费 安全性、漏洞的快速修补 多任务、多用户 良好的可移植性和灵活性 可供选择的厂商多 … LINUX 在服务器领域的发展: 随着开源软件在世界范围内影响力日益增强,Linux 服务器操作系统在整个 服务器操作系统市场格局中占据了越来越多的 市场份额,已经形成了大规模市场应用的局面,并且保持快速增长率,尤其 在政府、金融、农业、交通、电信等国家关键领域。 据权威部门统计,目前 Linux 在服务器领域已经占据 75%的市场份额。同时, Linux 服务器市场的迅速崛起,已经引起全球 IT 的高度关注,并以强劲的势头 成为服务器领域中的中坚力量。 Linux 在移动嵌入式领域的发展 Linux 的低成本、强大的定制功能以及良好的可移植性,使得 Linux 在嵌入 式系统方面也得到广泛应用,目前 Linux 已广泛应用于手机、平板电脑、路由器

Binutils stat illegal option -c

会有一股神秘感。 提交于 2020-01-13 09:44:12
问题 I use stat two times in my script once to find the file files permissions and once to find the size of the file. `stat -c %A "$directory/$file"` `stat -c %s "$directory/$file"` I am using OSX 10.7 and directory and file are variable of the current directory I am in and the file. 回答1: Darwin stat uses an -f argument, rather than -c , as it is a GNU extension. You should download the gnu binutils, either from homebrew, from macports or from fink, and then use gstat instead of stat . If you don

简明Python3教程 4.安装

三世轮回 提交于 2020-01-12 17:58:18
如果你已经安装了Python 2.x,你 不需要 在安装Python 3.0前卸载Python 2.x。这两者可以共存。 GNU/Linux用户和BSD用户 如果你使用类似于Ubuntu、Fedora、OpenSUSE、Debian、CentOS或其他你选择的GNU/Linux发行版,或类似于FreeBSD的BSD系统,你的系统很可能已经了Python。 可通过开启shell程序(如 konsole 或 gnome-terminal )并输入以下命令以检测Python是否安装在你的BSD或GNU/Linux系统中。 $ python -V Python 3.0b1 注 $ 是shell提示符,它会因你的系统设置而变化。在此我用 $ 表示shell提示符。 如果你看到了和上文相同的版本信息,你已经安装了Python。 但是如果你看到了如下信息: $ python -V bash: Python: command not found 则你没有安装Python,这很罕见但仍有可能发生。 注 如果你已经安装了Python 2.x,则尝试 python3 -V 。 在这种情况下,你有两种方法安装Python。 你可从 源码 编译Python,该站点也提供编译指导。 [此方法在Python 3.0正式发布后可用]使用系统自带包管理器(如Ubuntu/Debian和其他基于Debian的发行版的

Where is libintl3 and libiconv2 for gnu make on windows, needed to compile vim with ruby on MinGW

烂漫一生 提交于 2020-01-12 14:50:35
问题 I am trying to run gnu make for windows, but it wouldn't run because libint3.dll was not found. Sure enough, http://gnuwin32.sourceforge.net/packages/make.htm specifies that libint3 and libiconv2 are required, but trying to follow their link obviously generates an error on the server. So, do I need these libraries, and where would I get them, or can I download gnu make from somewhere else. more background Here's what I try to do, and maybe someone else can share a way how to do it differently

Where is libintl3 and libiconv2 for gnu make on windows, needed to compile vim with ruby on MinGW

泪湿孤枕 提交于 2020-01-12 14:50:27
问题 I am trying to run gnu make for windows, but it wouldn't run because libint3.dll was not found. Sure enough, http://gnuwin32.sourceforge.net/packages/make.htm specifies that libint3 and libiconv2 are required, but trying to follow their link obviously generates an error on the server. So, do I need these libraries, and where would I get them, or can I download gnu make from somewhere else. more background Here's what I try to do, and maybe someone else can share a way how to do it differently