automake

开发人员行走Unix的随身四艺

感情迁移 提交于 2020-03-22 05:21:01
Unix系统永远只会越来越多,开发人员就没必要特意学习它们的安装、配置和管理了,就全部交给集成人员吧。 但开发人员行走于Unix之间,依然有四样东西要熟练。 一、VI 虽然Unix上的文本编辑器已经越来越好用,但不在Console前面,网速也不够连XWindows的时候,还是要依赖VI。 回想VI的时代背景,发现VI对开发人员已经周到得离谱了,热键多到你双手不离键盘就能完成大半编辑工作。 建议自己制作一张自己认为有用,但又经常忘记的命令的sheet--参见附录A,拿出考试的力气把它背熟。 二、文本处理 开发人员在Unix下干得最多的除了Make和除Bug外,大概就是处理日志文件、业务文件的查错和统计了。 只会more和grep是不够的,开发老手会把awk,sed,grep,sort,uniq,wc,head,tail这些文本处理命令,通过管道玩具 式的拆卸拼装,最后完成一件原本以为非编写大段代码不可的工作。周到的参数设定,让人再一次感叹那个简单的年代,这样复杂到极致的设计.......怪不 得《Unix 编程艺术》的作者有那么骄傲的自觉。 比如车东的每月访问TOP10 统计脚本: awk -F '\ t' '{ print $ 4 }' 2004_2 . txt| grep chedong . com / tech / | uniq -c| sort -rn|head - 10

开发人员行走Unix的随身四艺

邮差的信 提交于 2020-03-19 13:58:43
Unix系统永远只会越来越多,开发人员就没必要特意学习它们的安装、配置和管理了,就全部交给集成人员吧。 但开发人员行走于Unix之间,依然有四样东西要熟练。 一、VI 虽然Unix上的文本编辑器已经越来越好用,但不在Console前面,网速也不够连XWindows的时候,还是要依赖VI。 回想VI的时代背景,发现VI对开发人员已经周到得离谱了,热键多到你双手不离键盘就能完成大半编辑工作。 建议自己制作一张自己认为有用,但又经常忘记的命令的sheet,拿出考试的力气把它背熟。 二、文本处理 开发人员在Unix下干得最多的除了Make和除Bug外,大概就是处理日志文件、业务文件进行查错和统计了。 只会more和grep是不够的,开发老手会把awk,sed,grep,sort,unique,wc这些文本处理命令,通过管道玩具式的拆卸拼装,最后完成一件原本以为非编写大段代码不可的工作。周到的参数设定,让人再一次感叹那个简单的年代,复杂到极致的设计.......怪不得《Unix 编程艺术》的作者有那么骄傲的自觉。 比如车东的每月访问TOP10 统计脚本: awk -F ' t' '{ print $ 4 }' 2004_2 . txt| grep chedong . com / tech / | sort |uniq -c| sort -rn|head - 10 awk -F '/t'

开发人员行走Unix的随身四艺

自闭症网瘾萝莉.ら 提交于 2020-03-15 07:56:05
Unix系统永远只会越来越多,开发人员就没必要特意学习它们的安装、配置和管理了,就全部交给集成人员吧。 但开发人员行走于Unix之间,依然有四样东西要熟练。 一、VI 虽然Unix上的文本编辑器已经越来越好用,但不在Console前面,网速也不够连XWindows的时候,还是要依赖VI。 回想VI的时代背景,发现VI对开发人员已经周到得离谱了,热键多到你双手不离键盘就能完成大半编辑工作。 建议自己制作一张自己认为有用,但又经常忘记的命令的sheet,拿出考试的力气把它背熟。 二、文本处理 开发人员在Unix下干得最多的除了Make和除Bug外,大概就是处理日志文件、业务文件进行查错和统计了。 只会more和grep是不够的,开发老手会把awk,sed,grep,sort,unique,wc这些文本处理命令,通过管道玩具式的拆卸拼装,最后完成一件原本以为非编写大段代码不可的工作。周到的参数设定,让人再一次感叹那个简单的年代,复杂到极致的设计.......怪不得《Unix 编程艺术》的作者有那么骄傲的自觉。 比如车东的每月访问TOP10 统计脚本: awk -F ' t' '{ print $ 4 }' 2004_2 . txt| grep chedong . com / tech / | sort |uniq -c| sort -rn|head - 10 awk -F '/t'

mac os安装shell man中文帮助工具(manpages-zh),即man命令显示中文帮助文档

╄→гoц情女王★ 提交于 2020-03-13 05:45:03
一、从 官网 ( http://pkgs.fedoraproject.org/repo/pkgs/man-pages-zh-CN )下载安装包;或者从开源代码( https://github.com/man-pages-zh/manpages-zh )网址下载 二、解压安装包,发现configure.ac,需要安装autoconf和autoconf; 三、安装autoconf和automake   1、安装brew:如果已经安装brew,跳过此步骤。     从 brew官网 ( https://brew.sh )复制安装命令,粘贴在终端中执行:     /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"   2、安装autoconf、automake、python3、opencc四个依赖      brew install autoconf      brew install automake     brew install python3     brew install opencc 四、(1)生成manpages-zh安装程序,并安装    autoscan .   //在当前文件夹中搜索    vi configure.ac

Checking environment variable in make through automake

蹲街弑〆低调 提交于 2020-02-25 02:12:47
问题 Is there a way to have a conditional passed through automake so it is passed on to the resulting Makefile.in and Makefile later on? I check whether JAVA_HOME is defined in the environment in a Makefile using ifeq (undefined,$(origin JAVA_HOME)) #CALL with defaults else #CALL according to the variable endif But when I process this in a Makefile.am with automake I get two erros: else without if endif without if Looks like automake does not digest the ifeq. Is there a way to pass this through it

编译知识

泄露秘密 提交于 2020-02-17 14:00:27
gcc编译器 编译过程中参数 -E 只预编译,生成预编译文件 .i -S 只汇编不编译,生成汇编代码 .s -c 只编译不链接,生成目标文件.o -g 包含调试信息 -I[dir]包含指定路径头文件 生成链接库参数 linux下的链接库格式: 静态库: libname.a 动态库: libname.so.主版本号.次版本号.发行号 -static 静态编译,默认 -shared 动态编译,生成动态库文件 -L dir 库文件搜索中添加路径 -fPIC 生成与位置无关的目标代码(position independent code) 生成静态链接库 gcc -c sum.c -o libsum.o 生成目标文件.o ar crv libsum.a libsum.o 打包,生成.a文件 使用静态链接库 gcc -o 可执行文件 main.c -L /静态库路径 生成动态链接库 gcc -fPIC -c sum.c -o libsum.o gcc -shared libsum.o -o libsum.so 编译安装gcc gcc源码及相关依赖包下载地址: www.gun.org/software/具体软件 ftp://gcc.gnu.org/pub https://directory.fsf.org/wiki/GNU gcc安装需要以下依赖: m4 多处理器类库 gmp

Autoconf/Automake工具简介

女生的网名这么多〃 提交于 2020-02-17 13:59:14
http://www.cnblogs.com/xf-linux-arm-java-android/p/3590770.html 在linux下编程的时候,有时候工程项目很大,文件比较多,此时需要使用自动创建Makefile文件功能。也就是使用Autoconf/Automake工具自动生成Makefile,为编译程序带来了方便,当前大多数软件包都是用此方法生成,Autoconf/Automake工具组主要包括autoconf,automake,perl,m4。 Autoconfig/Automake工具使用实例 一、首先建立编写一个C源程序文件,命名为hello.c,其代码很简单,就是hello world!程序。 二、使用Autoscan工具生成config.ac文件. 该文件的简要说明如下: 1、 AC_PREREQQ宏声明本文件要求的autoconf版本,这里是2.63 2、 AC_INIT定义软件的名称和信息。(DULL-PACKAGE-NAME为软件名,VERSION为软件的版本号,BUG-REPORT-ADDRESS为bug的报告地址,一般为软件作者的邮箱) 3、 AC_CONFIG_SRCDIR用来侦测指定的源码文件是否存在,确定源码目录的有效性。此处为当前目录下hello.c 4、 AC_CONFIG_HEADER用于生成config.h文件

Installation of cc-tool on linux?

你离开我真会死。 提交于 2020-01-25 21:01:06
问题 I am trying to install cc-tool from this link but nothing seems to happen when i run automake in the directory, can anybody tell me what i am doing wrong? When i run automake -v I get the following output: automake: thread 0: reading autoconf --trace=AC_CONFIG_FILES:\$f:\$l::\$d::\$n::\${::}% --trace=AM_GNU_GETTEXT_INTL_SUBDIR:\$f:\$l::\$d::\$n::\${::}% --trace=AC_REQUIRE_AUX_FILE:\$f:\$l::\$d::\$n::\${::}% --trace=_AM_COND_ELSE:\$f:\$l::\$d::\$n::\${::}% --trace=AM_PROG_CC_C_O:\$f:\$l::\$d::

Invoke external script using Autotools

拥有回忆 提交于 2020-01-24 12:44:08
问题 I am using Autotools, and trying to get configure.ac and the resulting configure script to call an external build_library.sh script. How can this be done? 回答1: configure.ac is just a shell script with a "few" macros added on top of it. So, you can put any shell code in there: $ac_top_srcdir/build_library.sh (The $ac_top_srcdir makes sure that your script can be found even if you are running ./configure from another directory.) 来源: https://stackoverflow.com/questions/26757929/invoke-external

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