1.下载shc工具

http://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.9.tgz或者到http://www.datsi.fi.upm.es/~frosal/sources/目录下自行选择版本

wget http://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.9.tgz

2.下载后,解压并安装

yum -y install gcc gcc-c++

tar -xvf shc-3.8.9.tgz

由于会安装到/usr/local/man/man1下面,所以新建如下:

mkdir -p /usr/local/man/man1

cd shc-3.8.9

make install

提示的时候输入 y 即可安装成功

3.使用

shc -r -f lua文件

shc -r -f ceshi.lua

会产生三个文件

ceshi.lua.x   ceshi.lua.x.c  ceshi.lua

留下二进制文件  ceshi.lua.x  其它两个删除

lua  <  ceshi.lua.x  即可测试执行

最新文章

  1. 学习笔记:Java的一些基础小知识之JVM与GC
  2. oracle数据库字符集US7ASCII,在java中处理中文问题
  3. 关于input内容监听(change)
  4. 更新页面缓存OutputCache
  5. Decorator模式
  6. uva 11995 I Can Guess the Data Structure stack,queue,priority_queue
  7. configure交叉编译
  8. 《Java并发编程实战》第二章 线程安全 札记
  9. javascript第五章--函数表达式
  10. Springboot 系列(五)Spring Boot web 开发之静态资源和模版引擎
  11. ID 生成器
  12. Vue之小入门
  13. [转] node.js下mongoose简单操作实例
  14. jQuery-----隔行换色/全选全不选/
  15. IDEA如何刷新pom文件
  16. hdu1754splaytree区间查询
  17. Python内置模块:random,os,sys,和加密模块hashlib
  18. python中super的使用
  19. Hadoop1.1.2伪分布式安装
  20. The good life is one inspired by love and guided by knowledge

热门文章

  1. BUUCTF刷题系列(1)5.25日记
  2. (四)Linux之用户管理(用户和用户组)
  3. Avro使用手册
  4. 小白5分钟创建WPF
  5. C# 插件编写
  6. 2014 12 27 bestcoder 第一题
  7. hdu1002 大数相加问题
  8. linux 常用命令(四)——(centos7-centos6.8)Vim安装
  9. Go版本管理--处理不兼容
  10. Learning ROS: rqt_console和rqt_logger_level使用