- 博客(9)
- 收藏
- 关注
转载 为 Linux 程序打包
为 Linux 程序打包2012-09-14最近有个项目需要把编译好的 Linux 程序打包后安装到多种 Linux 发行版上执行。由于是不同的发行版,所以不适合使用各个发行版自己的软件包格式。即使针对特定发行版,还是会因为不同版本的系统库版本不同而无法创建通用的软件包。(程序既需要安装到 Fedora 6 这样“古老”的版本上,也需要安装到这两年发布的发行版上。)比较几种解决
2013-07-30 16:36:34 1521
转载 HOWTO Use the GCC specs file
From:http://www.mingw.org/wiki/SpecsFileHOWTOHOWTO Use the GCC specs fileView RevisionsPosted July 25th, 2008 by jonYgcc how to mingwAbout Specs fileThe "gc
2013-07-29 16:33:12 1061
转载 error: attempt to use poisoned
From: http://stackoverflow.com/questions/9461625/gcc-error-message-attempt-to-use-poisoned-target-i386Apparently the identifiers have been marked as poisonedFrom GCC Documentation#prag
2013-07-26 14:18:48 3538
转载 The linux loader, and howit finds libraries: ld-linux and so on
From: http://grahamwideman.wordpress.com/2009/02/09/the-linux-loader-and-how-it-finds-libraries/The linux loader, and howit finds libraries: ld-linux and so onAs partof an effort to understand imp
2013-07-26 11:12:24 723
原创 vim 小技巧汇集
关于工作路径的快捷键cd : 改变vim的当前工作路径 lcd: 改变当前窗口的工作路径 pwd: 查看当前的工作路径 set autochdir: 自动设当前编辑的文件所在目录为
2013-07-11 11:09:17 415
原创 shell 双括号((...))作用
((...))作用:拓展并执行算数表达式,如果表达式值为0, 则返回1或者false; 非0,则返回0或者true.可以用的地方有两个:1.作为测试的手段,2.作为算数表达式计算的手段。The (( )) construct expands and evaluates an arithmetic expression. If the expression evaluates as ze
2013-07-01 17:52:55 813
原创 shell array的一些特殊属性[*],[@]
${array_name[@]} or ${array_name[*]}表示的是array的所有元素。 ${#array_name[@]} or ${#array_name[*]}表示的是array_name的元素个数。 ${#array_name} 表示第一个元素的长度,即第一个元素的字符个数。具体在《ABSG》 CHAPTER 27有描述。As seen i
2013-07-01 17:43:15 5521
原创 shell eval 指令
eval:在《Advanced Bash-Scripting Guide》中有详细介绍:eval arg1 [arg2] ... [argN]Combines the arguments in an expression or list of expressions and evaluates them. Any variables within the expression are
2013-07-01 17:19:32 531
原创 shell 间接引用(indirect reference) \$${a} 和 ${!a}
\$${a}在shell中,引用一个变量var用$var,那如何引用一个变量的变量呢?普通的用法是通过\$${a}来引用,同时通常用eval来处理。eg. a=letter_of_alphabet # Variable "a" holds the name of another variable.letter_of_alphabet=zecho# Direct
2013-07-01 17:15:33 1084
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人