博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Linux制作run安装包
阅读量:1984 次
发布时间:2019-04-27

本文共 293 字,大约阅读时间需要 1 分钟。

首先写一个可cpp文件,helloworld.cpp

然后编译它

g++ hellowrold.cpp -o hello

然后打包

tar -zcv -f ./hello.tar.gz ./hello

然后写一个install.sh

然后把install.sh和hello.tar.gz进行拼接,得到run文件

cat ./install./sh ./hello.tar.gz > myinstall.run

如果myinstall.run没有可执行权限,则添加权限

chmod +x ./myinstall.run

运行myinstall.run,则得到了我们的可执行文件啦

大功告成

你可能感兴趣的文章
oj第一次打字比赛成绩
查看>>
山东理工大学 2506 完美网络
查看>>
pat 城市救援 最短路
查看>>
poj 2533 Longest Ordered Subsequence
查看>>
poj 1936 All in All
查看>>
hihocoder 1555 四次方根(矩阵快速幂)
查看>>
codeforces 449 D Jzzhu and Numbers(容斥+dp)
查看>>
hdu 5450 Traversal(状压dp)
查看>>
Gym - 101334E Exploring Pyramids(dp+分治)
查看>>
uva 10934 Dropping water balloons(dp)
查看>>
hdu 6183 Color it(cdq分治+线段树)
查看>>
atcoder Yet Another Palindrome Partitioning(dp)
查看>>
gym 101137 L Lazy Coordinator(概率)
查看>>
Mysql 入门
查看>>
Vue 之 axios 篇
查看>>
vue 之动画
查看>>
js的基础语法
查看>>
vue使用iconfont
查看>>
linux 查看文件夹权限
查看>>
linux tar 备份
查看>>